/* ==========================================================================
   TerraBlaze — "Cinema" theme, home page                    css/cinema-home.css
   --------------------------------------------------------------------------
   Loaded only by index.html, after css/cinema.css. Builds the page the
   reference describes: a giant translucent word over a film, an image that
   fades into black beside a short story, a strip of square frames, a
   programme of white day-pills, a "what's included" block, an underlined
   enquiry form and a closing thank-you.

     1  Hero                       5  Programme (day by day)
     2  The story + gallery strip  6  Included / quote
     3  Routes (expanding panels)  7  Journey (enquiry) + thanks
     4  Shared title / eyebrow     8  Responsive
   ========================================================================== */


/* ==========================================================================
   4. SHARED — big titles on this page
   ========================================================================== */
.cx-title {
    font-family: var(--cx-font);
    font-size: clamp(2.6rem, 6.2vw, 6rem);
    font-weight: 900;
    line-height: 0.93;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.cx-home .section-subtitle { margin-bottom: 1.6rem; }


/* ==========================================================================
   1. HERO
   ========================================================================== */
.cx-hero {
    position: relative;
    display: block;
    height: 100vh;
    height: 100svh;
    min-height: 660px;
    padding: 0;
    background: #050505;
    overflow: hidden;
}

.cx-hero .hero-cinema { will-change: transform; }

/* The photograph sits a little darker and cooler than the montage's native grade */
.cx-hero .hero-poster,
.cx-hero .hero-film { filter: saturate(0.86) contrast(1.06) brightness(0.74); }

.cx-hero .hero-grade {
    background:
        radial-gradient(120% 92% at 56% 36%, transparent 32%, rgba(5, 5, 5, 0.72) 100%),
        linear-gradient(to bottom, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0.12) 28%, rgba(5, 5, 5, 0.22) 60%, #060606 100%);
}

.cx-hero .hero-grain { opacity: 0.07; }
.cx-hero .hero-scroll-indicator { display: none; }

.cx-hero__inner {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    padding: calc(var(--cx-header-h) + 1rem) var(--cx-gutter) clamp(6.5rem, 12vh, 9rem);
    will-change: transform, opacity;
}

.cx-hero__col {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.cx-hero__kicker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--cx-ember);
}

.cx-hero__kicker::before {
    content: '';
    width: 46px;
    height: 1px;
    background: var(--cx-ember);
}

.cx-hero__title {
    margin: 0 0 1.3rem;
    font-size: clamp(2.3rem, 4.9vw, 4.7rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #fff;
    text-wrap: balance;
}

.cx-hero__title { text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4); }
.cx-hero__title em { font-style: normal; color: rgba(255, 255, 255, 0.66); }

.cx-hero__sub {
    max-width: 46ch;
    margin: 0;
    font-size: clamp(0.9rem, 1.1vw, 1.04rem);
    font-weight: 500;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

/* The one giant word — translucent white, fading toward its foot, like "ИСТОКИ" */
.cx-hero__word {
    margin: 0.04em 0 0 -0.05em;
    font-size: clamp(5rem, 17.2vw, 17.5rem);
    font-weight: 900;
    line-height: 0.76;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.cx-hero__word {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.34) 58%, rgba(255, 255, 255, 0.06) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cx-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin-top: clamp(1.4rem, 3vh, 2.4rem);
}

.cx-hero__social {
    position: absolute;
    right: var(--cx-gutter);
    bottom: clamp(5.4rem, 11vh, 6.6rem);
    z-index: 6;
    display: flex;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-hero__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--cx-line-3);
    border-radius: 50%;
    background: rgba(6, 6, 6, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.45s var(--cx-ease), border-color 0.45s var(--cx-ease);
}

.cx-hero__social svg { width: 15px; height: 15px; fill: #fff; transition: fill 0.45s var(--cx-ease); }
.cx-hero__social a:hover { background: #fff; border-color: #fff; }
.cx-hero__social a:hover svg { fill: #050505; }

.cx-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--cx-fg-3);
}

.cx-hero__scroll i {
    position: relative;
    display: block;
    width: 1px;
    height: 46px;
    background: var(--cx-line-3);
    overflow: hidden;
}

.cx-hero__scroll i::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 46%;
    background: #fff;
    animation: cxScrollCue 2.2s var(--cx-ease-io) infinite;
}

@keyframes cxScrollCue {
    0% { transform: translateY(-110%); }
    70%, 100% { transform: translateY(240%); }
}

/* Scene bar (captions + progress ticks) — restyled, same hooks as hero-cinema.js */
.cx-hero .hero-scenebar {
    bottom: 1.7rem;
    padding: 0 var(--cx-gutter) 0 calc(var(--cx-gutter) + 4.4rem);
    align-items: center;
}

.cx-hero .hero-scene-no {
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--cx-ember);
}

.cx-hero .hero-scene-label { gap: 1rem; }

.cx-hero .hero-scene-caption {
    font-family: var(--cx-font);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: none;
}

.cx-hero .hero-tick { width: 38px; border-radius: 0; background: rgba(255, 255, 255, 0.2); }
.cx-hero .hero-tick i { background: #fff; }



/* ==========================================================================
   2. THE STORY + GALLERY STRIP
   ========================================================================== */
.cx-intro {
    position: relative;
    padding: clamp(6rem, 12vw, 11rem) 0;
    overflow: hidden;
}

/* The photograph fades into the black on every side but the left */
.cx-intro__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(66%, 1040px);
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to right, #000 38%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.cx-intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) brightness(0.6) contrast(1.08);
    transform: scale(1.12);
}

.cx-intro .section-subtitle { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8); }

.cx-intro__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    min-height: clamp(420px, 56vw, 640px);
}

.cx-intro__copy { max-width: 390px; justify-self: end; }

.cx-intro__copy h3 {
    margin: 0 0 1.4rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

.cx-intro__copy p {
    margin: 0 0 1.2rem;
    font-size: 0.9rem;
    line-height: 1.95;
    color: var(--cx-fg-3);
}

.cx-intro__copy .cx-link { margin-top: 1.2rem; }

/* ---- Strip of six frames ---- */
.cx-strip {
    padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(5rem, 9vw, 8rem);
    border-top: 1px solid var(--cx-line-2);
}

.cx-strip__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.cx-strip__head .section-subtitle { margin-bottom: 0; }

.cx-strip__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.5rem, 1vw, 1rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-strip__item a {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #000;
}

.cx-strip__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) brightness(0.8) contrast(1.05);
    transition: transform 1.3s var(--cx-ease), filter 0.9s var(--cx-ease);
}

.cx-strip__item a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.78), transparent 55%);
    opacity: 0;
    transition: opacity 0.6s var(--cx-ease);
}

.cx-strip__item span {
    position: absolute;
    left: 0.9rem;
    bottom: 0.8rem;
    z-index: 2;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s var(--cx-ease), transform 0.8s var(--cx-ease);
}

.cx-strip__item a:hover img,
.cx-strip__item a:focus-visible img { transform: scale(1.14); filter: saturate(1) brightness(0.95) contrast(1.05); }
.cx-strip__item a:hover::after,
.cx-strip__item a:focus-visible::after { opacity: 1; }
.cx-strip__item a:hover span,
.cx-strip__item a:focus-visible span { opacity: 1; transform: none; }


/* ---- Tagline marquee ---- */
.cx-marquee {
    padding: clamp(1.3rem, 2.8vw, 2.4rem) 0;
    border-top: 1px solid var(--cx-line-2);
    overflow: hidden;
    user-select: none;
}

.cx-marquee__track { display: flex; justify-content: center; }
.cx-marquee__set { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 0.2em; }

.cx-marquee__set span {
    padding: 0 0.32em;
    font-size: clamp(2.2rem, 5vw, 5.2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    white-space: nowrap;
    /* dim words are a gradient clipped to the letters, so they read as texture, not as small print */
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
    -webkit-background-clip: text;
    background-clip: text;
}

.cx-marquee__set span:nth-of-type(even) {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
}

.cx-marquee__set i {
    flex: none;
    width: clamp(0.8rem, 1.6vw, 1.5rem);
    height: clamp(0.8rem, 1.6vw, 1.5rem);
    background: var(--cx-ember);
    transform: rotate(45deg);
}


/* ==========================================================================
   3. ROUTES — expanding panels
   ========================================================================== */
.cx-routes {
    padding: clamp(5rem, 9vw, 8rem) 0 0;
    border-top: 1px solid var(--cx-line-2);
    overflow: hidden;
}

.cx-routes .section-header { margin-bottom: clamp(2rem, 4vw, 3.2rem); }

.cx-panels {
    display: flex;
    gap: 0;
    height: clamp(540px, 80vh, 780px);
    border-top: 1px solid var(--cx-line);
    border-bottom: 1px solid var(--cx-line);
}

.cx-panels .trek-card {
    position: relative;
    display: block;
    flex: 1 1 0;
    min-width: 0;
    background: #050505;
    border: 0;
    border-left: 1px solid var(--cx-line);
    overflow: hidden;
    cursor: pointer;
    transform: none !important;
    transition: flex-grow 1.05s var(--cx-ease-io);
}

.cx-panels .trek-card:first-child { border-left: 0; }
.cx-panels .trek-card.is-active { flex-grow: 4.6; }

.cx-panels .trek-card-media {
    position: absolute;
    inset: 0;
    height: auto;
    background: #000;
}

.cx-panels .trek-card-img,
.cx-panels .trek-card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cx-panels .trek-card-img {
    filter: grayscale(0.85) brightness(0.46) contrast(1.05);
    transform: scale(1.14);
    transition: filter 1.1s var(--cx-ease), transform 1.8s var(--cx-ease);
}

.cx-panels .trek-card.is-active .trek-card-img { filter: saturate(0.95) brightness(0.84) contrast(1.05); transform: scale(1); }
.cx-panels .trek-card:hover .trek-card-img { transform: scale(1.04); }

.cx-panels .trek-card-video { z-index: 1; }

.cx-panels .trek-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.52) 36%, rgba(5, 5, 5, 0.08) 70%, rgba(5, 5, 5, 0.4) 100%);
    pointer-events: none;
}

.cx-panels .trek-card::before { display: none !important; }

.cx-panel__no {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 4;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    color: #fff;
}

.cx-panel__no::after {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    margin-top: 0.7rem;
    background: var(--cx-ember);
    transition: width 0.9s var(--cx-ease);
}

.cx-panels .trek-card.is-active .cx-panel__no::after { width: 56px; }

.cx-panel__rail {
    position: absolute;
    left: 1.45rem;
    bottom: 1.7rem;
    z-index: 4;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    transition: opacity 0.5s var(--cx-ease), transform 0.9s var(--cx-ease);
}

.cx-panels .trek-card.is-active .cx-panel__rail { opacity: 0; transform: rotate(180deg) translateY(36px); }

.cx-panels .trek-card-badge {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    z-index: 4;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--cx-line-3);
    color: #fff;
}

.cx-panels .trek-card-content {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 4;
    display: block;
    width: clamp(330px, 36vw, 580px);
    max-width: 100%;
    padding: clamp(1.5rem, 2.8vw, 2.8rem);
    pointer-events: none;
}

.cx-panels .trek-card.is-active .trek-card-content { pointer-events: auto; }

.cx-panels .trek-card-content > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.5s var(--cx-ease), transform 0.6s var(--cx-ease);
}

.cx-panels .trek-card.is-active .trek-card-content > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--cx-ease), transform 1.1s var(--cx-ease);
}

.cx-panels .trek-card.is-active .trek-card-content > :nth-child(1) { transition-delay: 0.38s; }
.cx-panels .trek-card.is-active .trek-card-content > :nth-child(2) { transition-delay: 0.46s; }
.cx-panels .trek-card.is-active .trek-card-content > :nth-child(3) { transition-delay: 0.54s; }
.cx-panels .trek-card.is-active .trek-card-content > :nth-child(4) { transition-delay: 0.62s; }

.cx-panels .trek-card-meta { gap: 1.4rem; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.78); }

.cx-panels .trek-card-title {
    max-width: 11ch;
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3.1vw, 3rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #fff;
}

.cx-panels .trek-card-desc {
    max-width: 42ch;
    margin: 0 0 1.5rem;
    font-size: 0.86rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.76);
}

/* Wide screens: inset the panels so the fixed rails live in the margin, not on the photographs */
@media (min-width: 1340px) and (hover: hover) {
    .cx-panels { margin-inline: 88px; border-inline: 1px solid var(--cx-line); }
}

/* Only the open panel shows its badge */
.cx-panels .trek-card:not(.is-active) .trek-card-badge { opacity: 0; }
.cx-panels .trek-card-badge { transition: opacity 0.6s var(--cx-ease); }

.cx-panels .trek-card-footer {
    justify-content: flex-start;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    border: 0;
}


/* ==========================================================================
   5. PROGRAMME — day by day
   ========================================================================== */
.cx-program {
    position: relative;
    padding: clamp(5rem, 9vw, 8rem) 0 clamp(5rem, 9vw, 8rem);
    overflow: hidden;
}

.cx-program__head {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem 3rem;
    margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.cx-program__count { display: inline-block; font-variant-numeric: tabular-nums; }

.cx-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cx-tab {
    display: inline-flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--cx-line-3);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: var(--cx-font);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.45s var(--cx-ease), color 0.45s var(--cx-ease), border-color 0.45s var(--cx-ease);
}

.cx-tab i { font-style: normal; font-weight: 600; letter-spacing: 0.1em; opacity: 0.55; }
.cx-tab:hover { border-color: #fff; }
.cx-tab.is-active { background: #fff; border-color: #fff; color: #050505; }

.cx-program .container,
.cx-program__stage { position: static; }

.cx-program__stage { min-height: 560px; }

.cx-program__days { position: relative; z-index: 2; max-width: 660px; }

.cx-days { display: none; }
.cx-days.is-active { display: block; }

.cx-days__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
    margin: 0 0 1.6rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cx-fg-3);
}

.cx-days__meta span:first-child { color: var(--cx-ember); }

.cx-days__cols,
.cx-day {
    display: grid;
    grid-template-columns: 4.6rem 6.2rem minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
}

.cx-days__cols {
    margin: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--cx-line);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cx-fg-3);
}

.cx-days__list { margin: 0; padding: 0; list-style: none; }

.cx-day {
    padding: 0.78rem 0;
    border-bottom: 1px solid var(--cx-line-2);
    transition: background 0.4s var(--cx-ease), padding-left 0.5s var(--cx-ease);
}

.cx-day:hover { background: rgba(255, 255, 255, 0.025); padding-left: 0.6rem; }

.cx-day__no {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.cx-pill--empty {
    position: relative;
    min-width: 3.1rem;
    background: transparent;
    border: 1px solid var(--cx-line-3);
    color: var(--cx-fg-3);
}

.cx-pill--empty::before {
    content: '';
    display: block;
    width: 0.7rem;
    height: 1px;
    margin: 0.78em auto;
    background: currentColor;
}

.cx-day .cx-pill { justify-self: start; }

.cx-day__txt strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.cx-day__txt em {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.72rem;
    font-style: normal;
    letter-spacing: 0.03em;
    color: var(--cx-fg-3);
}

.cx-days.is-active .cx-day { animation: cxRow 0.9s var(--cx-ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }

@keyframes cxRow {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.cx-days__links { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; margin-top: 1.8rem; }

/* The route photograph — fades into the black on its left, top and foot */
.cx-program__photos {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(56%, 860px);
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
    mask-image: linear-gradient(to left, #000 30%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.cx-program__photos img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: saturate(0.82) brightness(0.74) contrast(1.06);
    transform: scale(1.1);
    transition: opacity 1.1s var(--cx-ease), transform 2s var(--cx-ease);
}

.cx-program__photos img.is-active { opacity: 1; transform: scale(1); }


/* ==========================================================================
   6. INCLUDED / QUOTE
   ========================================================================== */
.cx-cost {
    position: relative;
    padding: clamp(5rem, 9vw, 8rem) 0;
    border-top: 1px solid var(--cx-line-2);
    overflow: hidden;
}

.cx-cost__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(34%, 520px);
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, #000 45%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.cx-cost__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 38%;
    filter: saturate(0.78) brightness(0.62) contrast(1.06);
    transform: scale(1.12);
}

.cx-cost__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    padding-left: clamp(0px, 22vw, 340px);
}

.cx-cost__big { font-size: clamp(2.3rem, 4.3vw, 4rem); }

.cx-cost__note {
    max-width: 36ch;
    margin: 1.6rem 0 2rem;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--cx-fg-3);
}

.cx-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }

.cx-chip {
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--cx-line);
    border-radius: 0;
    background: transparent;
    color: var(--cx-fg-3);
    font-family: var(--cx-font);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.45s var(--cx-ease), color 0.45s var(--cx-ease), border-color 0.45s var(--cx-ease);
}

.cx-chip:hover { color: #fff; border-color: var(--cx-line-3); }
.cx-chip.is-active { background: #fff; border-color: #fff; color: #050505; }

.cx-lists { display: none; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.cx-lists.is-active { display: grid; animation: cxRow 0.9s var(--cx-ease) backwards; }

.cx-list h3 { margin: 0 0 1.2rem; font-size: 0.98rem; font-weight: 800; color: #fff; }
.cx-list ul { margin: 0; padding: 0; list-style: none; }

.cx-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.2rem;
    border-top: 1px solid var(--cx-line-2);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--cx-fg-3);
}

.cx-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.32em;
    width: 7px;
    height: 1px;
    background: var(--cx-ember);
}

.cx-list--out li::before { background: var(--cx-fg-4); }


/* ==========================================================================
   7. JOURNEY (enquiry) + THANKS
   ========================================================================== */
.cx-why { border-top: 1px solid var(--cx-line-2); }

.cx-journey {
    position: relative;
    padding: clamp(5rem, 9vw, 8rem) 0 0;
    border-top: 1px solid var(--cx-line-2);
    overflow: hidden;
}

.cx-journey__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.4rem, 7vw, 7rem);
    align-items: start;
}

.cx-journey__head p {
    max-width: 38ch;
    margin: 1.8rem 0 1.8rem;
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--cx-fg-3);
}

.cx-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2rem; }
.cx-form .form-group { margin-bottom: 1.7rem; }
.cx-form .form-submit-btn { margin-top: 0.6rem; }

.cx-journey__photo {
    position: relative;
    height: clamp(260px, 38vw, 560px);
    margin-top: clamp(3.4rem, 7vw, 6rem);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
}

.cx-journey__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 82%;
    filter: saturate(0.88) brightness(0.8) contrast(1.05);
}

.cx-thanks {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(92vh, 840px);
    text-align: center;
    background: #050505;
    overflow: hidden;
}

.cx-thanks__bg {
    position: absolute;
    top: -8%;
    left: 0;
    width: 100%;
    height: 116%;
    object-fit: cover;
    filter: saturate(0.88) brightness(0.52) contrast(1.06);
    will-change: transform;
}

.cx-thanks::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, var(--cx-bg) 0%, rgba(6, 6, 6, 0.1) 34%, rgba(6, 6, 6, 0.3) 70%, var(--cx-bg) 100%);
    pointer-events: none;
}

.cx-thanks__inner { position: relative; z-index: 2; padding: clamp(5rem, 10vw, 8rem) var(--cx-gutter); }

.cx-thanks__nepali {
    margin: 0 0 0.8rem;
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--cx-ember);
}

.cx-thanks__title {
    font-size: clamp(2.6rem, 10.8vw, 11.5rem);
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #fff;
}

.cx-thanks__line {
    margin: 1.8rem 0 0;
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.84);
}

.cx-thanks__heart {
    display: block;
    width: 44px;
    height: 44px;
    margin: 1.8rem auto 0;
    fill: #fff;
    animation: cxHeart 2.6s var(--cx-ease) infinite;
}

@keyframes cxHeart {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.16); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.cx-thanks__tag {
    margin: 2.8rem 0 0;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--cx-fg-3);
}


/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .cx-intro__grid { grid-template-columns: 1fr; min-height: 0; }
    .cx-intro__copy { justify-self: start; max-width: 520px; }
    .cx-intro__media { width: 100%; opacity: 0.55; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); }

    .cx-program__photos { width: 100%; left: 0; right: 0; opacity: 0.32; -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%); mask-image: linear-gradient(to bottom, #000 20%, transparent 100%); }

    .cx-cost__grid { grid-template-columns: 1fr; padding-left: var(--cx-gutter); }
    .cx-cost__media { width: 100%; height: 340px; bottom: auto; opacity: 0.5; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); }
    .cx-cost__head { padding-top: clamp(4rem, 14vw, 9rem); }

    .cx-journey__grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .cx-hero__scroll { display: none; }
}

@media (max-width: 900px) {
    .cx-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Panels become a stack of ordinary full cards */
    .cx-panels { flex-direction: column; height: auto; border-bottom: 0; }
    .cx-panels .trek-card,
    .cx-panels .trek-card.is-active { flex: none; min-height: 460px; border-left: 0; border-top: 1px solid var(--cx-line); }
    .cx-panels .trek-card:first-child { border-top: 0; }
    .cx-panels .trek-card-img,
    .cx-panels .trek-card.is-active .trek-card-img { filter: saturate(0.9) brightness(0.62); transform: none; }
    .cx-panel__rail { display: none; }
    .cx-panels .trek-card-content { width: 100%; pointer-events: auto; }
    .cx-panels .trek-card-content > * { opacity: 1; transform: none; }
    .cx-panels .trek-card-title { max-width: none; }

    .cx-days__cols,
    .cx-day { grid-template-columns: 3.6rem 5.4rem minmax(0, 1fr); gap: 0.8rem; }
}

@media (max-width: 640px) {
    .cx-hero__word { font-size: clamp(4.4rem, 26vw, 8rem); }
    .cx-hero__social { display: none; }
    .cx-hero .hero-scenebar { padding-left: 5.4rem; padding-right: var(--cx-gutter); bottom: 1.6rem; }
    .cx-hero .hero-scene-caption { max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cx-hero .hero-tick { width: 18px; }
    .cx-hero__scroll { display: none; }

    .cx-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cx-strip__head { align-items: flex-start; flex-direction: column; }

    .cx-form .form-row { grid-template-columns: 1fr; }
    .cx-lists.is-active { grid-template-columns: 1fr; gap: 2rem; }
    .cx-tab { padding: 0.75rem 0.9rem; }
    .cx-tab i { display: none; }
    .cx-days__cols { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cx-panels .trek-card,
    .cx-panels .trek-card-content > *,
    .cx-days.is-active .cx-day { transition: none !important; animation: none !important; }
    .cx-hero__scroll i::after,
    .cx-thanks__heart { animation: none; }
}
