/* ==========================================================================
   Smoky Mountain atmosphere (palette B and friends; colors come from palette.css).
   Soft mist and fog, faint ridge lines fading into blue haze, haze between sections, and a whisper of grain.
   Performance: CSS gradients and two tiny inline SVGs only. No images, no blur filters. The one animation (hero fog
   drift) moves a single layer with transform, so it stays on the GPU. Reduced Motion turns it off.
   Contrast: every fog layer sits UNDER the text (z-index below .hero-inner/.container) and is faint; the contrast test
   in tests/browser_flow.py (run_atmosphere) samples real pixels behind the text to keep WCAG AA.
   ========================================================================== */
:root{
  /* fine grain: white specks with alpha from the noise (avg ~4%); tile is rasterized once */
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .085 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* faint ridge silhouettes for section bottoms: two layered ridges, mist fill + a hairline of champagne */
  --ridges:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 92 C120 70 210 52 330 66 S560 112 700 84 S930 30 1060 48 S1300 98 1440 70 V160 H0Z' fill='%23C4D6D6' fill-opacity='.035'/%3E%3Cpath d='M0 124 C150 104 260 96 400 108 S650 142 820 118 S1080 84 1230 100 S1380 120 1440 112 V160 H0Z' fill='%23C4D6D6' fill-opacity='.045'/%3E%3Cpath d='M0 92 C120 70 210 52 330 66 S560 112 700 84 S930 30 1060 48 S1300 98 1440 70' fill='none' stroke='%23E2CD9C' stroke-opacity='.10' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
html{background:var(--bg-0)}
body{background:radial-gradient(ellipse 140% 42% at 50% 0%,rgba(var(--haze-rgb),.10),transparent 62%),var(--grain),var(--bg-0)}

/* ---------------------------------------------------------------- hero: blue haze between the ridges */
.hero-shade{background:linear-gradient(180deg,rgba(var(--bg-rgb),.62) 0%,rgba(var(--bg-rgb),.38) 34%,rgba(var(--bg-rgb),.5) 64%,var(--bg-0) 100%)}
.hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(ellipse 110% 34% at 50% 74%,rgba(var(--mist-rgb),calc(.13 * var(--fog-strength))),transparent 72%),
    linear-gradient(180deg,transparent 30%,rgba(var(--haze-rgb),calc(.12 * var(--fog-strength))) 47%,rgba(var(--haze-rgb),calc(.05 * var(--fog-strength))) 60%,transparent 70%),
    linear-gradient(180deg,rgba(var(--bg-2-rgb),.40) 0%,rgba(var(--bg-2-rgb),.30) 55%,rgba(var(--haze-rgb),.07) 80%,transparent 100%)}
/* drifting fog bank: one 200%-wide layer, moved with transform only */
.hero::after{content:"";position:absolute;left:0;bottom:0;width:200%;height:48%;z-index:1;pointer-events:none;
  background:
    radial-gradient(ellipse 22% 38% at 12% 62%,rgba(var(--mist-rgb),calc(.2 * var(--fog-strength))),transparent 70%),
    radial-gradient(ellipse 18% 30% at 34% 48%,rgba(var(--mist-rgb),calc(.10 * var(--fog-strength))),transparent 70%),
    radial-gradient(ellipse 26% 34% at 58% 66%,rgba(var(--mist-rgb),calc(.19 * var(--fog-strength))),transparent 70%),
    radial-gradient(ellipse 20% 30% at 82% 52%,rgba(var(--mist-rgb),calc(.10 * var(--fog-strength))),transparent 70%);
  background-size:50% 100%;background-repeat:repeat-x;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 35%,#000 80%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 35%,#000 80%,transparent 100%);
  animation:pfmFog 140s linear infinite;will-change:transform}
@keyframes pfmFog{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
/* ridge layers re-colored from the palette: far ridges palest (deepest in the haze), near ridges darkest */
#rgFar stop:nth-child(1){stop-color:var(--ridge-1);stop-opacity:.55}
#rgFar stop:nth-child(2){stop-color:var(--ridge-2);stop-opacity:.55}
#rgFar stop:nth-child(3){stop-color:var(--ridge-3);stop-opacity:.75}
#rgMid stop:nth-child(1){stop-color:var(--ridge-2)}
#rgMid stop:nth-child(2){stop-color:var(--ridge-3)}
#rgMid stop:nth-child(3){stop-color:var(--ridge-4)}
#rgNear stop{stop-color:var(--ridge-4)}
.ridge-edge{stroke:var(--gold-light)}
#flightGold stop{stop-color:var(--gold-light)}
.hero-flightpath path:first-child{stroke:var(--gold)}
.hero .pv-hero-shade{background:linear-gradient(180deg,rgba(var(--bg-rgb),.42),rgba(var(--bg-2-rgb),.2) 40%,rgba(var(--bg-rgb),.86))}

/* ---------------------------------------------------------------- sections fade through haze */
.section::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(var(--mist-rgb),.05) 0,transparent 150px),
    linear-gradient(0deg,rgba(var(--haze-rgb),.045) 0,transparent 170px)}
.section-tint::after,.section-dark::after,#area::after{
  background:var(--ridges) center bottom/100% 130px no-repeat,
    linear-gradient(180deg,rgba(var(--mist-rgb),.05) 0,transparent 150px),
    linear-gradient(0deg,rgba(var(--haze-rgb),.05) 0,transparent 190px)}
.trust-bar{background:linear-gradient(180deg,var(--bg-0),var(--bg-1))}
.site-footer{background:var(--ridges) center top/100% 110px no-repeat,linear-gradient(180deg,var(--bg-1),var(--surface-0) 60%)}

/* ---------------------------------------------------------------- inner pages (booking, policies, tracker, delivery, reschedule) */
.book-hero,.rs-hero,.dl-hero,.trk-hero{position:relative}
.book-hero::after{content:"";position:absolute;left:0;right:0;bottom:-40px;height:150px;z-index:-1;pointer-events:none;
  background:var(--ridges) center bottom/100% 120px no-repeat,radial-gradient(ellipse 80% 70% at 50% 100%,rgba(var(--haze-rgb),.08),transparent 70%)}
.book-hero{isolation:isolate}

/* ---------------------------------------------------------------- comfort + performance */
@media (prefers-reduced-motion:reduce){.hero::after{animation:none;transform:none}}
@media (max-width:640px){.hero::after{height:42%;animation-duration:110s}}
html.no-parallax .hero::after{animation:none}
@media print{.hero::before,.hero::after,.section::after{display:none}body{background:#fff}}

/* legibility over the fog: small hero copy uses full ivory */
.hero .pv-promise li,.hero .hero-note{color:var(--text)}
