/* Cascade layer order: reset lowest, then Tailwind/Quanta base, then
 * components and finally utilities — so Quanta's q-* utilities (e.g.
 * q-button-*) always win over global element resets. */
@layer reset, theme, base, components, utilities;

@import "tailwindcss" source(none);
@source "../src";
@source "../packages/quanta/src";
@import "@higgsfield/quanta/tailwind.css";

/* New in-app Quanta-style components (moved out of the quanta package). Their
 * CSS uses Tailwind v4 @utility/@source, so it must load through this tailwind
 * entry. Ordering mirrors quanta's components.css (composer after button;
 * media-card + generation-card after media). */
@import "./components/composer/composer.css";
@import "./components/media-card/media-card.css";
@import "./components/generation-card/generation-card.css";
@import "./components/setting-trigger/setting-trigger.css";
@import "./components/prompt-box/prompt-box.css";
@import "./components/icon-tile/icon-tile.css";

@import "tw-animate-css";
@import "@fontsource/outfit/400.css";
@import "@fontsource/outfit/500.css";
@import "@fontsource/outfit/700.css";
@import "@fontsource/outfit/800.css";
@import "@fontsource/playwrite-nz/400.css";

@custom-variant dark (&:where([data-theme="default-dark"], [data-theme="default-dark"] *));

/*
 * Quanta is the visual source of truth. This file imports Quanta's Tailwind
 * entry once; that entry brings in primitives, semantic theme variables,
 * typography, z-index, border-width, and q-* component utilities.
 *
 * Generated app layout should use normal Tailwind spacing (`p-4`, `gap-2`,
 * `mt-6`, `h-10`) and Quanta semantic utilities for color/type
 * (`bg-q-background-primary`, `text-q-body-md-regular`). Do not use old numeric
 * token classes such as `px-400` / `gap-200`, and do not reach for raw
 * q-spacing vars in app code. Quanta component internals own their q-* classes.
 *
 * The `--spacing: 0.25rem` restoration keeps native Tailwind layout utilities
 * stable for generated apps and legacy scaffold components. The inline theme
 * aliases below keep shadcn-style imports rendering while new UI migrates to
 * Quanta components.
 */
@theme {
  --spacing: 0.25rem;
}

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);

  --color-background: var(--hf-color-background-primary);
  --color-foreground: var(--hf-color-text-primary);
  --color-card: var(--hf-color-background-secondary);
  --color-card-foreground: var(--hf-color-text-primary);
  --color-popover: var(--hf-color-background-secondary);
  --color-popover-foreground: var(--hf-color-text-primary);
  --color-primary: var(--hf-color-button-brand);
  --color-primary-foreground: var(--hf-color-button-label-brand);
  --color-secondary: var(--hf-color-background-secondary);
  --color-secondary-foreground: var(--hf-color-text-primary);
  --color-muted: var(--hf-color-background-tertiary);
  --color-muted-foreground: var(--hf-color-text-secondary);
  --color-accent: var(--hf-color-overlay-hover);
  --color-accent-foreground: var(--hf-color-text-primary);
  --color-destructive: var(--hf-color-state-error-bg);
  --color-destructive-foreground: var(--hf-color-state-error-fg);
  --color-border: var(--hf-color-border-default);
  --color-input: var(--hf-color-border-default);
  --color-ring: var(--hf-color-border-focus);
  --color-ring-offset-background: var(--hf-color-background-primary);

  --color-chart-1: var(--hf-color-lime-500);
  --color-chart-2: var(--hf-color-pink-500);
  --color-chart-3: var(--hf-color-blue-500);
  --color-chart-4: var(--hf-color-yellow-500);
  --color-chart-5: var(--hf-color-purple-500);

  --color-sidebar: var(--hf-color-background-secondary);
  --color-sidebar-foreground: var(--hf-color-text-primary);
  --color-sidebar-primary: var(--hf-color-button-brand);
  --color-sidebar-primary-foreground: var(--hf-color-button-label-brand);
  --color-sidebar-accent: var(--hf-color-overlay-hover);
  --color-sidebar-accent-foreground: var(--hf-color-text-primary);
  --color-sidebar-border: var(--hf-color-border-default);
  --color-sidebar-ring: var(--hf-color-border-focus);
}

:root {
  --radius: 0.625rem;
}

@layer base {
  html {
    background-color: var(--hf-color-background-primary);
    color: var(--hf-color-text-primary);
    color-scheme: dark;
  }

  body {
    min-height: 100vh;
    background-color: var(--hf-color-background-primary);
    color: var(--hf-color-text-primary);
    font-family: var(--hf-type-family-secondary);
  }

  * {
    border-color: var(--hf-color-border-default);
  }
}


/* ============================================================
   Zaviamo site layer (appended; quanta wiring above untouched)
   ============================================================ */

/* ------------------------------------------------------------------ */
/* Brand tokens (client brand, 2026 guidelines)                        */
/* ------------------------------------------------------------------ */

:root {
  --ink: #0f2121;
  --cream: #fcfff5;
  --yellow: #f9f07c;
  --orange: #f15b22;
  --cyan: #43c3d0;
  --green: #6fc067;

  /* The signature plane-window squircle. Slightly rounder at the top. */
  --window-radius: 45% 45% 45% 45% / 41% 41% 35% 35%;
}

@theme {
  --color-ink: #0f2121;
  --color-cream: #fcfff5;
  --color-yellow: #f9f07c;
  --color-orange: #f15b22;
  --color-cyan: #43c3d0;
  --color-green: #6fc067;

  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-script: "Playwrite NZ", cursive;
}

@layer base {
  html {
    scroll-behavior: auto;
  }

  body {
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  ::selection {
    background: var(--yellow);
    color: var(--ink);
  }

  /* Lenis recommended base */
  html.lenis,
  html.lenis body {
    height: auto;
  }
  .lenis.lenis-smooth {
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ */
/* Shared motifs                                                       */
/* ------------------------------------------------------------------ */

@layer components {

.zv-script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.45;
}

.zv-eyebrow {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Keyboard focus identities: yellow on ink grounds, orange on cream. */
.zv-focus-dark:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}
.zv-focus-light:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hand-drawn underline stroke used by Way + Story pull quote. */
.zv-stroke-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.zv-stroke-word > svg {
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: -0.22em;
  width: calc(100% + 0.16em);
  height: 0.34em;
  overflow: visible;
  pointer-events: none;
}
.zv-stroke-word > svg path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
}

/* ------------------------------------------------------------------ */
/* WindowFrame: the plane-window squircle with offset outline          */
/* ------------------------------------------------------------------ */

.zv-wf {
  position: relative;
  /* Measured off the approved nano-banana board (board-window.jpg):
     frame aspect 0.80, bezel 7% of frame width, offset outline floating
     0.8 bezel-widths outside. Container units keep those ratios true at
     every render size; the px clamp is the fallback for old engines. */
  aspect-ratio: 4 / 5;
  container-type: inline-size;
  --wf-bezel: clamp(14px, 2vw, 34px);
  --wf-bezel: 7cqw;
}
.zv-wf-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--window-radius);
  border: var(--wf-bezel) solid var(--cream);
  background: var(--ink);
  transform: translateZ(0);
  box-shadow: 0 30px 90px -22px rgba(0, 0, 0, 0.6);
}
/* Soft inner bevel where the glass meets the bezel. */
.zv-wf-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 3px 20px rgba(4, 12, 12, 0.32);
}
.zv-wf-outline {
  position: absolute;
  inset: calc(-0.8 * var(--wf-bezel));
  border-radius: var(--window-radius);
  border: 1.5px solid rgba(252, 255, 245, 0.35);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.zv-wf-ink .zv-wf-glass {
  border-color: var(--ink);
  background: var(--cream);
}
.zv-wf-ink .zv-wf-outline {
  border-color: rgba(15, 33, 33, 0.25);
}

/* ------------------------------------------------------------------ */
/* Nav                                                                 */
/* ------------------------------------------------------------------ */

.zv-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease;
  background-color: transparent;
}
.zv-nav[data-scrolled="true"] {
  background-color: rgba(15, 33, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Official brand wordmark (cream letters, orange brushstroke Z). */
.zv-wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.zv-wordmark img {
  height: 1.6rem;
  width: auto;
  display: block;
}
.zv-footer .zv-wordmark img {
  height: 2rem;
}
@media (max-width: 480px) {
  .zv-wordmark img {
    height: 1.4rem;
  }
}

.zv-nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(252, 255, 245, 0.82);
  transition: color 0.25s ease;
  padding: 0.4rem 0.1rem;
}
.zv-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  border: 1.5px solid var(--yellow);
  border-top: 0;
  border-radius: 0 0 45% 45% / 0 0 90% 90%;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.zv-nav-link:hover {
  color: var(--cream);
}
.zv-nav-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* Bespoke CTA chrome. Each identity owns its own garment.             */
/* ------------------------------------------------------------------ */

/* Plan My Trip: yellow pill whose radius morphs toward the window
   squircle on hover, with a lift and an active squish. */
.zv-cta-plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition:
    border-radius 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.zv-cta-plan:hover {
  border-radius: 42% 42% 42% 42% / 52% 52% 44% 44%;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px rgba(249, 240, 124, 0.55);
}
.zv-cta-plan:active {
  transform: translateY(0) scale(0.96);
}
.zv-cta-plan:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}
.zv-cta-plan[data-variant="inverted"] {
  background: var(--ink);
  color: var(--cream);
}
.zv-cta-plan[data-variant="inverted"]:hover {
  box-shadow: 0 10px 28px -12px rgba(15, 33, 33, 0.55);
}
.zv-cta-plan[data-variant="inverted"]:focus-visible {
  outline-color: var(--ink);
}
.zv-cta-plan[data-size="compact"] {
  padding: 0.7rem 1.15rem;
  font-size: 0.88rem;
}

/* WhatsApp: transparent chip, green border, glyph, pulsing dot. */
.zv-cta-wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem 0.95rem 1.25rem;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}
.zv-cta-wa svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--green);
  flex: none;
}
.zv-cta-wa .zv-wa-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--green);
  flex: none;
}
.zv-cta-wa:hover {
  background-color: rgba(111, 192, 103, 0.1);
  transform: translateY(-1px);
}
.zv-cta-wa:hover .zv-wa-dot {
  animation: zv-wa-pulse 1.1s ease-in-out infinite;
}
.zv-cta-wa:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}
.zv-cta-wa[data-tone="light"] {
  color: var(--ink);
}
.zv-cta-wa[data-tone="light"]:focus-visible {
  outline-color: var(--orange);
}
.zv-cta-wa[data-tone="yellow"] {
  color: var(--ink);
  border-color: var(--ink);
}
.zv-cta-wa[data-tone="yellow"] svg {
  fill: var(--ink);
}
.zv-cta-wa[data-tone="yellow"] .zv-wa-dot {
  background: var(--ink);
}
.zv-cta-wa[data-tone="yellow"]:focus-visible {
  outline-color: var(--ink);
}
.zv-cta-wa[data-size="compact"] {
  padding: 0.62rem 1rem 0.62rem 0.85rem;
  font-size: 0.85rem;
}
@keyframes zv-wa-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.7);
    opacity: 0.55;
  }
}

/* Open this trip: arrow link with a hand-drawn accent underline that
   draws in on hover and stays drawn on the active chapter. */
.zv-cta-open {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--cream);
  font-weight: 500;
  font-size: 1.02rem;
  padding-bottom: 0.35rem;
}
.zv-cta-open[data-on="light"] {
  color: var(--ink);
}
.zv-cta-open .zv-open-arrow {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.zv-cta-open:hover .zv-open-arrow {
  transform: translateX(5px);
}
.zv-cta-open svg.zv-open-stroke {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 7px;
  overflow: visible;
  pointer-events: none;
}
.zv-cta-open svg.zv-open-stroke path {
  fill: none;
  /* Board spec: the underline stroke is always vivid orange. */
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.zv-cta-open:hover svg.zv-open-stroke path,
.zv-cta-open[data-active="true"] svg.zv-open-stroke path {
  stroke-dashoffset: 0;
}
.zv-cta-open:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 2px;
}
.zv-cta-open[data-on="light"]:focus-visible {
  outline-color: var(--orange);
}

/* Plan My [Destination] Trip: solid orange pill, tilted -1deg,
   levels on hover. */
.zv-cta-dest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  transform: rotate(-1deg);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}
.zv-cta-dest:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 12px 30px -14px rgba(241, 91, 34, 0.6);
}
.zv-cta-dest:active {
  transform: rotate(0deg) scale(0.96);
}
.zv-cta-dest:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* ------------------------------------------------------------------ */
/* Hero overlay on the scroll scrub                                    */
/* ------------------------------------------------------------------ */

.zv-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transform: translateY(calc(var(--ss-progress, 0) * -150vh))
    scale(calc(1 - min(var(--ss-progress, 0) * 0.3, 0.08)));
  will-change: transform;
}
.zv-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(6rem, 13vh, 9rem) clamp(1.5rem, 6vw, 6rem)
    clamp(5rem, 11vh, 7.5rem);
  max-width: 72rem;
  margin: 0 auto;
  /* No background wash. Readability rides on the text itself: a tight dark
     edge plus a soft halo, inherited by every line, so bright clouds behind
     the type never wash it out and there is no overlay shape to see while
     scrolling. */
  text-shadow:
    0 1px 2px rgba(3, 13, 15, 0.55),
    0 0 16px rgba(3, 13, 15, 0.52),
    0 2px 34px rgba(3, 13, 15, 0.4);
}
.zv-hero-eyebrow {
  color: rgba(252, 255, 245, 0.82);
  margin-bottom: 1.4rem;
}
.zv-hero-script {
  color: var(--yellow);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.zv-hero-h1 {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: clamp(2.8rem, 7.2vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.zv-hero-sub {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: rgba(252, 255, 245, 0.95);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
}
.zv-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
  pointer-events: auto;
}
.zv-hero-reassure {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: rgba(252, 255, 245, 0.78);
}
.scroll-scrub[data-active-section="1"] .zv-hero-ctas {
  pointer-events: none;
}

/* Scroll cue: a tiny window squircle with a descending dot. */
.zv-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 4vh, 2.4rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(252, 255, 245, 0.65);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.zv-scroll-cue .zv-cue-window {
  position: relative;
  width: 1.5rem;
  height: 2rem;
  border: 1.5px solid rgba(252, 255, 245, 0.55);
  border-radius: var(--window-radius);
  overflow: hidden;
}
.zv-scroll-cue .zv-cue-dot {
  position: absolute;
  left: 50%;
  top: 0.3rem;
  width: 0.3rem;
  height: 0.3rem;
  margin-left: -0.15rem;
  border-radius: 999px;
  background: var(--yellow);
  animation: zv-cue-fall 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes zv-cue-fall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(1.05rem);
    opacity: 0;
  }
}

/* Cream veil completing the match-cut into the boarding strip. */
.zv-hero-veil {
  position: absolute;
  inset: -2px;
  z-index: 6;
  background: var(--cream);
  pointer-events: none;
  clip-path: inset(
    calc((1 - clamp(0, (var(--ss-progress, 0) - 0.94) / 0.06, 1)) * 100.5%) 0 0
      0
  );
}

@media (max-width: 767px) {
  .zv-hero-copy {
    padding-bottom: 7.5rem;
  }
  .zv-hero-sub {
    font-size: 0.98rem;
  }
}

/* Short / landscape viewports: the copy is tall, so compress the type and
   spacing to keep the eyebrow clear of the fixed nav instead of riding up
   underneath it. */
@media (max-height: 680px) {
  .zv-hero-copy {
    padding-top: 5rem;
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }
  .zv-hero-h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
  }
  .zv-hero-eyebrow {
    margin-bottom: 0.8rem;
  }
  .zv-hero-script {
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    margin-bottom: 0.35rem;
  }
  .zv-hero-sub {
    margin-top: 1rem;
  }
  .zv-hero-ctas {
    margin-top: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zv-hero-overlay {
    transform: none;
  }
  .zv-hero-veil {
    display: none;
  }
  .zv-scroll-cue .zv-cue-dot {
    animation: none;
    top: 50%;
  }
}

/* ------------------------------------------------------------------ */
/* Window stage: the seven-chapter centerpiece                         */
/* ------------------------------------------------------------------ */

.zv-ws {
  /* Board cabin wall: deeper than brand ink, near-black teal. */
  background: #05181c;
}
.zv-ws-track {
  position: relative;
  height: 560dvh;
}
.zv-ws-stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  padding: clamp(1rem, 4vh, 3rem) clamp(2rem, 13.7vw, 16rem)
    clamp(1rem, 4vh, 3rem) clamp(1.25rem, 5vw, 5rem);
}
.zv-ws-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 90% at 50% 45%,
    transparent 40%,
    rgba(0, 16, 20, 0.6) 100%
  );
  z-index: 5;
}

/* Rail of mini window dots */
.zv-ws-rail {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.zv-ws-dot {
  width: 1.05rem;
  height: 1.4rem;
  border: 1.5px solid rgba(252, 255, 245, 0.4);
  border-radius: var(--window-radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.zv-ws-dot:hover {
  border-color: var(--cream);
  transform: scale(1.15);
}
.zv-ws-dot[aria-current="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
}
.zv-ws-dot:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Layered chapter text. Clip the top and bottom (so the enter/exit slides
   stay contained) but let the right side overflow, so a long script name
   like "Azerbaijan" tucks behind the window instead of being cut mid-letter,
   matching the destination page. */
.zv-ws-chapters {
  position: relative;
  z-index: 4;
  height: min(72dvh, 40rem);
  overflow: visible;
  clip-path: inset(0 -60vw 0 0);
}
.zv-ws-chapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
}
/* Initial park positions live in CSS, never in React inline styles, so
   re-renders can't fight the scroll choreography's inline transforms. */
.zv-ws-chapter:not(:first-child) {
  transform: translateY(112%);
}
.zv-ws-name {
  color: var(--yellow);
  font-size: clamp(3rem, 12.75vh, 9rem);
  line-height: 1.2;
  text-shadow: 0 3px 22px rgba(4, 12, 12, 0.45);
}
.zv-ws-tagline {
  margin-top: 0.4rem;
  color: var(--cream);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}
.zv-ws-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0;
  list-style: none;
}
.zv-ws-city {
  border: 1.5px solid var(--accent, var(--yellow));
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 255, 245, 0.88);
}
.zv-ws-duration {
  margin-top: 0.9rem;
  color: rgba(252, 255, 245, 0.6);
  font-size: 0.95rem;
}
.zv-ws-chapter .zv-cta-open {
  margin-top: 1.6rem;
  align-self: flex-start;
}

/* The single shared window */
.zv-ws-window {
  position: relative;
  z-index: 4;
  display: block;
  width: min(62vh, 44vw);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.zv-ws-window:hover {
  transform: translateY(-6px);
}
.zv-ws-window:hover .zv-wf-outline {
  transform: translateY(4px);
}
.zv-ws-window:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 8px;
  border-radius: var(--window-radius);
}
/* Quiet dusk-sky backplate behind the stills: only glimpsed for an instant
   at the handoff edges. The clouds themselves live in the hero film. */
.zv-ws-glassback {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #33565e 0%, #1a3136 55%, #0f2121 100%);
}
.zv-ws-glass-img {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translateY(112%);
}
.zv-ws-glass-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Per-chapter static card image: hidden in the theatric layout,
   shown in the reduced motion list. */
.zv-ws-cardimg {
  display: none;
}

/* Mobile / touch: the sticky window-morph is a desktop-pointer delight that
   relies on the gesture snap to rest cleanly, so on touch it is disabled in
   JS. Instead every destination becomes its own full-screen window card that
   snaps into focus, so exactly ONE window and its details are centered at a
   time. The snap is scoped to these cards (scroll-snap-align lives only
   here), so the hero above and the sections below stay free-scrolling. */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  html {
    scroll-snap-type: y proximity;
  }
  .zv-ws-track {
    height: auto;
  }
  .zv-ws-stage {
    position: static;
    height: auto;
    display: block;
    padding: 0;
  }
  .zv-ws-vignette,
  .zv-ws-rail,
  .zv-ws-window {
    display: none;
  }
  .zv-ws-chapters {
    position: static;
    height: auto;
    overflow: visible;
    display: block;
    max-width: none;
    margin: 0;
  }
  .zv-ws-chapter {
    position: static;
    transform: none !important;
    min-height: 100svh;
    scroll-snap-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: max(5rem, calc(env(safe-area-inset-top) + 3.5rem)) 1.5rem
      calc(3rem + env(safe-area-inset-bottom));
  }
  .zv-ws-chapter .zv-cta-open {
    align-self: center;
  }
  .zv-ws-cities {
    justify-content: center;
  }
  .zv-ws-cardimg {
    display: block;
    width: min(15rem, 62vw);
    margin: 0 auto 1.75rem;
  }
  .zv-ws-name {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
}

/* Reduced motion: no sticky theatrics, a plain vertical list of
   window cards. No videos load. */
@media (prefers-reduced-motion: reduce) {
  .zv-ws-track {
    height: auto;
  }
  .zv-ws-stage {
    position: static;
    height: auto;
    display: block;
    padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 6vw, 5rem);
  }
  .zv-ws-vignette,
  .zv-ws-rail,
  .zv-ws-window {
    display: none;
  }
  .zv-ws-chapters {
    position: static;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 34rem;
    margin: 0 auto;
  }
  .zv-ws-chapter {
    position: static;
    transform: none !important;
    text-align: left;
    align-items: flex-start;
  }
  .zv-ws-cardimg {
    display: block;
    width: min(18rem, 70vw);
    margin-bottom: 2rem;
  }
}

/* ------------------------------------------------------------------ */
/* Way: window-arc cards + chips                                       */
/* ------------------------------------------------------------------ */

.zv-way-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.zv-way-arc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  background: color-mix(in srgb, var(--ink) 88%, var(--cream));
  border-radius: 0 0 46% 46% / 0 0 24% 24%;
}
.zv-way-num {
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.02em;
}
.zv-way-chip {
  border-radius: 999px;
  border-width: 1.5px;
  border-style: solid;
  background: var(--cream);
  color: var(--ink);
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Story pull quote                                                    */
/* ------------------------------------------------------------------ */

.zv-pullquote {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* Process flight path                                                 */
/* ------------------------------------------------------------------ */

.zv-fp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.zv-fp-clip-rect {
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: zv-fp-draw 1.9s 0.15s cubic-bezier(0.35, 0, 0.25, 1) forwards;
}
@keyframes zv-fp-draw {
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .zv-fp-clip-rect {
    animation: none;
    transform: none;
  }
}
.zv-step-chip {
  width: 4.4rem;
  height: 5.6rem;
  border-radius: var(--window-radius);
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 8px 30px -14px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ */
/* Yellow CTA band                                                     */
/* ------------------------------------------------------------------ */

.zv-band {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 1.75rem;
}
.zv-band-script {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.35;
}
.zv-band-heading {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ------------------------------------------------------------------ */
/* Forms (plan page)                                                   */
/* ------------------------------------------------------------------ */

.zv-field-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.zv-field {
  width: 100%;
  border: 1.5px solid rgba(15, 33, 33, 0.25);
  border-radius: 0.9rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.zv-field::placeholder {
  color: rgba(15, 33, 33, 0.45);
}
.zv-field:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 91, 34, 0.18);
}

/* ------------------------------------------------------------------ */
/* Plan page: aspirational hero + persuasion + lead-form card          */
/* ------------------------------------------------------------------ */

.zv-plan-hero {
  position: relative;
  min-height: clamp(30rem, 66vh, 44rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.zv-plan-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.zv-plan-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 18, 20, 0.55) 0%,
      transparent 24%,
      transparent 50%,
      rgba(6, 18, 20, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 18, 20, 0.62) 0%,
      rgba(6, 18, 20, 0.16) 44%,
      transparent 72%
    );
}
.zv-plan-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 5rem) clamp(2.5rem, 7vh, 4.5rem);
  color: var(--cream);
  text-shadow:
    0 1px 2px rgba(3, 13, 15, 0.5),
    0 2px 26px rgba(3, 13, 15, 0.45);
}
.zv-plan-hero-script {
  color: var(--yellow);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
}
.zv-plan-hero-h1 {
  margin-top: 0.4rem;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.zv-plan-hero-sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: rgba(252, 255, 245, 0.94);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
}
.zv-plan-chips {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}
.zv-plan-chip {
  border: 1.5px solid rgba(252, 255, 245, 0.5);
  background: rgba(6, 18, 20, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow: none;
}

.zv-plan-body {
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.25rem, 6vw, 5rem)
    clamp(4rem, 11vh, 7rem);
}
.zv-plan-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .zv-plan-grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }
  .zv-plan-formcard {
    position: sticky;
    top: 6rem;
  }
}

.zv-plan-h2 {
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
}
.zv-plan-h2-steps {
  margin-top: 2.75rem;
}
.zv-plan-reasons {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.zv-plan-reason {
  position: relative;
  padding-left: 1.5rem;
}
.zv-plan-reason::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.72rem;
  height: 0.92rem;
  border-radius: var(--window-radius);
  background: var(--orange);
}
.zv-plan-reason-title {
  font-weight: 700;
  font-size: 1.06rem;
}
.zv-plan-reason-text {
  margin-top: 0.3rem;
  color: rgba(15, 33, 33, 0.78);
  line-height: 1.55;
}

.zv-plan-steps {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.zv-plan-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.zv-plan-step-num {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.zv-plan-step-title {
  font-weight: 700;
}
.zv-plan-step-text {
  margin-top: 0.15rem;
  color: rgba(15, 33, 33, 0.72);
  line-height: 1.5;
}

.zv-plan-formcard {
  background: #ffffff;
  border: 1.5px solid rgba(15, 33, 33, 0.1);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 70px -30px rgba(15, 33, 33, 0.35);
}
.zv-plan-formhead {
  margin-bottom: 1.5rem;
}
.zv-plan-formtitle {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ink);
}
.zv-plan-formcardnote {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: rgba(15, 33, 33, 0.6);
}
.zv-plan-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.zv-plan-form .zv-cta-plan {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}
.zv-plan-finenote {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(15, 33, 33, 0.55);
}
.zv-plan-or {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.6rem 0 1.2rem;
  color: rgba(15, 33, 33, 0.4);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.zv-plan-or::before,
.zv-plan-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 33, 33, 0.12);
}
.zv-plan-wa .zv-cta-wa {
  width: 100%;
  justify-content: center;
}

/* ------------------------------------------------------------------ */
/* Destination page                                                    */
/* ------------------------------------------------------------------ */

/* Full-viewport hero band replicating a stage chapter one-to-one: same
   grid geometry (ghost rail column keeps the copy where the stage puts
   it), same vignette, same type classes, same window size. */
.zv-dest-hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  background: #05181c;
  padding: clamp(4rem, 9vh, 6rem) clamp(2rem, 13.7vw, 16rem)
    clamp(1.5rem, 5vh, 3rem) clamp(1.25rem, 5vw, 5rem);
}
.zv-dest-hero-copy {
  grid-column: 2;
  position: relative;
  z-index: 6;
}
.zv-dest-hero-window {
  grid-column: 3;
  position: relative;
  z-index: 4;
  width: min(62vh, 44vw);
}
.zv-dest-ctas {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.zv-dest-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: rgba(15, 33, 33, 0.72);
  margin-bottom: 2.2rem;
}
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .zv-dest-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.3rem;
    padding: max(5rem, calc(env(safe-area-inset-top) + 4rem)) 1.25rem 2.75rem;
  }
  .zv-dest-hero-copy {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .zv-dest-hero-window {
    grid-column: 1;
    grid-row: 1;
    width: min(38dvh, 82vw);
  }
  .zv-dest-hero .zv-ws-cities {
    justify-content: center;
  }
  .zv-dest-ctas {
    justify-content: center;
  }
}
.zv-highlight {
  border-radius: 44% 44% 1.1rem 1.1rem / 20% 20% 1.1rem 1.1rem;
  padding: 2.6rem 1.6rem 1.8rem;
}
}

/* Post-stage sections (Way / Story / Process / CTA) scroll freely. The
   magnetic stepping is confined to the destination stage above; everything
   after it flows at its natural height with no snapping or forced full
   screens. */
