/* ===========================================================
   Nights & Venues — additive animations
   Layered on top of Blackdsn's existing GSAP scroll system.
   Pure CSS, no JS bindings. Safe to remove without breaking
   anything in the template's core animations.
   =========================================================== */

/* ---------- 1. Hero background — slow Ken Burns zoom ----------
   Applied to the still <img> hero only. When the hero is a
   <video>, the video provides its own motion — Ken Burns on top
   would be too much, so we explicitly skip it.                  */
@keyframes nv-kenburns {
    0%   { transform: scale(1)    translate3d(0, 0, 0); }
    100% { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}

#dsn_header #hero_image img.cover-bg-img.transform-3d {
    animation: nv-kenburns 40s ease-in-out infinite alternate;
    will-change: transform;
}


/* ---------- 1b. Hero video — behave like the still hero ---------- */
/* The template's .cover-bg-img is written for <img> elements
   (object-fit: cover, position absolute, full size). It works on
   <video> too, but we add a few safeguards: ensure the video
   fills the parent and doesn't expose default chrome.            */

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none; /* keep clicks/scroll going to the page */
}

/* Browsers that don't support the autoplay attribute well still
   show the poster — make sure that poster looks like cover too. */
.hero-video[poster] {
    background-color: var(--bg-color, #0f0a0a);
}


/* ---------- 2. Event / portfolio card hover ---------- */
/* A burgundy tint fades over the image and a rose-gold line
   slides under the title.                                 */

.dsn-item-post .box-image-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 10, 10, 0) 40%,
        rgba(139, 30, 47, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.dsn-item-post:hover .box-image-bg::after {
    opacity: 1;
}

.dsn-item-post .post-title.title-block,
.dsn-item-post .post-title.title-h2 {
    position: relative;
    display: inline-block;
}

.dsn-item-post .post-title.title-block::after,
.dsn-item-post .post-title.title-h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--accent-color-soft, #c9967b);
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dsn-item-post:hover .post-title.title-block::after,
.dsn-item-post:hover .post-title.title-h2::after {
    width: 100%;
}

/* Soft scale on the image itself, gentler than the default
   template effect so it stacks well with the tint.        */
.dsn-item-post .box-image-bg img {
    transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dsn-item-post:hover .box-image-bg img {
    transform: scale(1.06);
}


/* ---------- 3. Service card hover lift + accent border ---------- */
.service-item .service-item-inner {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
    position: relative;
}

.service-item:hover .service-item-inner {
    transform: translateY(-6px);
    border-color: var(--accent-color-soft, #c9967b) !important;
    box-shadow: 0 30px 60px -30px rgba(139, 30, 47, 0.35);
}

.service-item .service-item-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 0;
    background: var(--accent-color, #8b1e2f);
    transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-item:hover .service-item-inner::before {
    width: 100%;
}


/* ---------- 4. Primary button — burgundy slide-fill on hover ---------- */
.dsn-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dsn-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-color, #8b1e2f);
    transform: translateX(-101%);
    transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
    /* template's .title-btn / .dsn-icon use z-index:2, so 1 sits between
       the button's background and the inner text/icon                  */
    z-index: 1;
    pointer-events: none;
}

.dsn-btn:hover::after {
    transform: translateX(0);
}

.dsn-btn:hover .title-btn,
.dsn-btn:hover .dsn-icon i {
    color: #f5ede4 !important;
    transition: color 0.35s ease 0.05s;
}


/* ---------- 5. Stroke text — breathing gradient ---------- */
@keyframes nv-stroke-breathe {
    0%, 100% {
        -webkit-text-stroke-color: rgba(245, 237, 228, 0.55);
                text-stroke-color: rgba(245, 237, 228, 0.55);
    }
    50% {
        -webkit-text-stroke-color: rgba(201, 150, 123, 0.9);
                text-stroke-color: rgba(201, 150, 123, 0.9);
    }
}

.letter-stroke {
    animation: nv-stroke-breathe 6s ease-in-out infinite;
}


/* ---------- 6. Eyebrow pill — pulsing dot ---------- */
@keyframes nv-pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.55;
    }
}

.circle-before::before {
    background: var(--accent-color-soft, #c9967b) !important;
    animation: nv-pulse-dot 2.4s ease-in-out infinite;
}


/* ---------- 7. Animated underline on text links ---------- */
.link-hover {
    position: relative;
}

.link-hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: currentColor;
    transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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


/* ---------- 8. Hero scroll indicator — gentle pulse ---------- */
@keyframes nv-scroll-pulse {
    0%, 100% { transform: translateY(0);    opacity: 1;    }
    50%      { transform: translateY(8px);  opacity: 0.55; }
}

.dsn-scroll-bottom {
    animation: nv-scroll-pulse 2.2s ease-in-out infinite;
}


/* ---------- 9. Marquee band (Nights & Venues categories) ----------
   Used on the homepage between sections. The element is
   .nv-marquee  > .nv-marquee__track > .nv-marquee__group (×2)        */

.nv-marquee {
    position: relative;
    overflow: hidden;
    padding: 32px 0;
    background: var(--assistant-color, #1a1212);
    border-top: 1px solid var(--border-color, rgba(255, 214, 200, 0.1));
    border-bottom: 1px solid var(--border-color, rgba(255, 214, 200, 0.1));
}

.nv-marquee__track {
    display: flex;
    width: max-content;
    animation: nv-marquee-scroll 38s linear infinite;
}

.nv-marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 48px;
}

.nv-marquee__item {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--heading-color, #f5ede4);
    padding: 0 32px;
    white-space: nowrap;
    transition: color 0.35s ease;
}

.nv-marquee__item:nth-child(2n) {
    color: var(--accent-color, #8b1e2f);
}

.nv-marquee__item:hover {
    color: var(--accent-color-soft, #c9967b);
}

.nv-marquee__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color-soft, #c9967b);
    flex-shrink: 0;
}

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

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


/* ---------- 10. Section title — subtle horizontal shine ----------
   Reads as a slow accent sweep across big H2s. Wrapped in @supports
   because background-clip:text + transparent text can render as
   invisible text if the browser doesn't paint the gradient.        */

@keyframes nv-shine-sweep {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .title-h2.text-upper {
        background-image: linear-gradient(
            100deg,
            var(--heading-color, #f5ede4) 0%,
            var(--heading-color, #f5ede4) 40%,
            var(--accent-color-soft, #c9967b) 50%,
            var(--heading-color, #f5ede4) 60%,
            var(--heading-color, #f5ede4) 100%
        );
        background-size: 200% 100%;
        -webkit-background-clip: text;
                background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: nv-shine-sweep 9s ease-in-out infinite;
    }
}


/* ---------- 11b. Hero H1 — visually replaced by SVG logo ----------
   The homepage hero originally had an H1 styled wordmark ("NIGHTS &
   VENUES"). Now that .nv-logo-dock paints the wordmark as SVG, the
   H1 would just collide with it. Hide it visually but keep it in
   the document for screen readers and SEO.                       */
.nv-logo-dock ~ * #hero_title .title,
#dsn_header #hero_title .title.title-xxl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    /* keep the original styling untouched for AJAX page transitions
       that might re-show the title elsewhere — we just hide here.   */
}

/* The subtitle paragraph that used to sit below the H1 collides
   visually with the centered SVG wordmark. Hide it in the hero —
   the SVG is now the sole focal point. Kept in DOM for any future
   re-use (e.g. screen readers or moving it elsewhere).            */
#dsn_header #hero_content .subtitle-meta {
    display: none !important;
}


/* ---------- 12. Logo dock — GSAP-driven version ----------
   Two SVG images, animated by nv-animations.js via GSAP + ScrollTrigger.

   - Entrance: hero wordmark fades in + rises into hero center.
   - Scroll-scrubbed: wordmark shrinks, moves toward navbar, and is
     clipped from both sides ("letters disappearing"). Near the end
     it fades out while the mark (logo-full.svg, N&V) fades in.

   The CSS here ONLY sets up the structural state. All movement /
   timing is owned by GSAP — we explicitly disable transitions so
   GSAP can update inline styles per frame without interference
   from global.css:17 `*:not(...) { transition: none }`.            */

.nv-logo-dock {
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* Template uses 97/98/99/100 on its own page-transition mask and
       day-night toggle. Sit just above those so the dock is visible,
       but well below the preloader (which uses 900199).             */
    z-index: 101;
}

.nv-logo-dock__inner {
    position: absolute;
    inset: 0;
}

/* ----- Persistent template logo (the "BLACK" wordmark image) -----
   The template renders #site_menu_header .main-brand at the top-left
   even with .d-none on the header. Hide it — our SVG dock replaces it. */
#site_menu_header .main-logo,
#site_menu_header .main-brand {
    display: none !important;
}

.nv-logo-dock__svg {
    position: absolute;
    display: block;
    will-change: top, left, width, height, opacity, clip-path;
    opacity: 0;
    clip-path: inset(0% 100% 0% 0%);
    width: clamp(480px, 65vw, 920px);
    
    /* Default CSS transition for left-to-right entrance wipe */
    transition: clip-path 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                top 1.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nv-logo-dock__svg.nv-logo-dock__svg--scrolling {
    /* Disable transitions completely during scroll updates */
    transition: none !important;
}

.nv-logo-dock__target {
    position: absolute;
    top: 14px;
    left: 90px;
    width: 44px;
    height: 67px;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: none !important;
}

.nv-logo-link {
    pointer-events: auto !important;
    cursor: pointer;
    display: block;
}

/* Fixed menu toggle wrapper inside the logo dock */
.nv-logo-toggle-wrapper {
    position: fixed !important;
    top: 22px !important;
    right: 90px !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
    z-index: 102 !important;
}
.nv-logo-toggle-wrapper #navbar_toggle {
    pointer-events: auto !important;
}

/* Hide the old navbar styling completely */
#site_menu_header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
}
#site_menu_header * {
    pointer-events: auto;
}
#site_menu_header.dsn-open {
    height: 100vh !important;
    pointer-events: auto !important;
}
/* We hide the original logo in the header */
#site_menu_header .main-logo {
    display: none !important;
}

/* Mobile sizing nudges — JS reads these via getComputedStyle so
    the same animation works at every breakpoint.                   */
@media only screen and (max-width: 767px) {
    .nv-logo-dock__svg {
        width: clamp(320px, 80vw, 480px);
    }
    .nv-logo-dock__target {
        top: 16px;
        left: 18px;
        width: 42px;
    }
    .nv-logo-toggle-wrapper {
        top: 16px !important;
        right: 18px !important;
    }
}


/* ---------- 13. Reduced motion — respect user preference ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}


/* ===========================================================
   Statement section — image collage + quote with scroll reveal
   Mirrors the reference layout (text-left, images-right), with
   a B&W treatment, burgundy hover tint, and a rose-gold curve
   pattern behind the text column.
   =========================================================== */

.nv-statement {
    position: relative;
    overflow: hidden;
}

.nv-statement__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .nv-statement__inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* ----- Text column ----- */
.nv-statement__text {
    position: relative;
}

.nv-statement__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    color: var(--accent-color-soft, #c9967b);
    margin-bottom: 24px;
    /* circle-before adds the pulsing rose-gold dot from our earlier
       animations layer — no extra rule needed here.                */
}

.nv-statement__quote {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(34px, 4.4vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--heading-color, #f5ede4);
    margin: 0;
}

.nv-statement__line {
    display: block;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    transition-delay: calc(var(--nv-line, 0) * 110ms) !important;
}

.nv-statement__line--accent {
    /* The closing line gets the rose-gold emphasis word. */
    margin-top: 14px;
    color: var(--font-color, #d9cfc4);
    font-size: 0.55em;
    font-family: var(--heading-font, "Excon", sans-serif);
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-transform: none;
}

.nv-statement__line--accent em {
    color: var(--accent-color-soft, #c9967b);
    font-style: italic;
}

.nv-statement.is-revealed .nv-statement__line {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Image grid ----- */
.nv-statement__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nv-statement__cell {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0;
    background: var(--assistant-color, #1a1212);
    /* Each cell fades + rises into view, staggered. */
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    transition-delay: calc(var(--nv-cell, 0) * 90ms + 200ms) !important;
}

.nv-statement.is-revealed .nv-statement__cell {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nv-statement__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* B&W by default — colour blooms on hover. */
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.6s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.nv-statement__cell::after {
    /* Burgundy tint that fades in over the bottom of each tile on hover. */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 10, 10, 0) 35%,
        rgba(139, 30, 47, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.5s ease !important;
    pointer-events: none;
}

.nv-statement__cell:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.06);
}

.nv-statement__cell:hover::after {
    opacity: 1;
}

/* ----- Decorative rose-gold curves -----
   Positioned behind the text column on the left. The image cells
   on the right are opaque so curves there would be invisible —
   keeping them on the left lets them peek through the negative
   space around the quote.                                       */
.nv-statement__decor {
    position: absolute;
    top: -40px;
    left: -60px;
    width: 60%;
    height: calc(100% + 80px);
    color: var(--accent-color-soft, #c9967b);
    pointer-events: none;
    z-index: 1;
    opacity: 0.75;
    /* Push behind the text content but stay above the body background. */
}

.nv-statement__decor path {
    /* Slightly bolder than default — 1.2px reads as a near-invisible
       hairline on dark backgrounds in Chrome.                       */
    stroke-width: 1.6 !important;
}

.nv-statement__text {
    /* Sit above the decoration without becoming opaque. */
    z-index: 3;
}

.nv-statement__decor path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    transition: stroke-dashoffset 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    transition-delay: calc(var(--nv-line, 0) * 180ms + 100ms) !important;
}

.nv-statement.is-revealed .nv-statement__decor path {
    stroke-dashoffset: 0;
}

@media (max-width: 991px) {
    .nv-statement__decor {
        width: 70%;
        opacity: 0.25;
    }
    .nv-statement__grid {
        gap: 10px;
    }
}


/* ===========================================================
   Services list — 8 editorial rows
   Big number / name / description / arrow per row.
   Hover: row slides right, burgundy gradient tint sweeps in,
   name shifts to rose-gold, arrow advances. Each row reveals
   with stagger on scroll (IO-driven .is-revealed on parent).
   =========================================================== */

.nv-services-list {
    position: relative;
}

.nv-services-list__head {
    margin-bottom: 60px;
    max-width: 800px;
}

.nv-services-list__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    color: var(--accent-color-soft, #c9967b);
    margin-bottom: 18px;
}

.nv-services-list__title {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.04;
    color: var(--heading-color, #f5ede4);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.nv-services-list__title em {
    font-style: italic;
    color: var(--accent-color-soft, #c9967b);
}

.nv-services-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    /* 2 columns × 4 rows — same content, half the height. */
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    row-gap: 0;
    border-top: 1px solid var(--border-color, rgba(255, 214, 200, 0.1));
}

.nv-services-list__item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 22px 20px;
    border-bottom: 1px solid var(--border-color, rgba(255, 214, 200, 0.1));
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Reveal: hidden initially, slides up + fades in when parent gets
       .is-revealed (added by the IntersectionObserver in nv-animations.js). */
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
        padding 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        background-color 0.45s ease !important;
    transition-delay: calc(var(--nv-row, 0) * 70ms + 100ms) !important;
}

.nv-services-list.is-revealed .nv-services-list__item {
    opacity: 1;
    transform: translateY(0);
}

/* Hover sweep — a burgundy gradient slides in from the left, behind
   the content. Pure CSS, no JS.                                    */
.nv-services-list__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(139, 30, 47, 0.18) 0%,
        rgba(139, 30, 47, 0.06) 60%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.65s cubic-bezier(0.7, 0, 0.2, 1) !important;
    pointer-events: none;
    z-index: 0;
}

.nv-services-list__item:hover::before {
    transform: translateX(0);
}

.nv-services-list__item:hover {
    padding-left: 32px;
}

/* Children stay above the gradient sweep. */
.nv-services-list__num,
.nv-services-list__content,
.nv-services-list__arrow {
    position: relative;
    z-index: 1;
}

.nv-services-list__num {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--accent-color-soft, #c9967b);
    font-feature-settings: "tnum" 1; /* tabular numerals so 01..08 align */
    transition: color 0.4s ease, transform 0.4s ease !important;
}

.nv-services-list__item:hover .nv-services-list__num {
    color: var(--heading-color, #f5ede4);
}

.nv-services-list__content {
    min-width: 0; /* avoid overflow on tight viewports */
}

.nv-services-list__name {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(20px, 1.8vw, 28px);
    line-height: 1.1;
    color: var(--heading-color, #f5ede4);
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin: 0;
    transition: color 0.4s ease, transform 0.4s ease !important;
}

.nv-services-list__item:hover .nv-services-list__name {
    color: var(--accent-color-soft, #c9967b);
    transform: translateX(6px);
}

.nv-services-list__desc {
    font-size: clamp(13px, 0.95vw, 14px);
    line-height: 1.5;
    color: var(--font-color, #d9cfc4);
    margin: 6px 0 0;
    max-width: 50ch;
}

.nv-services-list__arrow {
    color: var(--heading-color, #f5ede4);
    display: inline-flex;
    align-items: center;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
                color 0.4s ease !important;
    /* Subtle baseline state — partially transparent, slides in fully on hover */
    opacity: 0.4;
    transform: translateX(-8px);
}

.nv-services-list__item:hover .nv-services-list__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-color-soft, #c9967b);
}

/* Below 991px collapse back to a single column so cells don't get
   so cramped that the description wraps awkwardly.                */
@media (max-width: 991px) {
    .nv-services-list__items {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

@media (max-width: 767px) {
    .nv-services-list__item {
        grid-template-columns: 44px 1fr;
        gap: 16px;
        padding: 20px 12px;
    }
    .nv-services-list__item:hover {
        padding-left: 22px;
    }
    .nv-services-list__arrow {
        display: none; /* collapse arrow on mobile — too cramped */
    }
    .nv-services-list__head {
        margin-bottom: 36px;
    }
}


/* ===========================================================
   Event types — 4 cells in a 2x2 grid with bullet markers,
   echoing the reference comp's editorial bullet list.
   Subtle burgundy orbs sit in the background as the dark-mode
   answer to the reference's watermark circles.
   =========================================================== */

.nv-event-types {
    position: relative;
}

.nv-event-types__container {
    position: relative;
    z-index: 1;
}

/* ----- Header ----- */
.nv-event-types__head {
    margin-bottom: 48px;
    max-width: 800px;
}

.nv-event-types__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    color: var(--accent-color-soft, #c9967b);
    margin-bottom: 18px;
}

.nv-event-types__title {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    margin: 0;
    color: var(--heading-color, #f5ede4);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.nv-event-types__title em {
    font-style: italic;
    color: var(--accent-color-soft, #c9967b);
}

/* ----- Grid ----- */
.nv-event-types__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 80px;
}

.nv-event-types__item {
    position: relative;
    padding-left: 36px;
    /* Reveal: hidden initially, slides up + fades in when parent gets
       .is-revealed (added by the IntersectionObserver).               */
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    transition-delay: calc(var(--nv-cell, 0) * 110ms + 150ms) !important;
}

.nv-event-types.is-revealed .nv-event-types__item {
    opacity: 1;
    transform: translateY(0);
}

/* Bullet dot — pulsing rose-gold marker on the left. */
.nv-event-types__bullet {
    position: absolute;
    top: 11px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color-soft, #c9967b);
    animation: nv-pulse-dot 2.6s ease-in-out infinite;
    /* `nv-pulse-dot` is already defined earlier in this file for the
       eyebrow pills — reusing it keeps the visual language consistent. */
}

.nv-event-types__bullet::after {
    /* Soft halo around the bullet so it feels warm. */
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(201, 150, 123, 0.35), transparent 70%);
    pointer-events: none;
}

.nv-event-types__name {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--heading-color, #f5ede4);
    margin: 0 0 12px;
    transition: color 0.4s ease, transform 0.4s ease !important;
}

.nv-event-types__item:hover .nv-event-types__name {
    color: var(--accent-color-soft, #c9967b);
    transform: translateX(6px);
}

.nv-event-types__desc {
    font-size: clamp(14px, 1vw, 15.5px);
    line-height: 1.6;
    color: var(--font-color, #d9cfc4);
    margin: 0;
    max-width: 52ch;
}

/* ----- Decorative orbs (dark-mode "watermark circles") ----- */
.nv-event-types__decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.nv-event-types__orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(139, 30, 47, 0.28) 0%,
        rgba(139, 30, 47, 0.08) 45%,
        transparent 75%
    );
    filter: blur(2px);
}

.nv-event-types__orb--a {
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
}

.nv-event-types__orb--b {
    bottom: -90px;
    right: 35%;
    width: 260px;
    height: 260px;
    background: radial-gradient(
        circle,
        rgba(201, 150, 123, 0.22) 0%,
        rgba(201, 150, 123, 0.05) 50%,
        transparent 75%
    );
}

.nv-event-types__orb--c {
    top: 40%;
    right: -160px;
    width: 320px;
    height: 320px;
}

@media (max-width: 767px) {
    .nv-event-types__items {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .nv-event-types__head {
        margin-bottom: 32px;
    }
}


/* ===========================================================
   Gallery slider — full-width Swiper carousel.
   Slides are injected at runtime by nv-animations.js after
   fetching the JSON index and Fisher-Yates shuffling it. If
   the fetch fails (DNS / CORS / 404), the section hides
   itself rather than showing a broken slider.
   =========================================================== */

.nv-gallery {
    position: relative;
    /* Section is always visible. JS populates slides from the JSON
       index when the fetch succeeds, otherwise falls back to a
       small local image set so the layout is always demonstrable.  */
}

.nv-gallery__head-wrap {
    margin-bottom: 36px;
}

.nv-gallery__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    color: var(--accent-color-soft, #c9967b);
    margin-bottom: 16px;
}

.nv-gallery__title {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    margin: 0;
    color: var(--heading-color, #f5ede4);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.nv-gallery__title em {
    font-style: italic;
    color: var(--accent-color-soft, #c9967b);
}

/* ----- Swiper container ----- */
.nv-gallery__swiper {
    width: 100%;
    /* Shorter than before — each slide is now narrower (multi-per-view),
       so a fixed tall hero would feel disproportionate.                */
    height: clamp(360px, 56vh, 560px);
    position: relative;
    overflow: hidden;
    background: transparent; /* let the page background show between slides */
}

.nv-gallery__track {
    /* Swiper handles the flex/transform itself. */
}

/* Slide width is set by Swiper based on slidesPerView; we just style
   the visual treatment.                                              */
.nv-gallery__slide {
    height: 100%;
    overflow: hidden;
    position: relative;
    background: var(--assistant-color, #1a1212);
    border-radius: 2px;
}

.nv-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.0);
    transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.nv-gallery__slide:hover img {
    transform: scale(1.06);
}

/* Vignette to give the slide weight on dark backgrounds and
   keep the controls/text readable.                          */
.nv-gallery__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 10, 10, 0) 55%,
        rgba(15, 10, 10, 0.55) 100%);
    pointer-events: none;
}

/* ----- Prev / Next ----- */
.nv-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(15, 10, 10, 0.55);
    color: var(--heading-color, #f5ede4);
    border: 1px solid rgba(245, 237, 228, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease !important;
}

.nv-gallery__nav:hover {
    background: var(--accent-color, #8b1e2f);
    border-color: var(--accent-color, #8b1e2f);
    color: var(--heading-color, #f5ede4);
}

.nv-gallery__nav--prev { left: 28px; }
.nv-gallery__nav--next { right: 28px; }

.nv-gallery__nav:hover.nv-gallery__nav--prev { transform: translateY(-50%) translateX(-4px); }
.nv-gallery__nav:hover.nv-gallery__nav--next { transform: translateY(-50%) translateX(4px); }

/* Hide Swiper's default arrow content — we provide our own SVG. */
.nv-gallery__nav::after,
.nv-gallery__nav::before { content: none !important; }

/* ----- Progress bar pagination ----- */
.nv-gallery__progress.swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(245, 237, 228, 0.1);
    z-index: 4;
}

.nv-gallery__progress.swiper-pagination .swiper-pagination-progressbar-fill {
    background: var(--accent-color-soft, #c9967b);
    transform-origin: left center;
}

@media (max-width: 767px) {
    .nv-gallery__swiper {
        height: clamp(280px, 55vh, 480px);
    }
    .nv-gallery__nav {
        width: 44px;
        height: 44px;
    }
    .nv-gallery__nav--prev { left: 12px; }
    .nv-gallery__nav--next { right: 12px; }
}

/* ----- "View Full Gallery" CTA below the slider ----- */
.nv-gallery__cta-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}


/* ===========================================================
   Gallery page — full archive grid
   Used on gallery.html. Fetches every entry from the JSON
   index (no slice cap) and lays them out in a masonry-style
   responsive grid. Each tile clickable for Fancybox lightbox.
   =========================================================== */

.nv-gallery-page {
    position: relative;
}

.nv-gallery-page__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.nv-gallery-page__count {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--font-color, #d9cfc4);
}

.nv-gallery-page__count-num {
    color: var(--heading-color, #f5ede4);
    font-family: var(--heading-font, "Excon", sans-serif);
    font-weight: 500;
    margin-right: 4px;
}

.nv-gallery-page__shuffle {
    appearance: none;
    background: transparent;
    border: 1px solid var(--border-color, rgba(255, 214, 200, 0.18));
    color: var(--heading-color, #f5ede4);
    padding: 10px 18px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease !important;
}

.nv-gallery-page__shuffle:hover {
    background: var(--accent-color, #8b1e2f);
    border-color: var(--accent-color, #8b1e2f);
}

.nv-gallery-page__shuffle svg {
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.nv-gallery-page__shuffle:hover svg {
    transform: rotate(180deg);
}

/* ----- Masonry-style grid ----- */
.nv-gallery-page__grid {
    /* CSS Grid with implicit-row masonry-ish layout. Each tile decides
       its own aspect via the source image. We use grid-auto-rows: 10px
       + JS-driven row-span to fake masonry on all browsers (true
       `masonry` is still only behind a flag in most engines).         */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    grid-auto-rows: 10px;
    grid-auto-flow: dense;
}

.nv-gallery-page__tile {
    position: relative;
    overflow: hidden;
    background: var(--assistant-color, #1a1212);
    border-radius: 2px;
    /* Default span — overwritten by JS once the image natural size is known. */
    grid-row-end: span 28;
    cursor: zoom-in;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.nv-gallery-page__tile.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

.nv-gallery-page__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
                filter 0.4s ease !important;
}

.nv-gallery-page__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 10, 10, 0) 60%,
        rgba(139, 30, 47, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease !important;
    pointer-events: none;
}

.nv-gallery-page__tile:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.nv-gallery-page__tile:hover::after {
    opacity: 1;
}

.nv-gallery-page__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--font-color, #d9cfc4);
    font-size: 15px;
}

@media (max-width: 767px) {
    .nv-gallery-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
}


/* ===========================================================
   Clients marquee — infinite horizontal scroll of client
   logos. Two identical groups inside one track translate
   -50% over 80s for a seamless loop. Logos render as ghosted
   white shapes by default; original colour returns on hover.
   =========================================================== */

.nv-clients {
    position: relative;
}

.nv-clients__head-wrap {
    text-align: center;
    margin-bottom: 48px;
}

.nv-clients__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    color: var(--accent-color-soft, #c9967b);
    margin-bottom: 16px;
}

.nv-clients__title {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.05;
    margin: 0;
    color: var(--heading-color, #f5ede4);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.nv-clients__title em {
    font-style: italic;
    color: var(--accent-color-soft, #c9967b);
}

.nv-clients__marquee {
    position: relative;
    padding: 16px 0;
    /* Fade out the strip at both edges so it doesn't hit hard borders. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* Each row has its own overflow window so the two tracks don't run
   into each other. The mask above fades both rows uniformly.       */
.nv-clients__row {
    overflow: hidden;
}

.nv-clients__row + .nv-clients__row {
    margin-top: 24px;
}

.nv-clients__track {
    display: flex;
    width: max-content;
}

/* Row 1: scrolls right-to-left (default reading direction). */
.nv-clients__track--ltr {
    animation: nv-clients-scroll-ltr 60s linear infinite;
}

/* Row 2: scrolls left-to-right (opposite direction for visual rhythm). */
.nv-clients__track--rtl {
    animation: nv-clients-scroll-rtl 60s linear infinite;
}

.nv-clients__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 64px;
    padding-right: 64px;
}

.nv-clients__item {
    flex-shrink: 0;
    height: 64px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-clients__item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    /* Ghosted-white treatment: brightness(0) makes any pixel black,
       invert(1) flips it to white. opacity softens further so we read
       as a presence, not a stamp. Original colour returns on hover. */
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: filter 0.45s ease, opacity 0.45s ease !important;
}

.nv-clients__item:hover img {
    filter: none;
    opacity: 1;
}

@keyframes nv-clients-scroll-ltr {
    from { transform: translateX(0);     }
    to   { transform: translateX(-50%);  }
}

@keyframes nv-clients-scroll-rtl {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0);    }
}

.nv-clients__marquee:hover .nv-clients__track {
    animation-play-state: paused;
}

@media (max-width: 767px) {
    .nv-clients__item {
        height: 50px;
        width: 130px;
    }
    .nv-clients__group {
        gap: 44px;
        padding-right: 44px;
    }
    .nv-clients__head-wrap {
        margin-bottom: 32px;
    }
}


/* ===========================================================
   About page — stats grid, closing CTA, and a shared rule
   for rose-gold italic emphasis in hero titles.
   =========================================================== */

/* Hero <h1> em now picks up the rose-gold italic treatment used
   everywhere else (.nv-statement__line--accent em, etc.).      */
#dsn_header .title em {
    font-style: italic;
    color: var(--accent-color-soft, #c9967b);
}

/* ----- Stats grid (about page) ----- */
.nv-stats__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-color, rgba(255, 214, 200, 0.12));
    border-bottom: 1px solid var(--border-color, rgba(255, 214, 200, 0.12));
}

.nv-stats__cell {
    padding: 44px 22px;
    text-align: center;
    position: relative;
}

.nv-stats__cell + .nv-stats__cell {
    border-left: 1px solid var(--border-color, rgba(255, 214, 200, 0.12));
}

.nv-stats__num {
    display: block;
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1;
    color: var(--heading-color, #f5ede4);
    letter-spacing: -0.02em;
}

.nv-stats__label {
    display: block;
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: var(--accent-color-soft, #c9967b);
}

@media (max-width: 767px) {
    .nv-stats__grid {
        grid-template-columns: 1fr 1fr;
    }
    .nv-stats__cell:nth-child(3),
    .nv-stats__cell:nth-child(4) {
        border-top: 1px solid var(--border-color, rgba(255, 214, 200, 0.12));
    }
    .nv-stats__cell:nth-child(odd) { border-left: 0; }
}


/* ----- Closing CTA (about page) ----- */
.nv-about-cta {
    text-align: center;
}

.nv-about-cta__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px;
}

.nv-about-cta__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    color: var(--accent-color-soft, #c9967b);
    margin-bottom: 18px;
}

.nv-about-cta__title {
    font-family: var(--heading-font, "Excon", sans-serif);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    color: var(--heading-color, #f5ede4);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.nv-about-cta__title em {
    font-style: italic;
    color: var(--accent-color-soft, #c9967b);
}
