/* ═══════════════════════════════════════════════════════════════
   Grootzs — Premium Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────── */
:root {
    --background: #ffffff;
    --foreground: #1A1A1A;
    --primary: #1A1A1A;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #1A1A1A;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --accent: #C5A572;
    --accent-foreground: #ffffff;
    --accent-light: #D4BB8A;
    --accent-dark: #A8894E;
    --border: #e5e5e5;
    --radius: 0.25rem;
    --gold: #C5A572;
    --gold-light: #D4BB8A;
    --gold-dark: #A8894E;
    --charcoal: #1A1A1A;
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Lenis smooth scroll override */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

::selection {
    background: var(--gold);
    color: #ffffff;
}

/* ─── Typography ─────────────────────────────────────────────── */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ─── Navigation ─────────────────────────────────────────────── */
#main-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.5s ease, border-color 0.5s ease,
                backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Nav logo — sizing & transitions */
.nav-logo {
    transition: margin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-logo-img {
    height: 6rem;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
}
@media (min-width: 1024px) {
    .nav-logo-img {
        height: 7.5rem;
    }
}
/* White logo: visible on hero, hidden on scroll */
.nav-logo-white {
    opacity: 1;
}
.nav-logo-color {
    opacity: 0;
}
#main-nav.scrolled .nav-logo-white {
    opacity: 0;
}
#main-nav.scrolled .nav-logo-color {
    opacity: 1;
}
#main-nav.scrolled .nav-logo {
    margin-top: 0 !important;
    align-self: center;
}
#main-nav.scrolled .nav-logo-img {
    height: 5rem;
}
#main-nav.scrolled .nav-link {
    color: var(--foreground);
}
#main-nav.scrolled .nav-link:hover {
    color: var(--muted-foreground);
}
#main-nav.scrolled .nav-cta {
    background: var(--gold);
    color: #ffffff;
}
#main-nav.scrolled .nav-cta:hover {
    background: var(--gold-dark);
}

/* Dropdown slide-down animation */
.nav-dropdown-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.35s;
}
.nav-dropdown:hover .nav-dropdown-panel,
.group\/dd:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}
.nav-dropdown-menu {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dropdown:hover .nav-dropdown-menu,
.group\/dd:hover .nav-dropdown-menu {
    clip-path: inset(0 0 0% 0);
}

/* Staggered item reveal */
.nav-dd-stagger {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dropdown:hover .nav-dd-stagger,
.group\/dd:hover .nav-dd-stagger {
    opacity: 1;
    transform: translateY(0);
}
.nav-dd-stagger:nth-child(1) { transition-delay: 0.08s; }
.nav-dd-stagger:nth-child(2) { transition-delay: 0.12s; }
.nav-dd-stagger:nth-child(3) { transition-delay: 0.16s; }
.nav-dd-stagger:nth-child(4) { transition-delay: 0.20s; }
.nav-dd-stagger:nth-child(5) { transition-delay: 0.24s; }
.nav-dd-stagger:nth-child(6) { transition-delay: 0.28s; }
.nav-dd-stagger:nth-child(7) { transition-delay: 0.32s; }

/* Dropdown item hover — gold background, black text */
.nav-dd-item {
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.15s ease,
                padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dd-item:hover {
    background-color: var(--gold);
    color: #0a0a0a !important;
    padding-left: 1.75rem;
}

/* Scrolled dropdown panel — light variant */
#main-nav.scrolled .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: var(--border) !important;
}
#main-nav.scrolled .nav-dropdown-menu a {
    color: var(--foreground);
}
#main-nav.scrolled .nav-dropdown-menu a.nav-dd-item:hover {
    background-color: var(--gold);
    color: #ffffff;
}
#main-nav.scrolled .nav-dropdown-menu .nav-dd-divider {
    background: var(--border);
}

/* Active nav link gold accent */
.nav-active {
    color: #ffffff !important;
}
.nav-active span {
    width: 100% !important;
    background: var(--gold) !important;
}
#main-nav.scrolled .nav-active {
    color: var(--gold) !important;
}
#main-nav.scrolled .nav-active:hover {
    color: var(--gold-dark) !important;
}

.gallery-chevron {
    position: relative;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.gallery-chevron:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
    transform: translateY(-1px);
}
.gallery-chevron-progress-ring {
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) right bottom / 1px 0 no-repeat,
        linear-gradient(var(--gold), var(--gold)) right top / 0 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) left top / 1px 0 no-repeat;
    animation: gallery-chevron-progress 6s linear forwards;
}
.gallery-chevron-next:hover .gallery-chevron-progress-ring {
    background:
        linear-gradient(#ffffff, #ffffff) left bottom / 0 1px no-repeat,
        linear-gradient(#ffffff, #ffffff) right bottom / 1px 0 no-repeat,
        linear-gradient(#ffffff, #ffffff) right top / 0 1px no-repeat,
        linear-gradient(#ffffff, #ffffff) left top / 1px 0 no-repeat;
}
@keyframes gallery-chevron-progress {
    0% {
        background-size: 0 1px, 1px 0, 0 1px, 1px 0;
    }
    25% {
        background-size: 100% 1px, 1px 0, 0 1px, 1px 0;
    }
    50% {
        background-size: 100% 1px, 1px 100%, 0 1px, 1px 0;
    }
    75% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0;
    }
    100% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
}
.gallery-lightbox-chevron {
    position: absolute;
    top: 50%;
    width: 3.5rem;
    height: 3.5rem;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.gallery-lightbox-chevron:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a0a0a;
}
.gallery-lightbox-watermark {
    position: absolute;
    left: 50%;
    bottom: clamp(2rem, 6vh, 4rem);
    transform: translateX(-50%);
    width: min(42vw, 22rem);
    opacity: 0.055;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 2rem 5rem rgba(197, 165, 114, 0.22));
}
.gallery-lightbox-watermark img {
    width: 100%;
    height: auto;
}
.gallery-lightbox img {
    position: relative;
    z-index: 1;
}

/* Mobile menu open state */
body.menu-open,
html.elfsight-modal-open,
body.elfsight-modal-open,
body.contact-modal-open {
    overflow: hidden;
}

.instagram-elfsight-row {
    overflow: hidden;
    position: relative;
}

.instagram-elfsight-row > * {
    width: 100% !important;
}

.instagram-elfsight-row iframe {
    width: 100% !important;
}

.instagram-elfsight-home {
    height: 190px;
    max-height: 190px;
}

.instagram-elfsight-home iframe,
.instagram-elfsight-home > * {
    max-height: 190px !important;
    overflow: hidden !important;
}

.instagram-elfsight-footer {
    max-height: 260px;
}

.instagram-elfsight-footer iframe,
.instagram-elfsight-footer > * {
    max-height: 260px !important;
    overflow: hidden !important;
}

@media (min-width: 768px) {
    .instagram-elfsight-home,
    .instagram-elfsight-home iframe,
    .instagram-elfsight-home > * {
        height: 230px;
        max-height: 230px !important;
    }
    .instagram-elfsight-footer,
    .instagram-elfsight-footer iframe,
    .instagram-elfsight-footer > * {
        max-height: 310px !important;
    }
}

@media (min-width: 1280px) {
    .instagram-elfsight-home,
    .instagram-elfsight-home iframe,
    .instagram-elfsight-home > * {
        height: 250px;
        max-height: 250px !important;
    }
    .instagram-elfsight-footer,
    .instagram-elfsight-footer iframe,
    .instagram-elfsight-footer > * {
        max-height: 345px !important;
    }
}
body.menu-open #mobile-menu {
    visibility: visible;
    pointer-events: auto;
}
body.menu-open .mobile-menu-bg {
    opacity: 1;
}
body.menu-open .mobile-menu-content {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }
    main {
        overflow-x: clip;
    }
    #main-nav > div {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    #main-nav .nav-logo {
        margin-top: 0.5rem !important;
    }
    .nav-logo-img {
        height: 4.75rem;
    }
    #main-nav.scrolled .nav-logo-img {
        height: 3.85rem;
    }
    #nav-toggle {
        width: 3rem;
        height: 3rem;
    }
    #mobile-menu .mobile-menu-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 6rem;
        justify-content: flex-start;
    }
    .mobile-nav-link {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .hero-section {
        min-height: 100svh;
    }
    .hero-content-cinematic {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 8.5rem;
        padding-bottom: 8.5rem;
    }
    .hero-content-cinematic > div > div {
        min-height: min(35rem, calc(100svh - 12rem));
    }
    .hero-headline {
        overflow-wrap: anywhere;
    }
    .hero-headline span,
    h1.hero-headline {
        font-size: clamp(2.75rem, 14vw, 4.4rem) !important;
        line-height: 0.96 !important;
    }
    .hero-subline {
        font-size: 1rem !important;
        line-height: 1.65 !important;
        margin-bottom: 2rem !important;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-ctas > a,
    .btn-magnetic {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 1.15rem !important;
        text-align: center;
        letter-spacing: 0.14em !important;
    }
    .hero-slide-controls {
        left: 1.5rem !important;
        right: 1.5rem;
        bottom: 1.75rem !important;
        width: auto !important;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .hero-slide-controls::-webkit-scrollbar {
        display: none;
    }
    .hero-slide-controls > div {
        gap: 1rem;
        min-width: max-content;
    }
    .hero-slide-controls button span:last-child {
        width: 4.5rem;
    }
    .marquee-container [class*="w-32"] {
        width: 3rem !important;
    }
    .marquee-track span {
        margin-left: 0.9rem !important;
        margin-right: 0.9rem !important;
    }
    section {
        scroll-margin-top: 5rem;
    }
    section[class*="py-20"],
    section[class*="py-24"],
    section[class*="py-28"],
    section[class*="py-32"] {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .container .flex.items-end.justify-between {
        align-items: flex-start;
        gap: 1.75rem;
    }
    h2,
    h3 {
        overflow-wrap: anywhere;
    }
    h2[class*="text-4xl"],
    h2[class*="text-5xl"],
    h2[class*="text-6xl"] {
        font-size: clamp(2.3rem, 11vw, 3.25rem) !important;
        line-height: 1.05 !important;
    }
    .grid[class*="grid-cols-2"] {
        gap: 2rem !important;
    }
    .grid[class*="grid-cols-2"] [data-counter],
    [data-counter] {
        font-size: clamp(2.75rem, 14vw, 4rem) !important;
    }
    .project-card .flex.items-center.gap-3 {
        align-items: flex-start;
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }
    .project-card h3 {
        font-size: 1.75rem !important;
        line-height: 1.08 !important;
    }
    .glitter-video-cta {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .instagram-elfsight-home,
    .instagram-elfsight-home iframe,
    .instagram-elfsight-home > * {
        height: 170px;
        max-height: 170px !important;
    }
    .instagram-elfsight-footer,
    .instagram-elfsight-footer iframe,
    .instagram-elfsight-footer > * {
        max-height: 220px !important;
    }
    .gallery-lightbox {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    .gallery-lightbox-chevron {
        top: auto;
        bottom: max(1.25rem, env(safe-area-inset-bottom));
        width: 3rem;
        height: 3rem;
        transform: none;
        z-index: 10;
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(14px);
    }
    .gallery-lightbox-chevron.left-6 {
        left: 1.25rem;
    }
    .gallery-lightbox-chevron.right-6 {
        right: 1.25rem;
    }
    .gallery-lightbox-watermark {
        width: 68vw;
        bottom: 5rem;
        opacity: 0.045;
    }
}

@media (hover: none), (pointer: coarse) {
    .group:hover .group-hover\:scale-105,
    .group:hover .group-hover\:translate-x-1,
    .group:hover .group-hover\:-translate-y-1,
    .hover\:pl-6:hover {
        transform: none !important;
        padding-left: inherit !important;
    }
    .image-hover-swirl img,
    .image-hover img {
        transition-duration: 300ms !important;
    }
}
body.menu-open .nav-bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
body.menu-open .nav-bar:nth-child(2) {
    width: 0;
    opacity: 0;
}
body.menu-open .nav-bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ─── Premium Animations ─────────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes reveal-up {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

.animate-fade-up {
    animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}
.animate-slide-left {
    animation: slide-in-left 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-slide-right {
    animation: slide-in-right 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-scale-in {
    animation: scale-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-reveal-up {
    animation: reveal-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ─── Scroll Reveal ──────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="left"] {
    transform: translateX(-40px);
}
[data-reveal="left"].revealed {
    transform: translateX(0);
}
[data-reveal="right"] {
    transform: translateX(40px);
}
[data-reveal="right"].revealed {
    transform: translateX(0);
}
[data-reveal="scale"] {
    transform: scale(0.95);
}
[data-reveal="scale"].revealed {
    transform: scale(1);
}

/* ─── Instagram Carousel ─────────────────────────────────────── */
.insta-carousel::-webkit-scrollbar {
    display: none;
}
.insta-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ─── Marquee ────────────────────────────────────────────────── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    width: max-content;
    min-width: max-content;
    flex-shrink: 0;
    animation: marquee 34s linear infinite;
    will-change: transform;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* ─── Image Hover Effects ────────────────────────────────────── */
.image-hover {
    overflow: hidden;
    position: relative;
}
.image-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.image-hover:hover::after {
    opacity: 1;
}
.image-hover img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-hover:hover img {
    transform: scale(1.08);
}

/* ─── Swirl Hover Effect ─────────────────────────────────────── */
.image-hover-swirl {
    overflow: hidden;
    position: relative;
}
.image-hover-swirl img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-hover-swirl:hover img {
    transform: scale(1.06);
}
.image-hover-swirl::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.image-hover-swirl:hover::after {
    opacity: 1;
}
.image-hover-swirl .swirl-watermark {
    position: absolute;
    bottom: -20%;
    right: -15%;
    width: 65%;
    height: auto;
    opacity: 0;
    transform: rotate(-15deg) scale(0.7);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: soft-light;
    filter: brightness(2);
}
.image-hover-swirl:hover .swirl-watermark {
    opacity: 0.5;
    transform: rotate(0deg) scale(1);
}

/* ─── Card Effects ───────────────────────────────────────────── */
.card-premium {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.card-premium:hover::before {
    opacity: 1;
}

/* ─── Text Reveal ────────────────────────────────────────────── */
.text-reveal {
    position: relative;
    overflow: hidden;
}
.text-reveal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-reveal:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ─── Link Underline Animation ───────────────────────────────── */
.link-underline {
    position: relative;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-underline:hover::after {
    width: 100%;
}

/* ─── Glitter video CTA ──────────────────────────────────────── */
.home-glitter-cta__sparkles,
.glitter-video-cta__sparkles {
    mix-blend-mode: screen;
    opacity: 0.55;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 18% 34%, rgba(255, 226, 166, 0.62) 0 1px, transparent 2px),
        radial-gradient(circle at 34% 62%, rgba(197, 165, 114, 0.55) 0 1.5px, transparent 3px),
        radial-gradient(circle at 58% 28%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 66%, rgba(212, 187, 138, 0.5) 0 1px, transparent 2px),
        radial-gradient(circle at 44% 42%, rgba(255, 241, 210, 0.42) 0 1px, transparent 2px);
    background-size: 180px 180px, 260px 260px, 220px 220px, 320px 320px, 150px 150px;
    animation: glitter-drift 18s linear infinite;
}
.home-glitter-cta__sparkles::before,
.home-glitter-cta__sparkles::after,
.glitter-video-cta__sparkles::before,
.glitter-video-cta__sparkles::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 45% 50%, rgba(197, 165, 114, 0.24), transparent 32%),
        radial-gradient(ellipse at 55% 48%, rgba(255, 255, 255, 0.13), transparent 36%);
    filter: blur(12px);
    animation: glitter-bloom 8s ease-in-out infinite alternate;
}
.home-glitter-cta__sparkles::after,
.glitter-video-cta__sparkles::after {
    opacity: 0.5;
    animation-delay: -3s;
    transform: rotate(8deg);
}
@keyframes glitter-drift {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 180px -180px, -260px 260px, 220px -220px, -320px 320px, 150px -150px; }
}
@keyframes glitter-bloom {
    from { transform: translate3d(-1%, 1%, 0) scale(0.98); opacity: 0.35; }
    to { transform: translate3d(1%, -1%, 0) scale(1.04); opacity: 0.72; }
}
@media (prefers-reduced-motion: reduce) {
    .home-glitter-cta__sparkles,
    .home-glitter-cta__sparkles::before,
    .home-glitter-cta__sparkles::after,
    .glitter-video-cta__sparkles,
    .glitter-video-cta__sparkles::before,
    .glitter-video-cta__sparkles::after {
        animation: none;
    }
}

/* ─── Grain Texture Overlay ──────────────────────────────────── */
.grain-overlay {
    position: relative;
}
.grain-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* ─── Radial Gradient Utility ────────────────────────────────── */
.bg-gradient-radial {
    background: radial-gradient(var(--tw-gradient-stops));
}

/* ─── Scroll Indicator ───────────────────────────────────────── */
@keyframes scroll-line {
    0% { transform: translateY(-100%); opacity: 1; }
    50% { transform: translateY(300%); opacity: 0.5; }
    100% { transform: translateY(-100%); opacity: 1; }
}

/* ─── Magnetic Button ────────────────────────────────────────── */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Button Hover Lift ──────────────────────────────────────── */
.btn-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.btn-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ─── Custom Cursor ──────────────────────────────────────────── */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    display: none;
}
.custom-cursor.active {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

@media (pointer: fine) {
    .custom-cursor {
        display: block;
    }
}

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline-dot {
    position: relative;
}
.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.jaaroverzicht-hero__image {
    animation: jaaroverzicht-hero-drift 18s ease-in-out infinite alternate;
    transform-origin: center;
}
.jaaroverzicht-hero__light {
    animation: jaaroverzicht-orb-float 9s ease-in-out infinite alternate;
    opacity: 0.85;
}
.jaaroverzicht-hero__light--right {
    animation-delay: -3s;
}
.jaaroverzicht-hero__line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 165, 114, 0.45), rgba(255, 255, 255, 0.08), transparent);
    overflow: hidden;
}
.jaaroverzicht-hero__line::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -25%;
    width: 25%;
    background: linear-gradient(90deg, transparent, rgba(232, 213, 168, 0.75), transparent);
    animation: jaaroverzicht-line-scan 5s ease-in-out infinite;
}
.jaaroverzicht-year-pill {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1.2rem 3rem rgba(0,0,0,0.14);
}
@keyframes jaaroverzicht-hero-drift {
    0% { transform: scale(1.03) translate3d(0, 0, 0); }
    100% { transform: scale(1.09) translate3d(-1.2%, -1%, 0); }
}
@keyframes jaaroverzicht-orb-float {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(2rem, -1.5rem, 0) scale(1.12); }
}
@keyframes jaaroverzicht-line-scan {
    0%, 18% { transform: translateX(0); opacity: 0; }
    35% { opacity: 1; }
    70%, 100% { transform: translateX(560%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .jaaroverzicht-hero__image,
    .jaaroverzicht-hero__light,
    .jaaroverzicht-hero__line::after {
        animation: none;
    }
}

/* ─── Hero Slide Crossfade ───────────────────────────────────── */
.hero-bg-animated:not([data-hero-ready]) .hero-slide:first-child {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}
.hero-slide {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 2s ease-in-out, transform 10s ease-out;
    will-change: opacity, transform;
    z-index: 0;
}
.hero-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}
.hero-slide-out {
    opacity: 0;
    transform: scale(1.02);
    z-index: 1;
    transition: opacity 2.5s ease-in-out 1.5s, transform 8s ease-out;
}
.hero-copy-panel {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.hero-copy-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.25s;
}
.hero-copy-hidden {
    opacity: 0;
    transform: translateY(-10px);
}
.contact-project-hero .hero-slide {
    transform: scale(1.015);
    transition: opacity 1.2s ease-in-out, transform 5s ease-out;
}
.contact-project-hero .hero-slide-active {
    transform: scale(1);
}
.contact-project-hero .hero-slide-out {
    transform: scale(1.008);
    transition: opacity 1.2s ease-in-out, transform 4s ease-out;
}
.contact-project-hero .hero-copy-panel {
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.contact-project-hero .hero-copy-active {
    transition-delay: 0.1s;
}
.contact-project-hero .hero-gradient-left {
    transform: none;
    animation: hero-overlay-fade 0.9s ease forwards;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.45) 34%, rgba(10, 10, 10, 0.12) 68%, transparent 86%);
}
.hero-control-progress {
    width: 0;
}
.hero-control-progress-active {
    animation-name: hero-control-progress-fill;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
@keyframes hero-control-progress-fill {
    from { width: 0; }
    to { width: 100%; }
}

/* ─── Gold Gradient Text Shimmer ─────────────────────────────── */
.text-gold-gradient {
    background: linear-gradient(
        105deg,
        #8B6914 0%,
        #C5A572 25%,
        #E8D5A8 50%,
        #C5A572 75%,
        #8B6914 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 4s ease-in-out infinite;
}
@keyframes gold-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* ─── Hero Diagonal Left-Bottom Gradient ─────────────────────── */
@keyframes hero-diagonal-slide {
    0% { transform: translateX(-100%) skewX(-8deg); }
    100% { transform: translateX(0) skewX(0deg); }
}
.hero-gradient-left {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.75) 0%,
        rgba(10, 10, 10, 0.55) 30%,
        rgba(10, 10, 10, 0.15) 60%,
        transparent 80%
    );
    transform: translateX(-100%) skewX(-8deg);
    animation: hero-diagonal-slide 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

/* ─── Hero Cinematic Overlay Animation ───────────────────────── */
@keyframes hero-overlay-wipe {
    0% { clip-path: inset(100% 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@keyframes hero-overlay-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-overlay-animated {
    opacity: 0;
    animation: hero-overlay-fade 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
}
.hero-overlay-wipe {
    clip-path: inset(100% 0 0 0);
    animation: hero-overlay-wipe 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}
.hero-content-cinematic {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.4s;
}
.hero-content-cinematic .hero-eyebrow {
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.8s;
}
.hero-content-cinematic .hero-headline {
    opacity: 0;
    animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.8s;
}
.hero-content-cinematic .hero-subline {
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2.2s;
}
.hero-content-cinematic .hero-ctas {
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2.5s;
}
.hero-scroll-indicator {
    opacity: 0;
    animation: fade-in 0.8s ease-out forwards;
    animation-delay: 2.8s;
}

/* Subpage hero variant — faster timing for inner pages */
.hero-content-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1s;
}
.hero-content-sub .hero-eyebrow {
    opacity: 0;
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.1s;
}
.hero-content-sub .hero-headline {
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.3s;
}
.hero-content-sub .hero-subline {
    opacity: 0;
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.6s;
}
.hero-content-sub .hero-back-link {
    opacity: 0;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.9s;
}

/* Hero image starts slightly zoomed and slowly pulls back */
@keyframes hero-ken-burns {
    0% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.hero-bg-animated img {
    animation: hero-ken-burns 8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ─── Vignette ───────────────────────────────────────────────── */
.vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* ─── Progress Bar ───────────────────────────────────────────── */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
    z-index: 100;
    transition: width 0.15s ease;
}

/* ─── Brand Accent Utilities ────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.bg-gold { background-color: var(--gold); }
.bg-gold-light { background-color: var(--gold-light); }
.border-gold { border-color: var(--gold); }
.border-gold\/20 { border-color: rgba(197, 165, 114, 0.2); }
.border-gold\/30 { border-color: rgba(197, 165, 114, 0.3); }

.accent-line {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: #ffffff;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background: var(--gold-dark);
}

/* ─── Dark Page Styles ───────────────────────────────────────── */
.page-dark {
    background: #0a0a0a;
    color: #ffffff;
}
/* ─── Stagger children ───────────────────────────────────────── */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* ─── Page Transition ────────────────────────────────────────── */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 9998;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

/* ─── Vimeo / video cover background ─────────────────────────── */
.video-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.video-cover__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-cover__frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}
/* Cover any container aspect ratio (modern browsers). */
@supports (width: 1cqh) {
    .video-cover {
        container-type: size;
    }
    .video-cover__frame {
        width: max(100%, calc(100cqh * 16 / 9));
        height: max(100%, calc(100cqw * 9 / 16));
    }
}
/* Dim variants so the video matches the original image treatment. */
.video-cover--dim {
    filter: brightness(0.3);
}
.video-cover--gold {
    filter: brightness(0.72) saturate(1.35) sepia(0.16) contrast(1.05);
}
.video-cover--dim-soft {
    filter: brightness(0.85);
}
@media (prefers-reduced-motion: reduce) {
    .video-cover__frame {
        display: none;
    }
}
