/* GOVACPACK journey — EverSwap-style scroll cinema */
:root {
  --accent: #d9a441;            /* overridden per city inline */
  --ink: #16241c;
  --cream: #f6f1e7;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body { background: #0c1210; font-family: var(--sans); overflow-x: hidden; }

/* ---------- scroll runway + fixed stage ---------- */
#runway { position: relative; width: 100%; }
#stage { position: fixed; inset: 0; overflow: hidden; }
.layer { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.layer img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.05);
  will-change: transform, filter;
}
.layer .veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(8,10,12,.34) 100%); }

/* ---------- scene text ---------- */
.scene-text {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 640px); text-align: center;
  visibility: hidden; opacity: 0; pointer-events: none;
  will-change: opacity, transform;
}
/* permanent soft scrim — keeps copy legible over bright plates */
.scene-text::before {
  content: ""; position: absolute; inset: -16% -34%; z-index: -1;
  background: radial-gradient(ellipse at center,
    rgba(8, 12, 14, .44) 0%, rgba(8, 12, 14, .26) 48%, rgba(8, 12, 14, 0) 74%);
}
.scene-text .eyebrow {
  font-family: var(--sans); font-size: clamp(11px, 2.6vw, 13px);
  letter-spacing: .42em; text-transform: uppercase; font-weight: 500;
  margin-bottom: 1.1rem; opacity: .85;
}
.scene-text .hero-line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 13.5vw, 110px); line-height: .98;
  letter-spacing: .01em;
}
.scene-text .rule {
  width: min(56vw, 420px); height: 1px; margin: 1.4rem auto 1.2rem;
  background: linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent);
  opacity: .55;
}
.scene-text .support {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(15px, 3.6vw, 19px); line-height: 1.55; opacity: .92;
  text-wrap: balance;
}
.on-dark { color: var(--cream); text-shadow: 0 2px 26px rgba(0,0,0,.6), 0 1px 8px rgba(0,0,0,.45); }
.on-light { color: #fffdf8; text-shadow: 0 2px 30px rgba(15,22,20,.75), 0 1px 10px rgba(15,22,20,.55); }

/* ---------- header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
}
.brand-pill, .cta-pill {
  display: inline-flex; align-items: center; gap: .5em;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px; text-decoration: none;
}
.brand-pill {
  background: rgba(12,16,14,.42); border: 1px solid rgba(255,255,255,.14);
  color: var(--cream); padding: 9px 14px;
}
.brand-pill svg.wg-mark { width: 30px; height: 28px; display: block; }
.brand-pill svg.wg-mark path:not([fill]) { fill: var(--cream); }
.brand-pill svg.wg-mark path[fill] { fill: var(--accent); }
.cta-pill {
  background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 12px 20px; border: 0; cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.cta-pill .arrow { font-size: 15px; }

/* ---------- scroll hint ---------- */
#hint {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  z-index: 55; color: var(--cream); font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; opacity: 1; transition: opacity .5s;
  pointer-events: none; text-align: center;
}
#hint::after {
  content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0;
  background: linear-gradient(var(--cream), transparent);
  animation: hintdrop 1.8s ease-in-out infinite;
}
@keyframes hintdrop { 0%,100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(6px); } }

/* ---------- progress icons ---------- */
#icons {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 56; display: flex; gap: 22px; align-items: center;
}
.p-icon {
  width: 26px; height: 26px; opacity: .42; color: var(--cream);
  transition: opacity .4s, transform .4s, color .4s;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.5));
}
.p-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.p-icon.passed { opacity: .62; }
.p-icon.active { opacity: 1; transform: scale(1.22); color: var(--accent); }
.p-icon.arrived { color: var(--accent); opacity: 1; animation: glowpulse 2.2s ease-in-out infinite; }
@keyframes glowpulse { 0%,100% { filter: drop-shadow(0 0 4px currentColor); } 50% { filter: drop-shadow(0 0 12px currentColor); } }

/* ---------- offer panel ---------- */
#offer {
  position: fixed; left: 50%; bottom: 0; z-index: 58;
  transform: translateX(-50%);
  width: min(94vw, 460px); max-height: 92svh; overflow-y: auto;
  visibility: hidden; opacity: 0; pointer-events: none;
  background: rgba(14,18,16,.82);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.14); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 18px 20px calc(14px + env(safe-area-inset-bottom));
  color: var(--cream); will-change: opacity, transform;
  box-shadow: 0 -18px 70px rgba(0,0,0,.5);
}
#offer .price-row {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px;
}
#offer .dest-anim { width: 58px; height: 58px; flex: none; }
#offer .dest-anim svg { width: 100%; height: 100%; }
#offer .price {
  font-family: var(--serif); font-size: 88px; line-height: .9; color: var(--accent);
  text-shadow: 0 2px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
#offer .price sup { font-size: 34px; }
#offer .price-meta {
  font-family: var(--sans); font-size: 12px; text-align: left; line-height: 1.45;
  letter-spacing: .14em; text-transform: uppercase; opacity: .92;
}
#offer .price-meta strong { display: block; font-size: 13px; color: var(--accent); letter-spacing: .18em; }
#offer .subline { font-size: 12px; text-align: center; opacity: .75; margin-bottom: 12px; line-height: 1.45; }
#offer form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#offer input[type=text], #offer input[type=email], #offer input[type=tel], #offer input[type=date] {
  grid-column: span 1; width: 100%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px; padding: 11px 13px; color: var(--cream);
  font-size: 16px; font-family: var(--sans); outline: none;
}
#offer input.full { grid-column: span 2; }
#offer input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
#offer input::placeholder { color: rgba(246,241,231,.45); }
/* date toggle switch */
.date-toggle { grid-column: span 2; display: flex; align-items: center; gap: 10px; font-size: 12px; opacity: .9; padding: 2px 2px; }
.date-toggle .sw { position: relative; width: 38px; height: 22px; flex: none; }
.date-toggle .sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.date-toggle .sw .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  transition: background .25s;
}
.date-toggle .sw .knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); transition: transform .25s ease;
}
.date-toggle .sw input:checked ~ .track { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.date-toggle .sw input:checked ~ .knob { transform: translateX(16px); }
#date-fields {
  grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
#date-fields.open { max-height: 120px; }
#date-fields label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin-bottom: -4px; }
#date-fields input[type=date] { color-scheme: dark; }
.consent { grid-column: span 2; display: flex; gap: 9px; align-items: flex-start; font-size: 9.5px; line-height: 1.4; opacity: .78; }
.consent input { margin-top: 1px; accent-color: var(--accent); width: 14px; height: 14px; flex: none; }
.consent a { color: var(--accent); }
#offer button[type=submit] {
  grid-column: span 2; border: 0; border-radius: 13px; cursor: pointer;
  background: var(--accent); color: #14130d;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  padding: 14px; letter-spacing: .02em;
  box-shadow: 0 6px 28px color-mix(in srgb, var(--accent) 38%, transparent);
}
#offer button[type=submit]:disabled { opacity: .6; cursor: wait; }
#form-msg { grid-column: span 2; color: #ff9d8a; font-size: 12px; text-align: center; min-height: 1em; }
.fineprint { grid-column: span 2; font-size: 8.5px; opacity: .5; text-align: center; line-height: 1.45; }

/* ---------- animated destination vignettes (subtle, ~58px) ---------- */
.dest-anim .drift-a { animation: driftx 7s ease-in-out infinite; }
.dest-anim .drift-b { animation: driftx 9s ease-in-out infinite reverse; }
@keyframes driftx { 0%,100% { transform: translateX(-2.5px); } 50% { transform: translateX(2.5px); } }
.dest-anim .burst { transform-origin: center; animation: burst 2.8s ease-out infinite; opacity: 0; }
.dest-anim .burst.b2 { animation-delay: 1.4s; }
@keyframes burst { 0% { transform: scale(.2); opacity: 0; } 12% { opacity: .95; } 55% { transform: scale(1); opacity: 0; } 100% { opacity: 0; } }
.dest-anim .twinkle { animation: twinkle 1.6s ease-in-out infinite; }
.dest-anim .twinkle.t2 { animation-delay: .4s; }
.dest-anim .twinkle.t3 { animation-delay: .9s; }
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.dest-anim .fall { animation: fallY 3.4s linear infinite; }
.dest-anim .fall.f2 { animation-delay: 1.1s; animation-duration: 4.1s; }
.dest-anim .fall.f3 { animation-delay: 2.2s; animation-duration: 3.8s; }
@keyframes fallY { 0% { transform: translateY(-4px); opacity: 0; } 12% { opacity: 1; } 85% { opacity: .9; } 100% { transform: translateY(14px); opacity: 0; } }
.dest-anim .flicker { animation: flicker 2.2s steps(2, jump-none) infinite; }
@keyframes flicker { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .dest-anim * { animation: none !important; } }
#offer-done { display: none; text-align: center; padding: 28px 6px; }
#offer-done .check { font-size: 42px; color: var(--accent); }
#offer-done h3 { margin-top: 10px; }
#offer-done p { font-size: 14px; opacity: .85; line-height: 1.6; margin-top: 8px; }
.hp-field { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- hub page ---------- */
.hub { min-height: 100svh; background: #0e1413; color: var(--cream); display: flex; flex-direction: column; align-items: center; padding: 9vh 5vw 8vh; }
.hub h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 7vw, 72px); text-align: center; }
.hub .tag { letter-spacing: .34em; text-transform: uppercase; font-size: 12px; opacity: .7; margin: 14px 0 6vh; text-align: center; }
.hub-grid { display: grid; gap: 22px; width: min(1100px, 100%); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hub-card {
  position: relative; border-radius: 22px; overflow: hidden; text-decoration: none;
  aspect-ratio: 3/4; display: flex; align-items: flex-end;
  border: 1px solid rgba(255,255,255,.12);
}
.hub-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hub-card:hover img { transform: scale(1.06); }
.hub-card .grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,10,10,.82)); }
.hub-card .label { position: relative; padding: 22px; color: var(--cream); }
.hub-card .label .city { font-family: var(--serif); font-size: 34px; }
.hub-card .label .deal { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .layer img { transform: none !important; filter: none !important; }
  #hint::after { animation: none; }
}
@media (min-width: 740px) {
  #offer { width: 480px; border-radius: 26px; bottom: 4vh; padding-bottom: 24px; }
  .scene-text .hero-line { font-size: clamp(72px, 9vw, 128px); }
}
