/* ============================================================
   TRAVORA — cinematic travel experience
   Palette: deep ink / warm ivory / signature coral
   Type:    Playfair Display (serif) · Jost (sans) · Nothing You Could Do (script)
   ============================================================ */

:root {
  --ink: #16161d;
  --ink-soft: #23232e;
  --ivory: #f4efe8;
  --ivory-dim: #e9e2d6;
  --coral: #ff4d24;
  --muted: #8e887b;
  --white: #fffdf9;

  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --script: "Nothing You Could Do", cursive;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; cursor: pointer; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

::selection { background: var(--coral); color: var(--white); }

.script-accent {
  font-family: var(--script);
  font-style: normal;
  color: var(--coral);
}

/* ============================== PRELOADER ============================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner { text-align: center; }

.preloader-script {
  display: block;
  font-family: var(--script);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--ivory);
  opacity: 0;
}

.preloader-tag {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
}

.preloader-count {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(1.5rem, 5vw, 3rem);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  color: var(--coral);
}

/* ============================== CURSOR ============================== */

.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; pointer-events: none; position: fixed; inset: 0; z-index: 99; }

  .cursor-dot {
    position: absolute;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--coral);
  }

  .cursor-ring {
    position: absolute;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border: 1px solid rgba(244, 239, 232, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
  }

  .cursor.is-active .cursor-ring {
    transform: scale(1.7);
    background: rgba(255, 77, 36, 0.12);
    border-color: var(--coral);
  }

  .cursor-label {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ivory);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .cursor.is-active .cursor-label { opacity: 1; }
}

/* ============================== NAV ============================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  color: var(--white);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  transition: color 0.4s, text-shadow 0.4s;
}

/* Over light (ivory) sections — toggled by ScrollTrigger */
.nav.on-light {
  color: var(--ink);
  text-shadow: none;
}

.nav-brand {
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav-links a { position: relative; padding: 0.25rem 0; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  background: rgba(22, 22, 29, 0.25);
  backdrop-filter: blur(6px);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.nav-cta:hover { background: #fff; color: #000; border-color: #fff; }

.nav.on-light .nav-cta {
  border-color: rgba(22, 22, 29, 0.6);
  background: transparent;
}

.nav.on-light .nav-cta:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* backdrop blur repaints on every scrolled frame — too costly on mobile GPUs */
@media (hover: none), (pointer: coarse) {
  .nav-cta, .hero-cta { backdrop-filter: none; }
}

/* ============================== HERO ============================== */

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media { position: absolute; inset: 0; }

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(22, 22, 29, 0.55) 0%, rgba(22, 22, 29, 0.15) 35%, rgba(22, 22, 29, 0.25) 70%, rgba(22, 22, 29, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 1100px;
}

.hero-eyebrow {
  overflow: hidden;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1.2rem;
}

.hero-eyebrow span { display: inline-block; }

.hero-title { font-weight: 400; }

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-inner {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
}

.hero-script-wrap {
  position: relative;
  display: block;
  margin-top: -0.5rem;
}

.hero-script {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(2.5rem, 9vw, 7.5rem);
  line-height: 1.25;
  color: var(--coral);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  will-change: clip-path;
}

@media (min-width: 700px) {
  .hero-script { white-space: nowrap; }
}

.hero-stroke {
  position: absolute;
  left: 12%;
  bottom: 18%;
  width: 76%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 253, 249, 0.9), transparent);
  transform: scaleX(0);
}

.hero-sub {
  max-width: 480px;
  margin: 1.8rem auto 2.4rem;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  font-weight: 300;
  color: rgba(244, 239, 232, 0.92);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 253, 249, 0.55);
  border-radius: 999px;
  padding: 1.05rem 2.2rem;
  backdrop-filter: blur(6px);
  background: rgba(22, 22, 29, 0.18);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.hero-cta:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.hero-cta svg { transition: transform 0.4s var(--ease-out); }
.hero-cta:hover svg { transform: translateY(3px); }

.hero-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero-hint-text {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--coral);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-hint-line {
  width: 1px;
  height: 52px;
  background: rgba(244, 239, 232, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-hint-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--coral);
  animation: hint-drop 2.2s var(--ease-out) infinite;
}

@keyframes hint-drop {
  0%   { top: -100%; }
  55%  { top: 100%; }
  100% { top: 100%; }
}

/* ============================== MANIFESTO ============================== */

.manifesto {
  position: relative;
  z-index: 2;
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(7rem, 16vh, 12rem) clamp(1.5rem, 8vw, 8rem);
  text-align: center;
}

.manifesto-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 2.5rem;
}

.manifesto-text { font-weight: 400; max-width: 1000px; margin: 0 auto; }

.m-line { display: block; overflow: hidden; padding-block: 0.08em; }

.m-line-inner {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.5vw, 3.6rem);
  line-height: 1.25;
}

.m-line-inner em.script-accent {
  font-size: 1.25em;
  line-height: 1;
}

.manifesto-meta {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 4rem;
  font-size: 0.66rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ============================== PACKAGES INTRO ============================== */

.packages-intro {
  position: relative;
  z-index: 2;
  background: var(--ivory);
  color: var(--ink);
  text-align: center;
  padding: 0 1.5rem clamp(6rem, 14vh, 10rem);
}

.pi-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.2rem;
}

.pi-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.2;
  color: var(--ink);
}

.pi-sub {
  margin: 1.4rem auto 0;
  max-width: 420px;
  color: #5d5749;
  font-size: 0.95rem;
}

/* ============================== PACKAGES — PINNED SCENES ============================== */

.packages {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.scene-media { position: absolute; inset: 0; overflow: hidden; }

.scene-img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}

.scene-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(22, 22, 29, 0.85) 0%, rgba(22, 22, 29, 0.25) 45%, rgba(22, 22, 29, 0.2) 100%),
    linear-gradient(100deg, rgba(22, 22, 29, 0.55) 0%, transparent 55%);
}

.scene-2 { clip-path: inset(100% 0% 0% 0%); will-change: clip-path; }
.scene-3 { clip-path: circle(0% at 50% 60%); will-change: clip-path; }

.scene-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 5rem) clamp(3rem, 9vh, 6rem);
}

.scene-tag {
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scene-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--coral);
}

.scene-tag::after {
  content: "";
  width: 64px;
  height: 1px;
  background: rgba(244, 239, 232, 0.5);
}

.scene-title { font-weight: 500; margin-bottom: 0.2rem; }

.st-line { display: block; overflow: hidden; }

.st-inner {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.scene-script {
  font-family: var(--script);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  color: var(--coral);
  margin: 0.4rem 0 1.1rem;
}

.scene-copy {
  max-width: 480px;
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  color: rgba(244, 239, 232, 0.92);
}

.scene-foot {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.scene-cta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 253, 249, 0.5);
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.scene-cta:hover { background: var(--coral); border-color: var(--coral); }

.scene-progress {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 5vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(244, 239, 232, 0.85);
}

.sp-track {
  width: 1px;
  height: 120px;
  background: rgba(244, 239, 232, 0.25);
  position: relative;
}

.sp-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: top;
}

@media (max-width: 720px) {
  .scene-progress { display: none; }
}

/* ============================== CTA ============================== */

.cta {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: clamp(7rem, 18vh, 13rem) 1.5rem;
  overflow: hidden;
}

.cta-marquee {
  position: absolute;
  top: clamp(1rem, 4vh, 3rem);
  left: 0; right: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.07;
  pointer-events: none;
}

.cta-marquee-track {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(4rem, 10vw, 8rem);
  animation: marquee 30s linear infinite;
}

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

.cta-inner { position: relative; z-index: 2; }

.cta-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 2rem;
}

.c-line { display: block; overflow: hidden; padding-block: 0.06em; }

.c-inner {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  line-height: 1.18;
  color: var(--white);
}

.cta-script {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--coral);
  margin: 1.2rem 0 2.6rem;
  transform: rotate(-3deg);
}

.cta-btn {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ivory);
  border-radius: 999px;
  padding: 1.25rem 2.8rem;
  transition: background 0.4s, color 0.4s;
}

.cta-btn:hover { background: var(--coral); color: var(--white); }

/* ============================== FOOTER ============================== */

.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-top: 1px solid rgba(244, 239, 232, 0.12);
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4rem) 2rem;
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: clamp(2.5rem, 8vw, 7rem);
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}

.footer-script {
  font-family: var(--script);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--coral);
  transform: rotate(-3deg);
  align-self: center;
}

.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-label {
  font-size: 0.64rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: rgba(244, 239, 232, 0.9);
  width: fit-content;
  position: relative;
}

.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.footer-col a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-mark {
  font-family: var(--script);
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 1.4;
  color: rgba(244, 239, 232, 0.10);
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid rgba(244, 239, 232, 0.08);
  padding-top: 1.6rem;
}

/* ============================== REDUCED MOTION ============================== */

@media (prefers-reduced-motion: reduce) {
  .cta-marquee-track { animation: none; }
  .hero-hint-line::after { animation: none; }
  .preloader { display: none; }
  .scene { position: relative; clip-path: none !important; height: 100vh; }
  .packages { height: auto; }
  .scene-progress { display: none; }
  .hero { position: relative; }
}
