/* ==========================================================================
   TripNord — pages.css (design v2)
   Hero with living mascot scene, AI-language surfaces, planner, guides,
   destinations, contact, 404, print.
   ========================================================================== */

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, #123152 0%, transparent 55%),
    linear-gradient(180deg, #050D14 0%, var(--night) 40%, var(--night-2) 100%);
  color: var(--text-inverse);
  overflow: clip;
}
.hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 2rem;
  padding-block: clamp(3.25rem, 2.4rem + 4vw, 6rem) clamp(6rem, 5rem + 5vw, 9.5rem);
}
.hero-copy { display: grid; gap: 1.4rem; justify-items: start; }
.hero h1 { color: #fff; font-size: var(--fs-hero); letter-spacing: -0.03em; line-height: 0.98; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--yellow); }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: 0.04em; height: 0.12em;
  background: linear-gradient(90deg, var(--aurora-green), var(--aurora-teal));
  border-radius: 999px; opacity: 0.95;
  transform-origin: left;
  animation: hl-draw 900ms 400ms var(--ease-out) backwards;
}
@keyframes hl-draw { from { transform: scaleX(0); } }
.hero .lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.3rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; align-items: center; }
.hero-trust .titem { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-inverse-soft); }
.hero-trust .titem .ic { color: var(--aurora-green); width: 1.1rem; height: 1.1rem; }
.hero-trust .titem b { color: #fff; font-family: var(--font-display); font-weight: 700; }

/* Aurora wash (soft gradients — no filters, cheap to composite) */
.aurora {
  position: absolute; inset: -18% -10% auto; height: 85%;
  z-index: 1; pointer-events: none;
  opacity: 0.8;
}
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.aurora .a1 {
  width: 58%; height: 50%; left: 2%; top: 14%;
  background: radial-gradient(closest-side, rgba(61, 220, 151, 0.55), rgba(61, 220, 151, 0.18) 52%, transparent 76%);
  animation: aurora-drift 13s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 50%; height: 46%; left: 36%; top: 4%;
  background: radial-gradient(closest-side, rgba(46, 196, 182, 0.5), rgba(46, 196, 182, 0.16) 52%, transparent 76%);
  animation: aurora-drift 17s ease-in-out infinite alternate-reverse;
}
.aurora .a3 {
  width: 44%; height: 42%; right: -2%; top: 20%;
  background: radial-gradient(closest-side, rgba(139, 121, 224, 0.46), rgba(139, 121, 224, 0.15) 52%, transparent 76%);
  animation: aurora-drift 15s ease-in-out 2s infinite alternate;
}
.aurora .a4 {
  width: 34%; height: 34%; left: 24%; top: 28%;
  background: radial-gradient(closest-side, rgba(10, 106, 201, 0.5), rgba(10, 106, 201, 0.16) 52%, transparent 76%);
  animation: aurora-drift 19s ease-in-out 1s infinite alternate-reverse;
}
@keyframes aurora-drift {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to { transform: translate3d(5%, 7%, 0) scale(1.14); }
}

/* Star field + twinkle */
.stars { position: absolute; inset: 0 0 30%; z-index: 0; pointer-events: none; opacity: 0.9;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 26% 10%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 30%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 14%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 26%, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 20%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 34%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 45% 42%, rgba(255,255,255,0.65) 50%, transparent 51%);
  animation: star-breathe 6s ease-in-out infinite alternate;
}
@keyframes star-breathe { from { opacity: 0.65; } to { opacity: 1; } }

/* Snowfall (hero + 404) */
.snowfall { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.snowfall i {
  position: absolute; top: -3%;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: snow-fall linear infinite;
}
.snowfall i:nth-child(1) { left: 8%; animation-duration: 11s; animation-delay: 0s; }
.snowfall i:nth-child(2) { left: 22%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 3s; }
.snowfall i:nth-child(3) { left: 34%; animation-duration: 12s; animation-delay: 6s; }
.snowfall i:nth-child(4) { left: 48%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 1.5s; }
.snowfall i:nth-child(5) { left: 61%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: 8s; }
.snowfall i:nth-child(6) { left: 72%; animation-duration: 10.5s; animation-delay: 4.5s; }
.snowfall i:nth-child(7) { left: 84%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 2s; }
.snowfall i:nth-child(8) { left: 93%; width: 3px; height: 3px; animation-duration: 12.5s; animation-delay: 9s; }
@keyframes snow-fall {
  0% { transform: translate3d(0, -4vh, 0); opacity: 0; }
  8% { opacity: 0.9; }
  90% { opacity: 0.8; }
  100% { transform: translate3d(3.5rem, 104vh, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .snowfall { display: none; } }

/* Ridge silhouette along hero bottom */
.hero-scene { position: absolute; inset: auto 0 0; z-index: 2; pointer-events: none; }
.hero-scene svg { width: 100%; height: auto; display: block; }

/* ---------- Lief: the living mascot ---------- */
.hero-visual { position: relative; z-index: 3; display: grid; place-items: center; perspective: 900px; }
.lief-stage {
  position: relative;
  width: min(84%, 27rem);
  transform-style: preserve-3d;
  transition: transform 400ms var(--ease-out);
  animation: lief-entrance 1.1s var(--ease-spring) backwards;
}
@keyframes lief-entrance {
  0% { opacity: 0; transform: translateY(-70px) rotate(-14deg) scale(0.85); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.lief-stage .lief {
  width: 100%;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.5));
  animation: lief-carve 8s ease-in-out infinite;
  will-change: transform;
}
@keyframes lief-carve {
  0%   { transform: translate(-3.5%, 0) rotate(-5deg); }
  25%  { transform: translate(1.5%, -2.4%) rotate(-1deg); }
  50%  { transform: translate(4%, 0.6%) rotate(4deg); }
  75%  { transform: translate(0.5%, -1.8%) rotate(0.5deg); }
  100% { transform: translate(-3.5%, 0) rotate(-5deg); }
}
/* Snow spray kicked off the board */
.lief-spray { position: absolute; left: -6%; bottom: 4%; width: 46%; z-index: -1; opacity: 0.9; }
.lief-spray i {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: #EAF3FA;
  opacity: 0;
  animation: spray 1.6s ease-out infinite;
}
.lief-spray i:nth-child(1) { left: 62%; bottom: 8%; animation-delay: 0s; }
.lief-spray i:nth-child(2) { left: 48%; bottom: 2%; width: 6px; height: 6px; animation-delay: 0.22s; }
.lief-spray i:nth-child(3) { left: 34%; bottom: 12%; width: 5px; height: 5px; animation-delay: 0.44s; }
.lief-spray i:nth-child(4) { left: 20%; bottom: 4%; width: 7px; height: 7px; animation-delay: 0.66s; }
.lief-spray i:nth-child(5) { left: 8%; bottom: 14%; width: 4px; height: 4px; animation-delay: 0.88s; }
.lief-spray i:nth-child(6) { left: 44%; bottom: 18%; width: 4px; height: 4px; animation-delay: 1.1s; }
@keyframes spray {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(-46px, 26px) scale(1.25); }
}
/* Motion streaks behind the board */
.lief-streaks { position: absolute; right: 78%; top: 46%; width: 40%; z-index: -1; }
.lief-streaks i {
  display: block; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(154, 215, 245, 0.7));
  margin-bottom: 12px;
  animation: streak 1.5s ease-in-out infinite;
  transform-origin: right;
}
.lief-streaks i:nth-child(1) { width: 90%; }
.lief-streaks i:nth-child(2) { width: 65%; animation-delay: 0.25s; margin-left: 20%; }
.lief-streaks i:nth-child(3) { width: 45%; animation-delay: 0.5s; margin-left: 8%; }
@keyframes streak {
  0%, 100% { opacity: 0.15; transform: scaleX(0.6); }
  50% { opacity: 0.85; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lief-stage, .lief-stage .lief { animation: none; }
  .lief-spray, .lief-streaks { display: none; }
}

/* ---------- Lief rides the seasons ----------
   Phase-locked to the 27s panorama slideshow (same duration, same clock):
   summer carve → winter low carve with snow → floaty golden midnight-sun. */
.lief-season { display: block; animation: lief-season-pose 27s cubic-bezier(0.65, 0, 0.35, 1) infinite; will-change: transform; }
@keyframes lief-season-pose {
  0%, 26%   { transform: rotate(0deg) translateY(0) scale(1); }       /* summer */
  33%, 59%  { transform: rotate(-4deg) translateY(2%) scale(1.03); }  /* winter: lower, faster stance */
  66%, 92%  { transform: rotate(3deg) translateY(-4%) scale(0.99); }  /* midnight sun: drifting */
  99%, 100% { transform: rotate(0deg) translateY(0) scale(1); }
}
.hero-light .lief-stage .lief {
  animation: lief-carve 8s ease-in-out infinite, lief-grade 27s ease-in-out infinite;
}
@keyframes lief-grade {
  0%, 26%   { filter: drop-shadow(0 30px 36px rgba(13, 27, 38, 0.28)); }
  33%, 59%  { filter: drop-shadow(0 26px 32px rgba(30, 64, 110, 0.4)) brightness(1.05) saturate(0.9) hue-rotate(-8deg); }
  66%, 92%  { filter: drop-shadow(0 26px 40px rgba(190, 110, 40, 0.45)) sepia(0.2) saturate(1.15) brightness(1.05); }
  99%, 100% { filter: drop-shadow(0 30px 36px rgba(13, 27, 38, 0.28)); }
}
.lief-glow {
  position: absolute; inset: 4% -10% -6% -10%; z-index: -2;
  border-radius: 50%;
  background: radial-gradient(50% 55% at 50% 58%,
    rgba(255, 201, 77, 0.6), rgba(255, 171, 96, 0.24) 55%, transparent 76%);
  opacity: 0;
  animation: lief-glow-gate 27s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lief-glow-gate { 0%, 59% { opacity: 0; } 66%, 92% { opacity: 1; } 99%, 100% { opacity: 0; } }
.hero-light .lief-spray { animation: lief-spray-gate 27s ease-in-out infinite; }
@keyframes lief-spray-gate { 0%, 26% { opacity: 0.55; } 33%, 59% { opacity: 1; } 66%, 92% { opacity: 0.12; } 99%, 100% { opacity: 0.55; } }
.hero-light .lief-streaks { animation: lief-streaks-gate 27s ease-in-out infinite; }
@keyframes lief-streaks-gate { 0%, 26% { opacity: 1; } 33%, 59% { opacity: 0.45; } 66%, 92% { opacity: 0.15; } 99%, 100% { opacity: 1; } }
.lief-flakes {
  position: absolute; inset: -6% 2% 0 2%; z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: lief-flakes-gate 27s ease-in-out infinite;
}
@keyframes lief-flakes-gate { 0%, 26% { opacity: 0; } 33%, 59% { opacity: 1; } 66%, 100% { opacity: 0; } }
.lief-flakes i {
  position: absolute; top: -4%;
  width: 5px; height: 5px; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(20, 40, 60, 0.18);
  animation: lief-flake-fall 3.8s linear infinite;
}
.lief-flakes i:nth-child(1) { left: 12%; }
.lief-flakes i:nth-child(2) { left: 30%; width: 4px; height: 4px; animation-delay: -1.2s; }
.lief-flakes i:nth-child(3) { left: 48%; animation-delay: -2.4s; }
.lief-flakes i:nth-child(4) { left: 64%; width: 4px; height: 4px; animation-delay: -0.6s; }
.lief-flakes i:nth-child(5) { left: 80%; animation-delay: -3s; }
.lief-flakes i:nth-child(6) { left: 92%; width: 3.5px; height: 3.5px; animation-delay: -1.8s; }
@keyframes lief-flake-fall {
  0% { transform: translate(0, -8%); opacity: 0; }
  12% { opacity: 0.95; }
  100% { transform: translate(16px, 106%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lief-season, .hero-light .lief-stage .lief { animation: none; }
  .lief-glow, .lief-flakes { display: none; }
}

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(10, 30, 48, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(154, 215, 245, 0.28);
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  padding: 0.55rem 0.95rem; border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
}
.float-chip .ic { color: var(--yellow); width: 1.05rem; height: 1.05rem; }
.float-chip.fc1 { top: 4%; left: -4%; animation: chip-bob 6s ease-in-out infinite; }
.float-chip.fc2 { bottom: 18%; right: -6%; animation: chip-bob 6s ease-in-out 1.2s infinite; }
.float-chip.fc3 { bottom: -2%; left: 2%; animation: chip-bob 6s ease-in-out 2.4s infinite; }
@keyframes chip-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 64rem) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: clamp(5rem, 4rem + 4vw, 7rem); }
  .hero-visual { order: -1; }
  .lief-stage { width: min(58%, 17rem); }
  .float-chip.fc1 { left: 0; }
  .float-chip.fc3 { display: none; }
}

/* ---------- Section flavors ---------- */
.band-dark { position: relative; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: var(--text-inverse); overflow: clip; }
.band-dark .aurora { opacity: 0.5; }

/* ---------- AI panel — the planner's home-page teaser ---------- */
.ai-panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(65, 226, 150, 0.14) 0%, transparent 50%),
    radial-gradient(80% 120% at 88% 100%, rgba(157, 123, 255, 0.16) 0%, transparent 50%),
    linear-gradient(160deg, #081A29, #0A2035 60%, #0C2740);
  overflow: clip;
}
.ai-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--ai-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.85;
  pointer-events: none;
}
.ai-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 215, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 215, 245, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 100%);
}
.ai-panel > * { position: relative; z-index: 1; }
.ai-panel .inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem; align-items: center;
}
.ai-panel .lief-side { position: relative; width: clamp(11rem, 9rem + 12vw, 16rem); }
.ai-panel .lief-side img { width: 100%; animation: lief-carve 9s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.45)); }
@media (max-width: 48rem) {
  .ai-panel .inner { grid-template-columns: 1fr; }
  .ai-panel .lief-side { display: none; }
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; display: grid; gap: 0.6rem; padding: 1.7rem 1.7rem 1.8rem; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); align-content: start; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--red); letter-spacing: 0.06em;
}
.step h3 { font-size: 1.22rem; }
.step p { color: var(--text-soft); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- Planner wizard (AI surface) ---------- */
.planner-wrap { max-width: 50rem; margin-inline: auto; }
.planner-card {
  position: relative;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--ai-gradient) border-box;
  border: 2px solid transparent;
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 8px rgba(91, 141, 239, 0.07), var(--shadow-lg);
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.75rem);
}
.planner-card .ai-chip { position: absolute; top: -0.85rem; left: 50%; translate: -50% 0; box-shadow: var(--ai-glow); }
.plan-progress { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.9rem; }
.plan-progress .bar { flex: 1; height: 7px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.plan-progress .bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ai-gradient); transition: width 450ms var(--ease-out); }
.plan-progress .count { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--text-soft); white-space: nowrap; }

.plan-step { display: none; border: 0; padding: 0; }
.plan-step.active { display: block; animation: step-in 420ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.plan-step h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.05rem); margin-bottom: 0.4rem; }
.plan-step .q-hint { color: var(--text-soft); margin-bottom: 1.45rem; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.85rem; }
.opt {
  position: relative; display: grid; gap: 0.5rem; justify-items: center; text-align: center;
  padding: 1.15rem 0.85rem 1.05rem;
  border: 2px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; user-select: none;
  transition: all var(--t-fast);
  background: #fff;
}
.opt:hover { border-color: var(--ai-c); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .ic { width: 1.7rem; height: 1.7rem; color: var(--blue); }
.opt b { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.opt small { color: var(--text-soft); font-size: 0.78rem; line-height: 1.35; }
.opt.selected {
  border-color: transparent;
  background:
    linear-gradient(#F4FBFF, #F4FBFF) padding-box,
    var(--ai-gradient) border-box;
  box-shadow: 0 4px 18px -4px rgba(91, 141, 239, 0.35);
}
.opt.selected::after {
  content: ""; position: absolute; top: 0.5rem; right: 0.5rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--ai-c) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
.opt-wide { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }

.nights-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: var(--r-full); overflow: hidden; background: #fff; }
.stepper button { width: 3rem; height: 3rem; display: grid; place-items: center; color: var(--ai-c); transition: background var(--t-fast); }
.stepper button:hover { background: #EFF5FD; }
.stepper output { min-width: 4.8rem; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }

.plan-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* Lief thinking — AI shimmer status */
.plan-loading { display: none; text-align: center; padding: 2.5rem 1rem 1.5rem; }
.plan-loading.active { display: block; }
.plan-loading .lief-think {
  width: 7.5rem; margin-inline: auto; border-radius: 50%;
  animation: chip-bob 2.2s ease-in-out infinite;
  filter: drop-shadow(0 14px 22px rgba(13, 27, 38, 0.25));
}
.plan-loading .status {
  margin-top: 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  min-height: 1.6em;
}
.plan-loading .status-text {
  background: linear-gradient(100deg, var(--ai-b), var(--ai-c) 40%, var(--ai-d) 60%, var(--ai-b) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ai-shimmer 2.2s linear infinite;
}
@keyframes ai-shimmer { to { background-position: -220% 0; } }
.plan-loading .dots { display: inline-flex; gap: 0.3rem; margin-left: 0.45rem; vertical-align: middle; }
.plan-loading .dots i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ai-c); animation: dot-pulse 1.2s ease-in-out infinite; }
.plan-loading .dots i:nth-child(2) { animation-delay: 0.18s; background: var(--ai-b); }
.plan-loading .dots i:nth-child(3) { animation-delay: 0.36s; background: var(--ai-d); }
@keyframes dot-pulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.1); } }

/* ---------- Itinerary result ---------- */
.itin { display: none; }
.itin.active { display: block; animation: step-in 450ms var(--ease-out); }
.itin-head { display: flex; align-items: flex-start; gap: 1.3rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.itin-head .lief-badge {
  width: 4.6rem; height: 4.6rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(#EAF6FF, #EAF6FF) padding-box, var(--ai-gradient) border-box;
  border: 2px solid transparent;
}
.itin-head .lief-badge img { width: 3.5rem; }
.itin-head .headline { flex: 1; min-width: 16rem; display: grid; gap: 0.45rem; justify-items: start; }
.itin-head h2 { font-size: clamp(1.55rem, 1.3rem + 1.2vw, 2.2rem); }
.itin-head .sub { color: var(--text-soft); }
.itin-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1.6rem; }
.itin-chips .chip { background: #EFF5FD; box-shadow: none; border: 1px solid #D8E6F6; color: var(--blue-deep); }

.itin-days { display: grid; gap: 0.9rem; position: relative; }
.itin-day {
  display: grid; grid-template-columns: auto 1fr; gap: 1.15rem;
  background: var(--card); border-radius: var(--r-lg);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.itin-day .day-no {
  width: 3.2rem; height: 3.2rem; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center;
  background: var(--night); color: var(--yellow);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}
.itin-day .day-no small { display: block; font-size: 0.58rem; letter-spacing: 0.14em; color: var(--text-inverse-soft); font-weight: 700; }
.itin-day h3 { font-size: 1.18rem; display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; }
.itin-day h3 .loc { color: var(--blue); font-size: 0.85rem; font-weight: 600; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 0.3rem; }
.itin-day ul { margin-top: 0.55rem; display: grid; gap: 0.4rem; list-style: none; padding: 0; }
.itin-day li { display: flex; gap: 0.6rem; font-size: var(--fs-sm); color: var(--text); }
.itin-day li .ic { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; color: var(--aurora-teal); }
.itin-day .stay { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); font-size: 0.88rem; color: var(--text-soft); display: flex; align-items: center; gap: 0.5rem; }
.itin-day .stay .ic { color: var(--red); width: 1.05rem; height: 1.05rem; }
.itin-travel { display: flex; align-items: center; gap: 0.6rem; padding-left: 4.5rem; color: var(--text-soft); font-size: 0.88rem; font-style: italic; }
.itin-travel .ic { color: var(--ai-c); }

.itin-aside { display: grid; gap: 1rem; margin-top: 1.6rem; grid-template-columns: repeat(3, 1fr); }
.itin-panel { background: var(--paper-deep); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; display: grid; gap: 0.5rem; align-content: start; }
.itin-panel h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.98rem; }
.itin-panel h4 .ic { color: var(--red); }
.itin-panel p, .itin-panel li { font-size: 0.88rem; color: var(--text-soft); line-height: 1.55; }
.itin-panel .big { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--ink); }
.itin-panel .big small { font-size: 0.85rem; font-weight: 500; color: var(--text-soft); }
@media (max-width: 48rem) { .itin-aside { grid-template-columns: 1fr; } }
.itin-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.itin-note { margin-top: 1.2rem; font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Trip editor (planner result) ---------- */
.planner-layout.result-mode { grid-template-columns: 1fr; }
.planner-layout.result-mode .plan-aside { display: none; }

.trip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.5rem;
}
@media (max-width: 64rem) { .trip-grid { grid-template-columns: 1fr; } }
.trip-main { display: grid; gap: 0.9rem; }
.trip-notes { margin-top: 0.4rem; }

.stop-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.35rem 1.1rem;
  display: grid; gap: 1rem;
}
.stop-head { display: flex; align-items: flex-start; gap: 0.9rem; }
.stop-no {
  width: 2.6rem; height: 2.6rem; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center;
  background: var(--night); color: var(--yellow);
  font-family: var(--font-display); font-weight: 800;
}
.stop-title { flex: 1; display: grid; gap: 0.35rem; }
.stop-title h3 { font-size: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: center; }
.stop-title .loc { color: var(--blue); font-size: 0.82rem; font-weight: 600; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 0.25rem; }
.stop-nights { display: inline-flex; align-items: center; gap: 0.55rem; }
.stop-nights b { font-family: var(--font-display); font-size: 0.95rem; min-width: 4.6rem; text-align: center; }
.nstep {
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ai-c);
  display: inline-grid; place-items: center;
  transition: all var(--t-fast);
}
.nstep:hover { border-color: var(--ai-c); background: #EFF5FD; }
.nstep .ic { width: 0.95rem; height: 0.95rem; }
.stop-remove {
  width: 2rem; height: 2rem; border-radius: 50%; flex: none;
  color: var(--text-soft); display: grid; place-items: center;
  transition: all var(--t-fast);
}
.stop-remove:hover { background: var(--red-50); color: var(--red); }
.stop-remove .ic { width: 1rem; height: 1rem; }

.stop-sec { display: grid; gap: 0.55rem; }
.stop-sec > h4 {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
}
.stop-sec > h4 .ic { width: 1rem; height: 1rem; color: var(--red); }
.stop-sec > h4 small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-soft); }

.stay-opts { display: grid; gap: 0.45rem; }
.stay-opt {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 0.55rem 0.85rem;
  cursor: pointer; user-select: none;
  transition: all var(--t-fast);
  background: #fff;
}
.stay-opt:hover { border-color: var(--ai-c); }
.stay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.stay-opt .s-name { flex: 1; font-weight: 600; font-size: 0.93rem; color: var(--ink); }
.stay-opt .s-name small { display: block; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.1rem; }
.stay-opt .s-price { font-family: var(--font-display); font-weight: 800; color: var(--ink); white-space: nowrap; }
.stay-opt .s-price small { font-family: var(--font-body); font-weight: 500; color: var(--text-soft); }
.stay-opt.sel {
  border-color: transparent;
  background: linear-gradient(#F4FBFF, #F4FBFF) padding-box, var(--ai-gradient) border-box;
  box-shadow: 0 3px 14px -4px rgba(91, 141, 239, 0.3);
}

.act-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.45rem; }
.act-opt {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1.5px dashed var(--line); border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer; user-select: none;
  transition: all var(--t-fast);
  background: #fff;
}
.act-opt:hover { border-color: var(--ai-c); }
.act-opt input { position: absolute; opacity: 0; pointer-events: none; }
.act-opt .a-name { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--text-soft); }
.act-opt .a-pop { font-style: normal; font-size: 0.7rem; font-weight: 800; color: #B8860B; white-space: nowrap; }
.act-opt .a-price { font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; color: var(--text-soft); }
.act-opt.sel {
  border-style: solid; border-color: transparent;
  background: linear-gradient(#F2FBF6, #F2FBF6) padding-box, var(--ai-gradient) border-box;
}
.act-opt.sel .a-name, .act-opt.sel .a-price { color: var(--ink); }

.stop-days { border-top: 1px dashed var(--line); padding-top: 0.6rem; }
.stop-days summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; font-weight: 700; color: var(--blue-deep);
}
.stop-days summary::-webkit-details-marker { display: none; }
.stop-days summary .ic { width: 0.95rem; height: 0.95rem; }
.stop-days ul { margin-top: 0.6rem; display: grid; gap: 0.35rem; list-style: none; padding: 0; }
.stop-days li { display: flex; gap: 0.5rem; font-size: 0.86rem; color: var(--text-soft); }
.stop-days li .ic { width: 0.95rem; height: 0.95rem; margin-top: 0.15rem; color: var(--aurora-teal); flex: none; }

.itin-travel .tr-cost { margin-left: auto; font-family: var(--font-display); font-style: normal; color: var(--text-soft); font-size: 0.85rem; }

.addstop { border: 1.5px dashed #BFD2E2; border-radius: var(--r-lg); background: #F7FBFE; }
.addstop summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-display); font-weight: 700; color: var(--blue-deep);
}
.addstop summary::-webkit-details-marker { display: none; }
.addstop summary .ic { color: var(--ai-c); }
.addstop summary small { font-weight: 500; color: var(--text-soft); }
.addstop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.5rem; padding: 0 1.2rem 1.1rem; }
.addstop-list button {
  text-align: left; padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  transition: all var(--t-fast);
}
.addstop-list button:hover { border-color: var(--ai-c); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.addstop-list b { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); }
.addstop-list span { font-size: 0.78rem; color: var(--text-soft); }

.trip-summary {
  position: sticky; top: calc(var(--header-h) + 1.25rem);
  display: grid; gap: 0.9rem; justify-items: start;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--ai-gradient) border-box;
  border: 2px solid transparent;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 6px rgba(91, 141, 239, 0.07), var(--shadow-md);
  padding: 1.3rem 1.4rem 1.4rem;
}
.sum-lines { display: grid; gap: 0.5rem; width: 100%; list-style: none; padding: 0; }
.sum-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--text-soft); }
.sum-lines b { font-family: var(--font-display); color: var(--ink); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%;
  border-top: 1.5px solid var(--line-soft); padding-top: 0.8rem;
}
.sum-total span { font-weight: 700; color: var(--ink); }
.sum-total b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); transition: color var(--t-fast); }
.sum-total b.bump { animation: price-bump 500ms var(--ease-spring); color: var(--blue-deep); }
@keyframes price-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.sum-note { font-size: 0.8rem; color: var(--text-soft); line-height: 1.5; }
.trip-summary .btn { width: 100%; }
.sum-reset {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 700; color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.sum-reset:hover { color: var(--red); }
.sum-reset .ic { width: 0.9rem; height: 0.9rem; }
@media (max-width: 64rem) { .trip-summary { position: static; } }

.trip-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 1.1rem calc(0.65rem + env(safe-area-inset-bottom, 0));
  background: rgba(251, 249, 242, 0.96);
  border-top: 1.5px solid var(--line);
  box-shadow: 0 -8px 30px rgba(20, 40, 60, 0.12);
}
.trip-bar[hidden] { display: none; }
.trip-bar .tb-total small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.trip-bar .tb-total b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--ink); }
@media (min-width: 64.01rem) { .trip-bar { display: none; } }

/* ---------- Season explorer (experiences) ---------- */
.sx { --sx-c: var(--blue); }
.sx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.sx-head h2 { font-size: clamp(1.35rem, 1.2rem + 0.9vw, 1.9rem); }
.sx-head h2 em { font-style: normal; color: var(--sx-c); transition: color 0.4s ease; }
.sx-legend { display: flex; gap: 1.1rem; font-size: 0.82rem; color: var(--text-soft); }
.sx-legend i { display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: 4px; vertical-align: -2px; margin-right: 0.4rem; }
.sx-legend .best i { background: var(--sx-c); transition: background 0.4s ease; }
.sx-legend .low i { background: #E9E6DA; }
.sx-chart {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.25rem 1rem;
  display: flex; gap: clamp(0.35rem, 1vw, 0.9rem); align-items: flex-end;
  height: 15rem;
}
.sx-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0.55rem; height: 100%; }
.sx-bar {
  border-radius: 10px; background: #E9E6DA; height: 8%;
  transition: height 0.5s cubic-bezier(0.5, 0, 0.2, 1.2), background 0.4s ease;
}
.sx-bar.l1 { height: 34%; background: var(--sx-c); opacity: 0.55; }
.sx-bar.l2 { height: 62%; background: var(--sx-c); opacity: 0.8; }
.sx-bar.l3 { height: 92%; background: var(--sx-c); opacity: 1; }
.sx-bar.l1, .sx-bar.l2, .sx-bar.l3 { transition: height 0.5s cubic-bezier(0.5, 0, 0.2, 1.2), background 0.4s ease, opacity 0.4s ease; }
.sx-col span { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-soft); letter-spacing: 0.04em; }
.sx-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-top: 1rem; }
@media (max-width: 64rem) { .sx-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .sx-cards { grid-template-columns: 1fr 1fr; } }
.sx-card {
  text-align: left; background: #fff; border: 2px solid transparent; border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 0.9rem 1rem; cursor: pointer;
  display: grid; gap: 0.2rem; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  font: inherit; color: inherit;
}
.sx-card:hover { transform: translateY(-2px); }
.sx-card b { font-family: var(--font-display); font-size: 0.98rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.sx-card b i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #E9E6DA; flex: none; transition: background var(--t-fast); }
.sx-card .range { font-size: 0.8rem; font-weight: 700; color: var(--text-soft); }
.sx-card p { font-size: 0.82rem; color: var(--text-soft); line-height: 1.45; margin: 0.15rem 0 0; }
.sx-card.sel { border-color: var(--sx-ac); background: color-mix(in srgb, var(--sx-ac) 7%, #fff); }
.sx-card.sel b i { background: var(--sx-ac); }
.sx-card.sel .range { color: var(--sx-ac); }
.sx-go { margin-top: 1.1rem; text-align: right; }
@media (prefers-reduced-motion: reduce) { .sx-bar { transition: none; } }

/* Card go-arrow (replaces the old Explore pill) */
.card-go {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none;
  border: 2px solid var(--line); display: grid; place-items: center; color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.card-go .ic { width: 1.05rem; height: 1.05rem; }
.card:hover .card-go { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateX(4px); }

/* ---------- Lief motion library (/lief/) ---------- */
.stance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 72rem) { .stance-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 52rem) { .stance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .stance-grid { grid-template-columns: 1fr; } }
.stance-card { display: grid; gap: 0.7rem; }
.stance-stage {
  position: relative;
  aspect-ratio: 1 / 1.04;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #BFE3F8 0%, #EAF6FE 70%, #DDEBF5 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.stance-stage:hover * { animation-play-state: paused !important; }
.stance-stage img { width: 60%; height: auto; will-change: transform; z-index: 2; }
.stance-stage .shadow {
  position: absolute; bottom: 9%; left: 50%; translate: -50% 0;
  width: 44%; height: 6.5%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(13, 27, 38, 0.26), transparent 72%);
  z-index: 1;
}
.stance-stage .fx { position: absolute; pointer-events: none; z-index: 3; }
.stance-card figcaption b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.stance-card figcaption span { font-size: 0.84rem; color: var(--text-soft); line-height: 1.45; }

/* Shared FX: snow / stars / confetti as box-shadow particle dots */
.fx-snow {
  top: -6%; left: 12%; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  box-shadow: 34px 26px 0 #fff, 88px 8px 0 -1px #fff, 132px 40px 0 #fff,
    176px 14px 0 -1px #fff, 210px 48px 0 #fff, 58px 60px 0 -1px #fff, 156px 74px 0 -1px #fff;
  animation: fx-snowfall 3.4s linear infinite;
}
@keyframes fx-snowfall {
  0% { transform: translateY(-12%); opacity: 0; }
  12% { opacity: 0.95; }
  100% { transform: translateY(360px); opacity: 0; }
}
.fx-stars {
  top: 10%; left: 14%; width: 4px; height: 4px; border-radius: 50%; background: #fff;
  box-shadow: 40px 18px 0 #fff, 96px -6px 0 -1px #fff, 150px 26px 0 #fff,
    198px 2px 0 -1px #fff, 70px 52px 0 -1px #fff, 176px 60px 0 #fff;
  animation: fx-twinkle 2.6s ease-in-out infinite;
}
@keyframes fx-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.fx-confetti {
  top: -4%; left: 18%; width: 6px; height: 6px; border-radius: 2px; background: var(--red);
  box-shadow: 36px 20px 0 var(--yellow), 84px 4px 0 var(--blue), 130px 30px 0 var(--aurora-green),
    172px 10px 0 var(--red), 60px 48px 0 var(--aurora-violet), 150px 60px 0 var(--yellow);
  animation: fx-confetti-fall 2.4s linear infinite;
}
@keyframes fx-confetti-fall {
  0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(340px) rotate(220deg); opacity: 0; }
}
.fx-streaks {
  left: 4%; top: 46%; width: 34%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(10, 106, 201, 0.5));
  box-shadow: 8px 14px 0 rgba(10, 106, 201, 0.35), 16px 28px 0 rgba(10, 106, 201, 0.22);
  animation: fx-streak-pulse 1.1s ease-in-out infinite alternate;
}
@keyframes fx-streak-pulse { from { opacity: 0.25; transform: scaleX(0.7); } to { opacity: 0.9; transform: scaleX(1); } }

/* Night / warm stage variants */
.stage-night { background: linear-gradient(180deg, #071722 0%, #0E2438 70%, #16354F 100%); }
.stage-night::before {
  content: ""; position: absolute; inset: -20% -10% 30%;
  background:
    radial-gradient(40% 45% at 30% 40%, rgba(61, 220, 151, 0.4), transparent 75%),
    radial-gradient(38% 42% at 70% 30%, rgba(139, 121, 224, 0.35), transparent 75%);
  animation: aurora-drift 12s ease-in-out infinite alternate;
}
.stage-gold { background: linear-gradient(180deg, #FFD98A 0%, #FFB870 60%, #F5A66E 100%); }
.stage-gold::before {
  content: ""; position: absolute; inset: 20% 10% 10%;
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 201, 77, 0.75), transparent 75%);
  animation: pan-halo-ish 5s ease-in-out infinite;
}
@keyframes pan-halo-ish { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.stage-pale { background: linear-gradient(180deg, #D7E9F5 0%, #F0F6FB 100%); }

/* --- The 16 stances --- */
.st-carve img { animation: lief-carve 6s ease-in-out infinite; }

.st-winter img { animation: st-winter 2.4s ease-in-out infinite alternate; filter: brightness(1.05) saturate(0.9) hue-rotate(-8deg) drop-shadow(0 14px 16px rgba(30, 64, 110, 0.35)); }
@keyframes st-winter { from { transform: rotate(-7deg) translateX(-6%) translateY(1%); } to { transform: rotate(-1deg) translateX(6%) translateY(-1%); } }

.st-gold img { animation: st-gold 7s ease-in-out infinite; filter: sepia(0.2) saturate(1.15) brightness(1.05) drop-shadow(0 18px 26px rgba(190, 110, 40, 0.45)); }
@keyframes st-gold { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-7%) rotate(5deg); } }

.st-air img { transform-origin: 50% 92%; animation: st-air 2.8s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
@keyframes st-air {
  0%, 8% { transform: translateY(0) scale(1, 1); }
  16% { transform: translateY(1%) scale(1.04, 0.92); }
  30% { transform: translateY(-26%) rotate(-7deg); }
  48% { transform: translateY(-33%) rotate(5deg); }
  66% { transform: translateY(0) scale(1.05, 0.9) rotate(0deg); }
  76% { transform: translateY(-2%) scale(0.98, 1.04); }
  86%, 100% { transform: translateY(0) scale(1, 1); }
}
.st-air .shadow { animation: st-air-shadow 2.8s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
@keyframes st-air-shadow {
  0%, 8%, 66%, 100% { transform: scale(1); opacity: 1; }
  30% { transform: scale(0.6); opacity: 0.5; }
  48% { transform: scale(0.5); opacity: 0.4; }
}

.st-360 img { animation: st-360 3.4s cubic-bezier(0.55, 0.05, 0.35, 1) infinite; }
@keyframes st-360 {
  0%, 10% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  18% { transform: translateY(1%) scale(1.05, 0.9) rotate(0deg); }
  55% { transform: translateY(-30%) rotate(360deg); }
  72% { transform: translateY(0) rotate(360deg) scale(1.04, 0.92); }
  82%, 100% { transform: translateY(0) rotate(360deg) scale(1, 1); }
}

.st-flip img { animation: st-flip 3.8s cubic-bezier(0.55, 0.05, 0.35, 1) infinite; }
@keyframes st-flip {
  0%, 12% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(1%) scale(1.04, 0.9); }
  58% { transform: translateY(-34%) rotate(-360deg); }
  76% { transform: translateY(0) rotate(-360deg) scale(1.05, 0.9); }
  86%, 100% { transform: translateY(0) rotate(-360deg); }
}

.st-wobble img { transform-origin: 50% 88%; animation: st-wobble 0.55s ease-in-out infinite alternate; }
@keyframes st-wobble { from { transform: rotate(-3.5deg) translateX(-1.5%); } to { transform: rotate(3.5deg) translateX(1.5%); } }

.st-aurora img { animation: st-aurora 5.5s ease-in-out infinite; filter: brightness(1.08) saturate(0.92) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5)); }
@keyframes st-aurora { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-9deg) translateY(-3%); } }

.st-speed img { animation: st-speed 0.5s ease-in-out infinite alternate; }
@keyframes st-speed { from { transform: rotate(9deg) translateX(2%) translateY(0.5%); } to { transform: rotate(7.5deg) translateX(3.5%) translateY(-0.5%); } }

.st-switch img { animation: st-switch 5.2s ease-in-out infinite; }
@keyframes st-switch {
  0%, 6% { transform: translateX(-14%) scaleX(1) rotate(-3deg); }
  42% { transform: translateX(14%) scaleX(1) rotate(3deg); }
  50% { transform: translateX(14%) scaleX(-1) rotate(-3deg); }
  92% { transform: translateX(-14%) scaleX(-1) rotate(3deg); }
  100% { transform: translateX(-14%) scaleX(1) rotate(-3deg); }
}

.st-hop img { transform-origin: 50% 92%; animation: st-hop 1.15s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes st-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(1%) scale(1.06, 0.9); }
  52% { transform: translateY(-16%) scale(0.97, 1.05); }
  84% { transform: translateY(0) scale(1.05, 0.92); }
}
.st-hop .shadow { animation: st-hop-shadow 1.15s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes st-hop-shadow { 0%, 100% { transform: scale(1); } 52% { transform: scale(0.65); opacity: 0.55; } }

.st-heli img { animation: st-heli 4.5s linear infinite; }
@keyframes st-heli {
  0% { transform: translateY(-6%) rotate(0deg); }
  25% { transform: translateY(-9%) rotate(90deg); }
  50% { transform: translateY(-6%) rotate(180deg); }
  75% { transform: translateY(-3%) rotate(270deg); }
  100% { transform: translateY(-6%) rotate(360deg); }
}

.st-pipe img { transform-origin: 50% 100%; animation: st-pipe 2.3s ease-in-out infinite alternate; }
@keyframes st-pipe { from { transform: translateX(-20%) rotate(-14deg) translateY(-4%); } to { transform: translateX(20%) rotate(14deg) translateY(-4%); } }

.st-zerog img { animation: st-zerog 9s ease-in-out infinite; filter: brightness(1.1) drop-shadow(0 0 22px rgba(154, 215, 245, 0.5)); }
@keyframes st-zerog {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  33% { transform: translate(4%, -7%) rotate(4deg); }
  66% { transform: translate(-4%, -3%) rotate(10deg); }
}

.st-shiver img { animation: st-shiver 0.16s ease-in-out infinite alternate; filter: brightness(1.06) saturate(0.82) hue-rotate(-12deg); }
@keyframes st-shiver { from { transform: translateX(-1.2%) rotate(-1deg); } to { transform: translateX(1.2%) rotate(1deg); } }

.st-victory img { transform-origin: 50% 85%; animation: st-victory 1.7s var(--ease-spring) infinite; }
@keyframes st-victory {
  0% { transform: rotate(0deg) translateY(0); }
  14% { transform: rotate(-9deg) translateY(-4%); }
  32% { transform: rotate(8deg) translateY(-6%); }
  50% { transform: rotate(-6deg) translateY(-3%); }
  66% { transform: rotate(4deg) translateY(-5%); }
  82% { transform: rotate(-2deg) translateY(-1%); }
  100% { transform: rotate(0deg) translateY(0); }
}

.st-peek img { animation: st-peek 4.6s ease-in-out infinite; }
@keyframes st-peek {
  0%, 12% { transform: translateX(64%) rotate(14deg); }
  30%, 62% { transform: translateX(6%) rotate(-2deg); }
  80%, 100% { transform: translateX(64%) rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
  .stance-stage *, .stage-night::before, .stage-gold::before { animation: none !important; }
}

/* Poses & emotes (vector remix) */
.pose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 52rem) { .pose-grid { grid-template-columns: 1fr; } }
.pose-stage {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, #EAF4FC 0%, #F6FAFD 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.pose-stage img { width: 78%; height: auto; animation: pose-float 6s ease-in-out infinite; }
@keyframes pose-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5%); } }
.emote-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 1.75rem; justify-content: center; }
.emote-card { display: grid; justify-items: center; gap: 0.5rem; }
.emote-card img { width: 4.6rem; height: 4.6rem; transition: transform var(--t-med); }
.emote-card:hover img { transform: translateY(-4px) scale(1.06) rotate(-3deg); }
.emote-card figcaption { font-size: 0.82rem; font-weight: 700; color: var(--text-soft); }
@media (prefers-reduced-motion: reduce) { .pose-stage img { animation: none; } }

/* AI pose studies grid */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 64rem) { .ai-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 40rem) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
.ai-tile {
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: grid; gap: 0;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.ai-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ai-tile img { width: 100%; height: auto; }
.ai-tile figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.8rem 0.7rem;
  border-top: 1px solid var(--line-soft);
}
.ai-tile b { font-family: var(--font-display); font-size: 0.88rem; color: var(--ink); }
.ai-tile .status-chip { font-size: 0.6rem; padding: 0.2rem 0.5rem; }

/* ---------- Living poses: CSS micro-motion for the AI singles ---------- */
.pose-box { position: relative; overflow: hidden; background: #fff; }
.pose-box img { width: 100%; height: auto; will-change: transform; display: block; }
.pose-box .pfx { position: absolute; pointer-events: none; z-index: 2; }
.pose-live:hover .pose-box img,
.pose-live:hover .pose-box .pfx { animation-play-state: paused !important; }

/* The Concierge — lean-in greeting rock */
.pb-concierge img { transform-origin: 50% 92%; animation: pb-greet 3.6s ease-in-out infinite; }
@keyframes pb-greet {
  0%, 18%, 100% { transform: rotate(0deg) translateY(0); }
  36% { transform: rotate(-2.6deg) translateY(-1%); }
  54% { transform: rotate(-1.2deg) translateY(0); }
  70% { transform: rotate(-2.2deg) translateY(-0.6%); }
}

/* The Detective — scanning the map left to right */
.pb-detective img { animation: pb-scan 5.2s ease-in-out infinite; }
@keyframes pb-scan {
  0%, 100% { transform: translateX(-2.5%) rotate(-1.2deg); }
  50% { transform: translateX(2.5%) rotate(1.2deg); }
}

/* Suitcase Wrestler — squash bounce on the lid */
.pb-suitcase img { transform-origin: 50% 96%; animation: pb-squash 2.7s ease-in-out infinite; }
@keyframes pb-squash {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  12% { transform: translateY(-3%) scale(0.99, 1.02); }
  22% { transform: translateY(0.5%) scale(1.04, 0.93); }
  32% { transform: translateY(-1.5%) scale(0.995, 1.01); }
  42% { transform: translateY(0.5%) scale(1.03, 0.95); }
}

/* Booking Confirmed — happy hop */
.pb-confirmed img { transform-origin: 50% 94%; animation: pb-hop 2.1s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)) infinite; }
@keyframes pb-hop {
  0%, 100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
  18% { transform: translateY(0.6%) scale(1.03, 0.95); }
  46% { transform: translateY(-4.5%) scale(0.99, 1.02) rotate(-1.5deg); }
  74% { transform: translateY(0) scale(1.02, 0.96) rotate(0.8deg); }
}

/* Rainy-Day Plan B — calm sway under the umbrella */
.pb-rainy img { transform-origin: 50% 96%; animation: pb-sway 4.8s ease-in-out infinite alternate; }
@keyframes pb-sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }

/* Hammock Mode — pendulum rock from the trees */
.pb-hammock img { transform-origin: 50% -14%; animation: pb-rock 5.4s ease-in-out infinite alternate; }
@keyframes pb-rock { from { transform: rotate(-3.2deg); } to { transform: rotate(3.2deg); } }

/* Finish Line — victory wiggle */
.pb-victory img { transform-origin: 50% 88%; animation: pb-cheer 1.9s ease-in-out infinite; }
@keyframes pb-cheer {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  16% { transform: rotate(-5deg) translateY(-2.5%); }
  36% { transform: rotate(4.5deg) translateY(-3.5%); }
  56% { transform: rotate(-3deg) translateY(-1.5%); }
  76% { transform: rotate(2deg) translateY(-2.5%); }
}

/* The Wipeout — woozy sway */
.pb-postfall img { transform-origin: 50% 90%; animation: pb-woozy 3.8s ease-in-out infinite; }
@keyframes pb-woozy {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  30% { transform: rotate(1.4deg) translateY(-0.6%); }
  60% { transform: rotate(-0.8deg) translateY(0.3%); }
}

/* The Brake Check — braking judder */
.pb-snowplow img { animation: pb-judder 0.2s ease-in-out infinite alternate; }
@keyframes pb-judder { from { transform: translateX(-0.9%) rotate(-0.5deg); } to { transform: translateX(0.9%) rotate(0.5deg); } }

/* Pro Walk — proud strut sway */
.pb-carry img { transform-origin: 50% 94%; animation: pb-strut 3.4s ease-in-out infinite; }
@keyframes pb-strut {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  25% { transform: rotate(0deg) translateY(-1.2%); }
  50% { transform: rotate(1.6deg) translateY(0); }
  75% { transform: rotate(0deg) translateY(-1.2%); }
}

/* Earn Your Turns — uphill trudge steps */
.pb-hiking img { transform-origin: 50% 96%; animation: pb-trudge 1.7s ease-in-out infinite; }
@keyframes pb-trudge {
  0%, 100% { transform: translateY(0) rotate(0.6deg); }
  24% { transform: translateY(-2.2%) rotate(-0.6deg); }
  48% { transform: translateY(0) rotate(0.6deg); }
  72% { transform: translateY(-2.2%) rotate(-0.6deg); }
}

/* Ready to Drop — knees flexing, breathing */
.pb-rider img { transform-origin: 50% 98%; animation: pb-flex 2.9s ease-in-out infinite; }
@keyframes pb-flex {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.015, 0.975) translateY(0.4%); }
}

/* The Cruiser — carving drift */
.pb-cruiser img { transform-origin: 50% 92%; animation: pb-carvedrift 4.4s ease-in-out infinite alternate; }
@keyframes pb-carvedrift {
  from { transform: rotate(-3.5deg) translateX(-2.5%); }
  to { transform: rotate(3.5deg) translateX(2.5%); }
}

/* Tail Press — teetering on the tail */
.pb-press img { transform-origin: 82% 94%; animation: pb-teeter 2.5s ease-in-out infinite alternate; }
@keyframes pb-teeter { from { transform: rotate(0deg); } to { transform: rotate(-3deg); } }

/* --- Tile-scale FX overlays --- */
.pfx-confetti {
  top: -4%; left: 14%; width: 5px; height: 5px; border-radius: 2px; background: var(--red);
  box-shadow: 32px 16px 0 var(--yellow), 74px 2px 0 var(--blue), 118px 26px 0 var(--aurora-green),
    158px 8px 0 var(--red), 52px 42px 0 var(--aurora-violet), 138px 52px 0 var(--yellow), 196px 30px 0 var(--blue);
  animation: pfx-confetti-fall 2.6s linear infinite;
}
@keyframes pfx-confetti-fall {
  0% { transform: translateY(-8%) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(300px) rotate(200deg); opacity: 0; }
}
.pfx-rain {
  top: -10%; left: 6%; width: 2px; height: 12px; border-radius: 2px;
  background: rgba(10, 106, 201, 0.4);
  box-shadow: 34px 22px 0 rgba(10, 106, 201, 0.3), 190px 10px 0 rgba(10, 106, 201, 0.34),
    226px 40px 0 rgba(10, 106, 201, 0.26), 262px 16px 0 rgba(10, 106, 201, 0.32), 148px -6px 0 rgba(10, 106, 201, 0.22);
  animation: pfx-rainfall 1.5s linear infinite;
}
@keyframes pfx-rainfall {
  0% { transform: translateY(-6%); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translateY(300px); opacity: 0.1; }
}
.pfx-stars {
  top: 8%; left: 10%; width: 4px; height: 4px; border-radius: 50%; background: var(--yellow);
  box-shadow: 38px 14px 0 var(--yellow), 90px -4px 0 -1px var(--red), 150px 18px 0 var(--yellow),
    200px 0 0 -1px var(--blue), 250px 22px 0 var(--yellow);
  animation: pfx-twinkle 2.2s ease-in-out infinite;
}
@keyframes pfx-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.2; transform: scale(0.8); } }
.pfx-dizzy {
  top: 13%; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  animation: pfx-orbit 2.4s linear infinite;
}
.pfx-dizzy::before, .pfx-dizzy::after {
  content: "✦"; position: absolute; font-size: 15px; color: var(--yellow); line-height: 1;
}
.pfx-dizzy::before { left: -34px; top: -4px; }
.pfx-dizzy::after { left: 28px; top: 2px; color: var(--red); font-size: 12px; }
@keyframes pfx-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.pfx-spray {
  bottom: 12%; left: 6%; width: 6px; height: 6px; border-radius: 50%; background: #DDEBF5;
  box-shadow: 14px -10px 0 -1px #CFE3F1, 28px -2px 0 #E4F0F8, 40px -14px 0 -2px #CFE3F1, 10px 6px 0 -1px #E4F0F8;
  animation: pfx-spray-puff 0.7s ease-out infinite;
}
@keyframes pfx-spray-puff {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-14px, -10px) scale(1.3); opacity: 0; }
}
.pfx-speed {
  left: 4%; top: 52%; width: 26%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(10, 106, 201, 0.45));
  box-shadow: 6px 12px 0 rgba(10, 106, 201, 0.3), 12px 24px 0 rgba(10, 106, 201, 0.18);
  animation: pfx-speed-pulse 1s ease-in-out infinite alternate;
}
@keyframes pfx-speed-pulse { from { opacity: 0.2; transform: scaleX(0.65); } to { opacity: 0.85; transform: scaleX(1); } }
.pfx-zzz { top: 6%; right: 10%; width: 1px; height: 1px; }
.pfx-zzz::before, .pfx-zzz::after {
  content: "z"; position: absolute; font-family: var(--font-display); font-weight: 800;
  color: var(--slate, #494949); opacity: 0;
}
.pfx-zzz::before { font-size: 15px; right: 0; animation: pfx-zrise 3.2s ease-out infinite; }
.pfx-zzz::after { font-size: 11px; right: 18px; animation: pfx-zrise 3.2s ease-out 1.6s infinite; }
@keyframes pfx-zrise {
  0% { transform: translateY(6px); opacity: 0; }
  20% { opacity: 0.85; }
  70% { transform: translateY(-16px) rotate(10deg); opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pose-box img, .pose-box .pfx, .pfx-dizzy::before, .pfx-dizzy::after,
  .pfx-zzz::before, .pfx-zzz::after { animation: none !important; }
}

/* ---------- My account ---------- */
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem; align-items: start; }
@media (max-width: 64rem) { .acct-grid { grid-template-columns: 1fr; } }
.acct-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.25rem); }
@media (max-width: 64rem) { .acct-side { position: static; } }
#acct-trips { display: grid; gap: 1rem; }
.acct-trip {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.35rem; display: grid; gap: 0.7rem;
}
.at-top { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.status-chip {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: var(--r-full);
}
.st-draft { background: var(--paper-deep); color: var(--text-soft); }
.st-review { background: #FFF1C2; color: #7A5E00; }
.st-quoted { background: #E4EEF8; color: var(--blue-deep); }
.st-confirmed { background: #D8F3E4; color: #0B6E4A; }
.at-del { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; color: var(--text-soft); transition: all var(--t-fast); }
.at-del:hover { background: var(--red-50); color: var(--red); }
.at-del .ic { width: 0.95rem; height: 0.95rem; }
.acct-trip h3 { font-size: 1.15rem; }
.at-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: center; font-size: 0.86rem; color: var(--text-soft); }
.at-meta .ic { width: 0.95rem; height: 0.95rem; }
.steps-mini { display: flex; list-style: none; padding: 0; margin: 0.2rem 0; }
.steps-mini li {
  flex: 1; position: relative; display: grid; justify-items: center; gap: 0.35rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-soft);
}
.steps-mini li i { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--line); z-index: 1; }
.steps-mini li::before { content: ""; position: absolute; top: 0.38rem; left: -50%; right: 50%; height: 2px; background: var(--line); }
.steps-mini li:first-child::before { display: none; }
.steps-mini li.done i, .steps-mini li.now i { background: var(--ai-gradient); }
.steps-mini li.done::before, .steps-mini li.now::before { background: var(--aurora-teal); }
.steps-mini li.now { color: var(--ink); }
.at-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.acct-empty {
  border: 1.5px dashed #BFD2E2; border-radius: var(--r-lg); background: #F7FBFE;
  display: grid; justify-items: center; gap: 0.6rem; text-align: center;
  padding: 2.2rem 1.5rem;
}
.acct-empty > .ic { width: 2rem; height: 2rem; color: var(--ai-c); }
.acct-empty b { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.acct-empty p { color: var(--text-soft); font-size: 0.92rem; max-width: 28rem; }

/* ---------- Guide articles ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 3.5rem; align-items: start; }
@media (max-width: 64rem) { .article-wrap { grid-template-columns: 1fr; } .article-toc { display: none; } }
.article-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); border-left: 2px solid var(--line); padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.article-toc b { font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); margin-bottom: 0.3rem; }
.article-toc a { color: var(--text-soft); font-size: 0.9rem; }
.article-toc a:hover { color: var(--blue); }

.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.7rem; font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.2rem); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h3 { margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose figure { margin-block: 1.9rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.prose figure img, .prose figure svg { width: 100%; height: auto; }
.prose figcaption { font-size: 0.83rem; color: var(--text-soft); padding: 0.75rem 1.1rem; background: var(--paper-deep); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th { text-align: left; font-family: var(--font-display); font-weight: 700; background: var(--night); color: var(--cream); padding: 0.75rem 0.95rem; }
.prose th:first-child { border-radius: var(--r-sm) 0 0 0; }
.prose th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.prose td { padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; background: #fff; }
.prose tr:nth-child(even) td { background: #FDFCF8; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; color: var(--text-soft); font-size: 0.88rem; margin-top: 0.8rem; }
.article-meta .ic { width: 1rem; height: 1rem; vertical-align: -2px; }
.table-scroll { overflow-x: auto; }

/* ---------- Destination pages ---------- */
.quickfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.qf { display: flex; gap: 0.95rem; align-items: center; background: var(--card); border-radius: var(--r-md); padding: 1.05rem 1.25rem; box-shadow: var(--shadow-sm); }
.qf .icon-tile { width: 2.7rem; height: 2.7rem; border-radius: var(--r-sm); }
.qf b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.qf span { font-size: 0.83rem; color: var(--text-soft); }
@media (max-width: 64rem) { .quickfacts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .quickfacts { grid-template-columns: 1fr; } }

.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.season { background: var(--card); border-radius: var(--r-lg); padding: 1.45rem; display: grid; gap: 0.5rem; align-content: start; box-shadow: var(--shadow-sm); }
.season .s-head { display: flex; align-items: center; gap: 0.6rem; }
.season .s-head .ic { color: var(--blue); }
.season h3 { font-size: 1.08rem; }
.season .months { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.season p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.55; }
.season.best { box-shadow: 0 0 0 3px var(--yellow), var(--shadow-md); position: relative; }
.season.best::after { content: "Top pick"; position: absolute; top: -0.75rem; right: 1rem; background: var(--yellow); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; padding: 0.22rem 0.65rem; border-radius: var(--r-full); }
@media (max-width: 64rem) { .season-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .season-grid { grid-template-columns: 1fr; } }

.mini-itin { position: relative; display: grid; gap: 0; }
.mi-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding-bottom: 1.6rem; }
.mi-item::before { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: 0.2rem; width: 2px; background: linear-gradient(180deg, #CFE2F4, var(--blue)); border-radius: 2px; }
.mi-item:last-child::before { display: none; }
.mi-dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; flex: none; z-index: 1; box-shadow: 0 0 0 4px #DCEBFA; }
.mi-body b { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.mi-body p { color: var(--text-soft); font-size: var(--fs-sm); margin-top: 0.15rem; }
.mi-body .mi-days { font-size: 0.76rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: start; }
@media (max-width: 64rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem); display: grid; gap: 1.1rem; }
.contact-side { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; box-shadow: var(--shadow-sm); }
.contact-item b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.contact-item span, .contact-item a.plain { color: var(--text-soft); font-size: var(--fs-sm); }

/* ---------- 404 ---------- */
.nf { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; text-align: center; position: relative; overflow: clip; }
.nf .inner { position: relative; z-index: 2; display: grid; gap: 1rem; justify-items: center; padding: 3rem 1.5rem; }
.nf img.lief { width: min(60vw, 17rem); animation: lief-carve 6s ease-in-out infinite; }
.nf .code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4.5rem, 11vw, 8rem); line-height: 1; letter-spacing: -0.02em;
  background: var(--ai-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf h1 { font-size: var(--fs-h2); color: #fff; }
.nf p { color: var(--text-inverse-soft); max-width: 34rem; }

/* ==========================================================================
   Design v2.1 — daylight hero, conversational AI input, photos, season bars
   ========================================================================== */

/* ---------- Light hero (bright Nordic day) ---------- */
.hero-light {
  background: linear-gradient(180deg, #B7DFF7 0%, #DFF1FC 52%, #F3FAFE 100%);
  color: var(--text);
}
/* Reserve only the panorama's busy band (water/meadow); copy may overlap the
   pale ridge and empty sky above it — that's the point of the layering. */
.hero-light .hero-inner { padding-bottom: clamp(3.5rem, 11vw, 7rem); }
.hero-light h1 { color: var(--ink); }
.hero-light h1 .hl { color: var(--red); }
.hero-light h1 .hl::after { background: linear-gradient(90deg, var(--aurora-teal), var(--blue)); }
.hero-light .lede { color: #47606F; }
.hero-light .hero-trust .titem { color: #55707F; }
.hero-light .hero-trust .titem b { color: var(--ink); }
.hero-light .hero-trust .titem .ic { color: var(--blue); }
/* Aspect-locked strip (scene is drawn at 1600×240 with an empty 40-unit sky):
   renders at natural height, and when the fold is short it only shrinks —
   the bottom-anchored cover crop then eats the empty sky, never the scenery. */
.hero-pan {
  position: relative; z-index: 1; pointer-events: none;
  width: 100%;
  aspect-ratio: 1600 / 240;
  min-height: 96px;
  overflow: hidden;
}
.hero-pan img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
}
/* Home hero: panorama layers BEHIND the copy at natural aspect — since the
   box ratio always equals the artwork ratio, no crop can occur at any size. */
.hero-light .hero-pan {
  position: absolute; inset: auto 0 0 0;
  height: auto; min-height: 0;
}
.hero-light .hero-inner { position: relative; z-index: 2; }

/* Panorama slideshow — sliding transition, left → right.
   The track holds four full-width slides [summer-copy, gold, winter, summer];
   starting at -75% (summer) it glides rightward: winter enters from the left,
   then gold, then the summer copy — and the loop restart lands on identical
   pixels, so the cycle is seamless. Hold ≈7s, glide ≈1.9s. */
.pan-track {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 400%;
  display: flex;
  transform: translateX(-75%);
  animation: pan-slide 27s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: transform;
}
.pan-track .pan-layer {
  position: relative; inset: auto;
  width: 25%; height: 100%; flex: none;
  object-fit: cover; object-position: center bottom;
}
@keyframes pan-slide {
  0%, 26%   { transform: translateX(-75%); } /* summer */
  33%, 59%  { transform: translateX(-50%); } /* winter */
  66%, 92%  { transform: translateX(-25%); } /* midnight sun */
  99%, 100% { transform: translateX(0%); }   /* summer copy → seamless loop */
}
@media (prefers-reduced-motion: reduce) {
  .pan-track { animation: none; transform: translateX(-75%); }
}
.hero-light .lief-stage .lief { filter: drop-shadow(0 30px 36px rgba(13, 27, 38, 0.28)); }
.hero-light .lief-spray i { background: #FFFFFF; box-shadow: 0 1px 3px rgba(13,27,38,0.15); }
.hero-light .lief-streaks i { background: linear-gradient(90deg, transparent, rgba(10, 106, 201, 0.4)); }
.float-chip.light {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 27, 38, 0.08);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.float-chip.light .ic { color: var(--red); }

/* Hero prompt — talk to Lief from the very first screen */
.hero-prompt {
  width: 100%; max-width: 36rem;
  background: #fff;
  border: 1.5px solid rgba(13, 27, 38, 0.1);
  border-radius: var(--r-full);
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.hero-prompt:focus-within { border-color: var(--ai-c); box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.18), var(--shadow-lg); }
.hero-prompt .ic-lief { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; }
.hero-prompt input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 0.98rem; color: var(--ink);
}
.hero-prompt input::placeholder { color: #7E93A2; }
.hero-prompt .btn { flex: none; }
.hero-try { font-size: 0.85rem; color: #55707F; }
.hero-try button {
  color: var(--blue-deep); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; margin-left: 0.4rem;
}
.hero-try button:hover { color: var(--red); }

/* ---------- Conversational planner ("talk to Lief") ---------- */
.plan-panel { display: none; }
.plan-panel.active { display: block; animation: step-in 420ms var(--ease-out); }
.talk-box {
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--r-lg);
  background:
    linear-gradient(#FDFEFF, #FDFEFF) padding-box,
    var(--ai-gradient) border-box;
  padding: 1.1rem 1.2rem 0.9rem;
}
.talk-box textarea {
  width: 100%; border: 0; outline: none; background: none; resize: none;
  font: inherit; font-size: 1.06rem; line-height: 1.6; color: var(--ink);
  min-height: 6.2rem;
}
.talk-box textarea::placeholder { color: #8FA3B0; }
.talk-tools { display: flex; align-items: center; gap: 0.6rem; border-top: 1px dashed var(--line); padding-top: 0.75rem; margin-top: 0.4rem; }
.talk-tools .spacer { flex: 1; }
.talk-mic {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.6rem; padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--text-soft);
  transition: all var(--t-fast);
}
.talk-mic:hover { border-color: var(--ai-c); color: var(--ai-c); }
.talk-mic .rec-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.talk-mic[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: var(--red-50); }
.talk-mic[aria-pressed="true"] .rec-dot { animation: rec-pulse 1s ease-in-out infinite; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }
.talk-examples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.talk-examples button {
  padding: 0.45rem 0.9rem; border-radius: var(--r-full);
  border: 1.5px dashed #BFD2E2; background: #F7FBFE;
  font-size: 0.85rem; color: #47606F;
  transition: all var(--t-fast);
  text-align: left;
}
.talk-examples button:hover { border-color: var(--ai-c); color: var(--blue-deep); background: #EFF6FD; }
.talk-alt { margin-top: 1.3rem; font-size: 0.9rem; color: var(--text-soft); }
.talk-alt button { color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.talk-alt button:hover { color: var(--red); }

/* "Here's what I heard" interpretation */
.interp-intro { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.interp-intro .lief-badge {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(#EAF6FF, #EAF6FF) padding-box, var(--ai-gradient) border-box;
  border: 2px solid transparent;
}
.interp-intro .lief-badge img { width: 2.6rem; }
.interp-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.interp-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--r-full);
  background: #F1F7FD;
  border: 1.5px solid #D5E5F4;
  font-size: 0.92rem; font-weight: 600; color: var(--blue-deep);
}
.interp-chip .ic { width: 1.05rem; height: 1.05rem; }
.interp-chip small { font-weight: 500; color: #7E93A2; }
.interp-chip.assumed { border-style: dashed; background: #FBF9F2; color: var(--text-soft); }
.interp-note { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.interp-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Season bar (best months) ---------- */
.season-bar { display: grid; gap: 0.3rem; margin-top: 0.5rem; }
.season-bar .cells { display: flex; gap: 3px; }
.season-bar .cells i { height: 7px; flex: 1; border-radius: 3px; background: var(--line-soft); }
.season-bar .cells i.on { background: linear-gradient(90deg, var(--aurora-teal), var(--blue)); }
.season-bar .lab { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-soft); text-transform: uppercase; }
.tagrow { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.22rem 0.65rem; border-radius: var(--r-full);
  background: var(--paper-deep); color: var(--text-soft);
  font-size: 0.76rem; font-weight: 700;
}

/* ---------- Photo × illustration slideshow ---------- */
/* The illustration is the base layer; the real photo crossfades over it in a
   slow cycle and shows fully on hover/focus. Both worlds, no dead frames. */
.photo-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.photo-layer.cycle {
  animation:
    photo-cycle 12s ease-in-out 2.5s infinite,
    photo-kenburns 12s ease-in-out 2.5s infinite; /* slow drift while visible */
}
@keyframes photo-cycle {
  0%, 34% { opacity: 0; }
  46%, 86% { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@keyframes photo-kenburns {
  0%, 34% { transform: scale(1.1) translateX(1.5%); }
  86%, 100% { transform: scale(1) translateX(0); }
}
a.card:hover .photo-layer, a.card:focus-visible .photo-layer,
.ph-media:hover .photo-layer {
  animation: none;
  opacity: 1;
  transition: opacity 450ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .photo-layer.cycle { animation: none; } /* hover/focus still reveals the photo */
}

/* ---------- Light split hero (destinations & experiences) ---------- */
.page-hero-light {
  position: relative;
  background: linear-gradient(180deg, #B7DFF7 0%, #E4F3FC 58%, var(--paper) 100%);
  overflow: clip;
}
.page-hero-light .container {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 2.2rem + 2.4vw, 5rem);
}
.ph-copy { display: grid; gap: 1.1rem; justify-items: start; }
.page-hero-light h1 { color: var(--ink); font-size: var(--fs-h1); }
.page-hero-light .lede { color: #47606F; }
.page-hero-light .crumbs { color: #55707F; }
.page-hero-light .crumbs a { color: #55707F; }
.page-hero-light .crumbs [aria-current] { color: var(--ink); }
.ph-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10; /* matches the scene illustrations exactly — no crop */
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--night-2);
}
.ph-media > img { width: 100%; height: 100%; object-fit: cover; }
.ph-media .chip { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
@media (max-width: 64rem) {
  .page-hero-light .container { grid-template-columns: 1fr; }
}

/* Hub variant: single-column copy + full-width panorama strip (like home). */
.hub-hero .container { grid-template-columns: 1fr; padding-bottom: 1.25rem; }
.hub-hero .ph-copy { max-width: 46rem; }
/* No fold constraint here: always the full scene at natural aspect. */
.hub-hero .hero-pan { aspect-ratio: 1600 / 240; height: auto; min-height: 0; }

/* ---------- Home hero: fit the viewport (desktop) ---------- */
@media (min-width: 64.01rem) {
  /* Hero + the marquee below it share the first viewport (3.5rem ≈ marquee). */
  .hero-light {
    display: flex; flex-direction: column;
    min-height: calc(100svh - var(--header-h) - 3.5rem);
    max-height: calc(100svh - var(--header-h) - 3.5rem);
  }
  .hero-light .hero-inner {
    flex: none;
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
    margin-block: auto; /* centers copy in the space above the busy band */
    padding-top: 0.875rem;
  }
  .hero-light .hero-copy { gap: clamp(0.7rem, 1.6vh, 1.3rem); }
  .hero-light .lief-stage { width: min(84%, 26rem, 42vh); }
  .hero-light h1 { font-size: min(var(--fs-hero), 7.8vh); }
  .hero-light .lede { font-size: min(1.2rem, 2.6vh); }
}
@media (min-width: 64.01rem) and (max-height: 46rem) {
  .hero-light .hero-copy { gap: 0.9rem; }
  .hero-light .lede { font-size: 1.02rem; }
  .hero-try { display: none; }
  .hero-light .hero-trust { margin-top: 0.4rem; }
}
@media (min-width: 64.01rem) and (max-height: 36rem) {
  .hero-light .hero-trust { display: none; }
  .hero-light .float-chip { display: none; }
}

/* ---------- Planner page: no hero, straight to the action ---------- */
.planner-intro {
  background: linear-gradient(180deg, #DFF0FB 0%, var(--paper) 100%);
  padding-block: 1.9rem 0.4rem;
}
.planner-intro .container { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.planner-intro .lief-badge {
  width: 3.8rem; height: 3.8rem; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(#fff, #fff) padding-box, var(--ai-gradient) border-box;
  border: 2px solid transparent;
}
.planner-intro .lief-badge img { width: 2.9rem; }
.planner-intro h1 { font-size: clamp(1.6rem, 1.35rem + 1.3vw, 2.3rem); }
.planner-intro p { color: var(--text-soft); font-size: 0.98rem; margin-top: 0.15rem; }
.planner-intro .spacer { flex: 1; }
.planner-intro .trust-mini { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--text-soft); }
.planner-intro .trust-mini .ic { color: var(--yellow); }

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 2rem;
  align-items: start;
}
.plan-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.25rem); }
.plan-aside .value-card { padding: 1.25rem 1.35rem; gap: 0.5rem; }
.plan-aside .value-card h3 { font-size: 1.02rem; }
.plan-aside .value-card p { font-size: 0.86rem; }
@media (max-width: 64rem) {
  .planner-layout { grid-template-columns: 1fr; }
  .plan-aside { position: static; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .plan-nav, .itin-actions, .hero-scene,
  .aurora, .stars, .snowfall, .crumbs, .lief-tip .lief-badge, .article-toc, .marquee,
  .nstep, .stop-remove, .addstop, .trip-bar, .sum-reset, .trip-summary .btn,
  .act-opt:not(.sel), .stay-opt:not(.sel) { display: none !important; }
  .trip-grid { grid-template-columns: 1fr; }
  .trip-summary { position: static; border: 1px solid #ccc; box-shadow: none; }
  body { background: #fff; color: #000; }
  .planner-card { box-shadow: none; border: 0; padding: 0; }
  .itin-day { break-inside: avoid; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
