/* BamBamBikes marketing site: shared look for every page built from tools/site/.
   Dark workshop base led by hazard yellow; the accents are the five colours of the
   Buddhist flag (blue, yellow, red, white, orange), which Rahul follows.
   Same type family as the built trip-experience.html so both halves read as one brand. */

@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
}

:root{
  --ink:#0d1220;
  --ink-2:#121a2c;
  --ink-3:#19233a;
  --panel:#141d33;
  --line:rgba(255,255,255,.1);
  --line-strong:rgba(255,255,255,.22);
  --text:#f3f1ea;
  --text-dim:#b2b9cc;
  --text-faint:#868fac;
  --accent:#ffd23c;
  --accent-hi:#ffdf6b;
  --accent-2:#ff5a47;
  --accent-3:#35b6f2;
  --accent-4:#ff9a2e;
  /* the five colours of the Buddhist flag, in its order: blue, yellow, red, white, orange */
  --flag:var(--accent-3),var(--accent),var(--accent-2),#f3f1ea,var(--accent-4);
  --accent-ink:#1c1304;
  --radius:16px;
  --maxw:1180px;
  --header-h:92px;
  --rail-w:76px;
  /* side padding of every container: at least 24px, and wide enough to clear the side
     rail (18px offset + rail + 18px) on screens where the centred column would sit under it */
  --gutter:max(24px,calc(112px - max(0px,(100vw - var(--maxw)) / 2)));
  --display:"Barlow Condensed","Barlow",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,monospace;
}
@media (max-width:860px){
  :root{--header-h:72px;--gutter:20px}
}

/* ---- base ---- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
}
body{
  margin:0;
  background:
    radial-gradient(ellipse 90% 50% at 15% 0%,rgba(255,90,71,.09),transparent 60%),
    radial-gradient(ellipse 70% 45% at 100% 20%,rgba(255,210,60,.07),transparent 60%),
    linear-gradient(180deg,#141b30 0%,var(--ink) 40%,#0a0e19 100%);
  background-repeat:no-repeat;
  background-color:#0a0e19;
  color:var(--text);
  font-family:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3{font-family:var(--display);color:#fff;margin:0 0 .4em;letter-spacing:.01em;text-wrap:balance}
h1,h2{font-weight:800;text-transform:uppercase;line-height:.98}
h1{font-size:clamp(2.9rem,6.6vw,5.4rem)}
h2{font-size:clamp(2rem,4.2vw,3.2rem)}
h3{font-size:1.4rem;font-weight:700;line-height:1.1}
p{margin:0 0 1em}
a{color:inherit}
img{max-width:100%;display:block}
:focus{outline:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* one light, consistent grade so photos from different days read as one set */
.hero-photo img,.card-media img,.photo-panel img,.row-media img,.door img,.insta-tile img,.tilt-card img{
  filter:saturate(1.08) contrast(1.05) brightness(.97);
}

/* ---- loading mark: floats over the page while it loads, then fades. The page stays
   visible and usable underneath, so loading never looks like a pause. The second
   animation hides the mark after a few seconds even if the script never runs ---- */
.loader{
  position:fixed;inset:0;z-index:200;display:grid;place-items:center;pointer-events:none;
  background:radial-gradient(circle at center,rgba(13,18,32,.72) 0,rgba(13,18,32,.35) 150px,transparent 260px);
  transition:opacity .6s ease,visibility 0s .6s;animation:loaderGiveUp .5s ease 5s forwards;
}
.loader svg{opacity:.6;filter:drop-shadow(0 6px 22px rgba(0,0,0,.6));animation:loaderBreathe 2.4s ease-in-out infinite alternate}
.loader-rings{transform-origin:100px 100px;animation:loaderTurn 14s linear infinite}
.loader.is-done{opacity:0;visibility:hidden;pointer-events:none}
@keyframes loaderBreathe{to{opacity:.85;scale:1.04}}
@keyframes loaderTurn{to{transform:rotate(360deg)}}
@keyframes loaderGiveUp{to{opacity:0;visibility:hidden}}

.skip-link{
  position:fixed;top:-60px;left:12px;z-index:100;
  background:var(--accent);color:var(--accent-ink);
  padding:.8em 1.2em;border-radius:10px;font-weight:700;text-decoration:none;
  transition:top .15s ease;
}
.skip-link:focus{top:12px}

.bbsite-container{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.eyebrow{
  display:inline-flex;align-items:center;gap:.6em;margin:0 0 1em;
  font-family:var(--mono);font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);
}
.eyebrow::before{content:"";width:34px;height:3px;background:linear-gradient(90deg,var(--flag))}
.lead{font-size:1.14rem;color:var(--text-dim);max-width:56ch}
.text-link{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.note{margin-top:1.8em;color:var(--text-dim)}

/* ---- buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  min-height:50px;padding:.8em 1.6em;border-radius:999px;border:1px solid transparent;
  font-family:var(--display);font-weight:700;font-size:1.08rem;letter-spacing:.05em;text-transform:uppercase;
  text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:translate .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.btn:hover{translate:0 -2px}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{background:var(--accent-hi);box-shadow:0 10px 26px -8px rgba(255,210,60,.6)}
.btn-ghost{color:var(--text);border-color:var(--line-strong);background:rgba(13,18,32,.35)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn-ink{background:var(--ink);color:#fff}
.btn-ink:hover{background:#000;box-shadow:0 10px 26px -10px rgba(0,0,0,.7)}
.btn-ink-ghost{color:var(--accent-ink);border-color:rgba(28,19,4,.55)}
.btn-ink-ghost:hover{background:rgba(28,19,4,.1)}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:1.8em}

/* ---- header: shown at the top of the page, slides away once you scroll ---- */
.bbsite-header{
  position:sticky;top:0;z-index:50;height:var(--header-h);
  display:flex;align-items:center;
  transition:top .35s ease;
  /* no backdrop-filter or transform on this element itself: either would make it the
     containing block for the fixed mobile menu panel inside it and clip the panel */
}
.bbsite-header::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(13,18,32,.86),rgba(13,18,32,.62));
  backdrop-filter:blur(16px) saturate(150%);-webkit-backdrop-filter:blur(16px) saturate(150%);
  border-bottom:1px solid var(--line);
}
.bbsite-header.is-away{top:calc(-1 * var(--header-h) - 12px)}
.bbsite-header-inner{
  width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.bbsite-brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.bbsite-logo{height:68px;width:auto;transition:rotate .3s ease,scale .3s ease}
.bbsite-brand:hover .bbsite-logo{rotate:-6deg;scale:1.06}
.bbsite-wordmark{display:flex;flex-direction:column}
.bbsite-wordmark b{font:800 1.6rem/1 var(--display);letter-spacing:.02em;text-transform:uppercase;color:#fff}
.bbsite-wordmark em{font-style:normal;color:var(--accent)}
.bbsite-wordmark small{margin-top:6px;font:700 .58rem/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--text-faint)}
.bbsite-nav{display:flex;align-items:center;gap:2px}
.bbsite-nav a{
  position:relative;padding:.55em .8em;text-decoration:none;
  font:600 1.08rem/1 var(--display);letter-spacing:.06em;text-transform:uppercase;color:var(--text-dim);
  transition:color .15s ease;
}
.bbsite-nav a::after{
  content:"";position:absolute;left:.8em;right:.8em;bottom:.1em;height:3px;background:var(--accent);
  scale:0 1;transform-origin:left;transition:scale .25s ease;
}
.bbsite-nav a:hover{color:#fff}
.bbsite-nav a:hover::after,.bbsite-nav a.is-active::after{scale:1 1}
.bbsite-nav a.is-active{color:#fff}
.bbsite-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.bbsite-cta{min-height:44px;padding:.5em 1.2em;font-size:1rem}
.bbsite-social{
  width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--text);
  border:1px solid var(--line-strong);transition:color .15s ease,border-color .15s ease,translate .15s ease;
}
.bbsite-social svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bbsite-social:hover{color:var(--accent);border-color:var(--accent);translate:0 -2px}
.bbsite-nav .nav-ext{display:none} /* the header shows icons instead; these appear in the phone menu */
.bbsite-burger{
  display:none;width:46px;height:46px;border-radius:12px;border:1px solid var(--line-strong);
  background:transparent;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.bbsite-burger span{width:20px;height:2px;background:#fff;transition:transform .2s ease,opacity .2s ease}
.bbsite-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.bbsite-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.bbsite-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media (max-width:1120px){.bbsite-wordmark{display:none}}
@media (max-width:960px){.bbsite-cta{display:none}}
@media (max-width:860px){
  .bbsite-logo{height:52px}
  .bbsite-nav{
    position:fixed;inset:var(--header-h) 0 0 0;
    flex-direction:column;align-items:stretch;gap:0;padding:12px 20px;
    background:rgba(13,18,32,.98);
    transform:translateY(-8px);opacity:0;visibility:hidden;
    transition:transform .2s ease,opacity .2s ease,visibility 0s .2s;
  }
  .bbsite-nav.is-open{transform:none;opacity:1;visibility:visible;transition-delay:0s}
  .bbsite-nav a{padding:1em .2em;font-size:1.5rem;border-bottom:1px solid var(--line)}
  .bbsite-nav a::after{display:none}
  .bbsite-nav a{border-left:4px solid var(--c);padding-left:.7em}
  .bbsite-nav a.is-active{color:var(--c)}
  .bbsite-nav .nav-ext{display:block}
  .bbsite-burger{display:flex}
}

/* a static five-colour strip under the header */
.hazard-stripe{ /* a line of prayer flags: under the header at first, then pinned to the top of the screen once the header slides away */
  position:sticky;top:var(--header-h);z-index:49;height:4px;transition:top .35s ease;
  background:repeating-linear-gradient(90deg,var(--accent-3) 0 56px,var(--accent) 56px 112px,var(--accent-2) 112px 168px,#f3f1ea 168px 224px,var(--accent-4) 224px 280px);
  box-shadow:0 6px 18px -8px rgba(0,0,0,.7);filter:saturate(.62) brightness(.78);
}
.bbsite-header.is-away + .hazard-stripe{top:0}

/* ---- side rail: the menu once the header has slid away (desktop and tablet) ---- */
.rail{
  position:fixed;left:18px;top:50%;z-index:55;width:var(--rail-w);padding:12px 8px;
  display:flex;flex-direction:column;align-items:center;gap:3px;border-radius:28px;
  /* gloss over a dark tint, so the labels stay readable on photos and on the yellow band */
  background:linear-gradient(165deg,rgba(255,255,255,.2),rgba(255,255,255,.05) 40%,rgba(255,255,255,.02)),rgba(13,18,32,.78);
  backdrop-filter:blur(20px) saturate(170%);-webkit-backdrop-filter:blur(20px) saturate(170%);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),inset 0 -1px 0 rgba(0,0,0,.3),0 24px 48px -16px rgba(0,0,0,.75);
  translate:-150% -50%;opacity:0;visibility:hidden;
  transition:translate .5s cubic-bezier(.2,.8,.2,1),opacity .3s ease,visibility 0s .5s;
}
.rail::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,transparent 28%,rgba(255,255,255,.13) 44%,transparent 58%);
}
body.is-scrolled .rail{translate:0 -50%;opacity:1;visibility:visible;transition-delay:0s}
.rail a{
  position:relative;width:100%;padding:8px 0 7px;border-radius:16px;
  display:flex;flex-direction:column;align-items:center;gap:4px;
  font:700 .6rem/1 var(--mono);letter-spacing:.04em;text-transform:uppercase;text-decoration:none;
  color:var(--text-dim);transition:color .15s ease,background .15s ease,scale .15s ease;
}
.rail a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rail a:hover{color:#fff;background:rgba(255,255,255,.12);scale:1.05}
.rail a.is-active{color:var(--accent-ink);background:var(--accent)}
.rail .rail-logo{padding:4px 0 8px}
.rail .rail-logo:hover{background:none}
.rail-logo img{width:52px;height:auto}
.rail-sep{width:56%;height:1px;margin:5px 0;background:var(--line-strong)}
.rail-rev{width:52px;margin-top:2px;color:var(--text-faint);font:700 .5rem/1 var(--mono);letter-spacing:.12em;text-align:center}
.rail-rev svg{display:block;width:100%;height:auto;fill:none;stroke-width:3;stroke-linecap:round}
.rail-rev .rev-needle{stroke:var(--text);stroke-width:2;transform-box:view-box;transform-origin:30px 32px;transform:rotate(-78deg)}
/* glow: a slow-moving gradient edge and a soft halo on the rail, lit states on its items */
.rail{box-shadow:inset 0 1px 0 rgba(255,255,255,.32),inset 0 -1px 0 rgba(0,0,0,.3),0 24px 48px -16px rgba(0,0,0,.75),0 0 28px -10px rgba(255,210,60,.28)}
.rail::after{
  content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;
  background:linear-gradient(180deg,var(--flag),var(--accent-3)) 0 0/100% 300%;
  -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 exclude,linear-gradient(#000 0 0);
  animation:edgeFlow 7s linear infinite;opacity:.5;
}
@keyframes edgeFlow{to{background-position:0 300%}}
.rail::before{background-size:100% 260%;animation:sheenSweep 6s ease-in-out infinite}
@keyframes sheenSweep{0%,60%{background-position:0 120%}100%{background-position:0 -160%}}
.rail a:hover svg{filter:drop-shadow(0 0 6px rgba(255,210,60,.9));color:var(--accent)}
.rail a.is-active{box-shadow:0 0 20px -2px rgba(255,210,60,.75)}
.rail a.is-active:hover svg{filter:none;color:inherit}

/* the same light on the top menu: a flowing line under the bar, lit links, a breathing button */
.bbsite-header::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--flag),transparent) 0 0/200% 100%;
  box-shadow:0 0 10px 0 rgba(255,210,60,.22);animation:lineFlow 8s linear infinite;opacity:.55;
}
@keyframes lineFlow{to{background-position:200% 0}}
.bbsite-nav a:hover,.bbsite-nav a.is-active{text-shadow:0 0 16px rgba(255,210,60,.65)}
.bbsite-nav a::after{box-shadow:0 0 12px 1px rgba(255,210,60,.8)}
.bbsite-social:hover{box-shadow:0 0 18px -2px rgba(255,210,60,.7)}
.bbsite-cta{animation:ctaBreathe 3.6s ease-in-out infinite}
@keyframes ctaBreathe{50%{box-shadow:0 0 26px -2px rgba(255,210,60,.75)}}

/* each menu entry takes one of the five flag colours, in order */
/* menus use softened versions of the flag colours, so they read as tints, not signals */
:root{
  --soft-blue:color-mix(in oklab,var(--accent-3) 58%,#8c95ae);
  --soft-yellow:color-mix(in oklab,var(--accent) 58%,#8c95ae);
  --soft-red:color-mix(in oklab,var(--accent-2) 58%,#8c95ae);
  --soft-white:#c9cbd3;
  --soft-orange:color-mix(in oklab,var(--accent-4) 58%,#8c95ae);
}
.bbsite-nav a,.rail a,.bbsite-social{--c:var(--soft-yellow)}
.bbsite-nav a:nth-child(5n+1),.rail a:nth-of-type(5n+2){--c:var(--soft-blue)}
.bbsite-nav a:nth-child(5n+2),.rail a:nth-of-type(5n+3){--c:var(--soft-yellow)}
.bbsite-nav a:nth-child(5n+3),.rail a:nth-of-type(5n+4){--c:var(--soft-red)}
.bbsite-nav a:nth-child(5n+4),.rail a:nth-of-type(5n+5){--c:var(--soft-white)}
.bbsite-nav a:nth-child(5n),.rail a:nth-of-type(5n+1){--c:var(--soft-orange)}
.bbsite-social:nth-of-type(1){--c:var(--soft-orange)}
.bbsite-social:nth-of-type(2){--c:var(--soft-red)}
.rail a svg{color:var(--c)}
.rail a:hover{color:var(--c)}
.rail a:hover svg{color:var(--c);filter:drop-shadow(0 0 5px color-mix(in srgb,var(--c) 60%,transparent))}
.rail a.is-active{background:var(--c);color:var(--accent-ink);box-shadow:0 0 16px -4px var(--c)}
.rail a.is-active svg,.rail a.is-active:hover svg{color:var(--accent-ink);filter:none}
.bbsite-nav a::after{background:var(--c);box-shadow:0 0 8px 0 color-mix(in srgb,var(--c) 55%,transparent)}
.bbsite-nav a:hover{color:var(--c);text-shadow:0 0 12px color-mix(in srgb,var(--c) 45%,transparent)}
.bbsite-nav a.is-active{text-shadow:0 0 12px color-mix(in srgb,var(--c) 45%,transparent)}
.bbsite-social{color:var(--c)}
.bbsite-social:hover{color:var(--c);border-color:var(--c);box-shadow:0 0 12px -3px var(--c)}

@media (max-width:860px){.rail{display:none}}
@media (max-height:760px){.rail-rev{display:none}}
@media (max-height:660px){.rail-sep,.rail .rail-ext{display:none}}

/* ---- hero ---- */
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;min-height:min(84vh,760px);padding:64px 0 108px;
}
.hero + section{padding-top:64px}
.hero--short{min-height:min(66vh,600px)}
.hero::before{ /* contour lines, the same texture the route map uses */
  content:"";position:absolute;inset:0;z-index:-3;opacity:.08;
  background:url("../contours_w.svg") center/cover;
  -webkit-mask-image:linear-gradient(90deg,#000 20%,transparent 75%);mask-image:linear-gradient(90deg,#000 20%,transparent 75%);
}
.hero::after{ /* one huge outlined word per page; drifts sideways as you scroll */
  content:attr(data-word);position:absolute;left:-.03em;bottom:-.19em;z-index:-1;pointer-events:none;
  font:800 clamp(6.5rem,20vw,19rem)/1 var(--display);letter-spacing:-.01em;text-transform:uppercase;white-space:nowrap;
  color:transparent;-webkit-text-stroke:1.5px rgba(243,241,234,.13);
  transform:translate3d(calc(var(--hero-shift,0) * -1px),0,0);
}
.hero-photo{ /* blended into the page on every edge that isn't the viewport's */
  position:absolute;inset:0 0 0 auto;width:min(66%,1020px);z-index:-2;
  -webkit-mask-image:linear-gradient(90deg,transparent 2%,rgba(0,0,0,.5) 26%,#000 50%,#000 86%,transparent),linear-gradient(180deg,#000 55%,transparent 96%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 2%,rgba(0,0,0,.5) 26%,#000 50%,#000 86%,transparent),linear-gradient(180deg,#000 55%,transparent 96%);
  mask-composite:intersect;
}
.hero-photo img{
  width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 50%);
  scale:1.1;translate:var(--px,0px) var(--py,0px);
  animation:heroBreathe 18s ease-in-out infinite alternate;
}
@keyframes heroBreathe{to{scale:1.17}}
.hero > .bbsite-container{width:100%} /* a flex child would otherwise shrink and drift off the page's left edge */
.hero-copy{position:relative;max-width:640px}
.hero h1{margin-bottom:.4em;text-shadow:0 2px 24px rgba(13,18,32,.6)}
.hero h1 em{ /* a strip of label tape behind the key words */
  display:inline-block;font-style:normal;padding:.02em .16em .06em;rotate:-1.6deg;
  background:var(--accent);color:var(--accent-ink);text-shadow:none;box-shadow:5px 5px 0 rgba(0,0,0,.35);
}
.hero .lead{font-size:1.2rem;max-width:44ch;text-shadow:0 1px 14px rgba(13,18,32,.8)}
.hero-tags{position:absolute;inset:0;z-index:-1;pointer-events:none;translate:calc(var(--px,0px) * -1.6) calc(var(--py,0px) * .4)}
.hero-tag{
  position:absolute;padding:.5em .9em;border-radius:6px;
  font:700 .74rem/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--text);
  background:rgba(13,18,32,.72);border:1px solid var(--line-strong);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  animation:tagFloat 6s ease-in-out infinite alternate;
}
.hero-tag::before{content:"";display:inline-block;width:7px;height:7px;margin-right:.6em;border-radius:50%;background:var(--accent)}
.hero-tag:nth-child(1){right:9%;top:16%;rotate:4deg}
.hero-tag:nth-child(2){right:31%;bottom:30%;rotate:-5deg;animation-delay:-2s}
.hero-tag:nth-child(2)::before{background:var(--accent-4)}
.hero-tag:nth-child(3){right:5%;bottom:38%;rotate:-2deg;animation-delay:-4s}
.hero-tag:nth-child(3)::before{background:var(--accent-3)}
@keyframes tagFloat{to{translate:0 -12px}}
@media (max-width:860px){
  .hero,.hero--short{min-height:0;align-items:flex-end;padding:40vh 0 88px}
  .hero-photo{width:100%;
    -webkit-mask-image:linear-gradient(180deg,#000 20%,transparent 56%);mask-image:linear-gradient(180deg,#000 20%,transparent 56%);
    -webkit-mask-composite:source-over;mask-composite:add}
  .hero-tags{display:none}
  .hero .eyebrow{padding:.45em .7em;border-radius:6px;background:rgba(13,18,32,.7)} /* stays readable over a bright photo */
}

/* live expedition status: real dates, worked out in site.js on load */
.status-badge{
  display:flex;width:fit-content;align-items:center;gap:.6em;margin:0 0 1.3em;padding:.55em 1em;border-radius:999px;
  font:400 .76rem/1.3 var(--mono);letter-spacing:.03em;color:var(--text-dim);
  background:rgba(13,18,32,.6);border:1px solid var(--line-strong);
}
.status-badge .dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--text-faint)}
.status-badge.is-live{color:var(--text);border-color:rgba(255,90,71,.5)}
.status-badge.is-live .dot{background:var(--accent-2);animation:pulseDot 1.8s ease-in-out infinite}
@keyframes pulseDot{50%{box-shadow:0 0 0 6px rgba(255,90,71,0)}0%,100%{box-shadow:0 0 0 0 rgba(255,90,71,.55)}}
.trip-ticks{display:flex;gap:4px;max-width:520px;margin-top:2em}
.trip-ticks i{flex:1;height:10px;border-radius:2px;background:rgba(255,255,255,.16)}
.trip-ticks i.is-done{background:var(--accent)}
.trip-ticks i.is-today{background:var(--accent-2);animation:pulseDot 1.8s ease-in-out infinite}

/* ---- scroll reveal: site.js adds .reveal itself, so nothing is hidden without JS ---- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.reveal.is-in{opacity:1;transform:none}
.grid .reveal:nth-child(2),.doors .reveal:nth-child(2){transition-delay:.08s}
.grid .reveal:nth-child(3),.doors .reveal:nth-child(3){transition-delay:.16s}
.grid .reveal:nth-child(4),.doors .reveal:nth-child(4){transition-delay:.24s}
.doors .reveal:nth-child(5){transition-delay:.32s}

/* ---- sections ---- */
section{padding:96px 0}
.alt-bg{background:var(--ink-2)}
.section-head{max-width:720px;margin:0 0 2.6em}
.section--center{text-align:center}
.section--center .section-head,.section--center .lead{margin-inline:auto}
.section--center .btn-row{justify-content:center}
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.grid{display:grid;gap:22px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:1100px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:860px){.split{grid-template-columns:1fr;gap:36px}.grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){section{padding:64px 0}.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}

/* ---- doors: the way into each page; the one you point at swings open ---- */
.doors{display:flex;gap:14px;height:460px}
.door{
  position:relative;flex:1 1 0;min-width:0;overflow:hidden;border-radius:var(--radius);
  display:flex;align-items:flex-end;text-decoration:none;color:#fff;border:1px solid var(--line);
  transition:flex-grow .55s cubic-bezier(.2,.8,.2,1),border-color .3s ease,opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1);
}
.door img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 30%);transition:scale .7s ease}
.door::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,18,32,.05) 30%,rgba(13,18,32,.94))}
.door-body{position:relative;z-index:1;width:100%;padding:22px}
.door h3{margin:0;font-size:1.75rem;font-weight:800;text-transform:uppercase}
.door h3::after{content:"→";display:inline-block;margin-left:.35em;color:var(--accent);opacity:0;translate:-8px 0;transition:opacity .3s ease,translate .3s ease}
.door p{width:min(300px,70vw);max-height:0;margin:0;overflow:hidden;opacity:0;color:var(--text-dim);font-size:.96rem;transition:max-height .5s ease,opacity .4s ease,margin .4s ease}
.door:hover,.door:focus-visible{flex-grow:2.7;border-color:var(--accent)}
.door:hover img,.door:focus-visible img{scale:1.06}
.door:hover h3::after,.door:focus-visible h3::after{opacity:1;translate:0 0}
.door:hover p,.door:focus-visible p{max-height:6em;margin-top:.4em;opacity:1}
@media (max-width:860px),(hover:none){
  /* stacked: copy on the left over the page colour, photo kept clear on the right */
  .doors{flex-direction:column;height:auto}
  .door{min-height:190px;align-items:center}
  .door img{left:auto;width:58%}
  .door::after{background:linear-gradient(90deg,var(--ink-2) 42%,rgba(18,26,44,.25) 74%,transparent)}
  .door-body{max-width:66%}
  .door p{width:auto;max-height:none;margin-top:.4em;opacity:1}
  .door h3::after{opacity:1;translate:0 0}
}

/* ---- cards ---- */
.card{
  position:relative;overflow:hidden;display:flex;flex-direction:column;border-radius:var(--radius);
  background:var(--panel);border:1px solid var(--line);color:var(--text);text-decoration:none;
  transition:transform .2s ease,border-color .2s ease,opacity .6s ease;
}
.card:hover{border-color:var(--line-strong)}
.card--pad{padding:26px}
.card--pad h3{color:var(--accent)}
.card--pad p,.card-body p{margin:0;color:var(--text-dim);font-size:.98rem}
.card-media{aspect-ratio:4/3;overflow:hidden;background:var(--ink-3)}
.card-media--tall{aspect-ratio:3/4}
.card-media img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 50%);transition:scale .5s ease}
.card:hover .card-media img{scale:1.06}
.card-body{padding:22px}
.card-body h3{margin-bottom:.3em}

/* ---- spec rows: one bike each, the whole photo shown uncropped beside its details ---- */
.spec{display:grid;grid-template-columns:minmax(0,400px) 1fr;gap:72px;align-items:center}
.spec--flip{grid-template-columns:1fr minmax(0,400px)} /* the photo column swaps sides, so both photos stay the same size */
.spec + .spec{margin-top:88px}
.spec--flip .spec-photo{order:2}
.spec-photo{position:relative;isolation:isolate}
.spec-photo::before{ /* an offset outline behind the photo */
  content:"";position:absolute;z-index:-1;inset:16px -16px -16px 16px;
  border:2px solid var(--accent);border-radius:calc(var(--radius) + 6px);
  transition:inset .45s cubic-bezier(.2,.9,.2,1.15),border-width .3s ease,box-shadow .3s ease;
}
/* point at the photo and the loose outline snaps on as its frame */
.spec-photo:hover::before,.spec--flip .spec-photo:hover::before{inset:-9px;border-width:3px;box-shadow:0 0 0 1px rgba(13,18,32,.6),0 0 34px -6px currentColor}
.spec-photo{color:var(--accent)}
.spec--flip .spec-photo{color:var(--accent-3)}
.spec-photo img{transition:scale .45s ease}
.spec-photo:hover img{scale:1.015}
.spec--flip .spec-photo::before{inset:16px 16px -16px -16px;border-color:var(--accent-3)}
.spec-photo img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:var(--focus,50% 50%);border-radius:var(--radius);box-shadow:0 26px 50px -24px rgba(0,0,0,.85);
  filter:saturate(1.12) contrast(1.07) brightness(.98) sepia(.06)} /* a light film grade so the two photos sit together */
.spec-photo::after{ /* soft vignette and a warm-to-cool wash over the photo */
  content:"";position:absolute;inset:0;border-radius:var(--radius);pointer-events:none;
  background:radial-gradient(ellipse at 50% 42%,transparent 55%,rgba(13,18,32,.42) 100%),linear-gradient(160deg,rgba(255,210,60,.12),transparent 45%,rgba(53,182,242,.1));
  mix-blend-mode:multiply;
}
.spec-tag{margin:0;font:700 .74rem/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.spec--flip .spec-tag{color:var(--accent-3)}
.spec h3{margin:.25em 0 .1em;font-size:clamp(2.1rem,3.8vw,3rem);font-weight:800;line-height:1;text-transform:uppercase}
.spec-model{margin:0 0 1.1em;font:400 .95rem/1.3 var(--mono);letter-spacing:.08em;color:var(--text-faint)}
.spec-copy p:not([class]){color:var(--text-dim);font-size:1.08rem;max-width:42ch}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:1.4em 0 0;padding:0;list-style:none}
.chips li{padding:.5em .95em;border:1px solid var(--line-strong);border-radius:999px;font:700 .7rem/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;background:rgba(255,255,255,.04)}
@media (max-width:860px){
  .spec,.spec--flip{grid-template-columns:1fr;gap:36px}
  .spec-photo{max-width:400px}
  .spec + .spec{margin-top:64px}
  .spec--flip .spec-photo{order:0}
  .spec-photo::before,.spec--flip .spec-photo::before{inset:10px -8px -10px 8px}
}

/* ---- tilt: a photo with real depth. The card turns toward the pointer; the frame sits
   behind it, the labels float in front, a highlight moves across it ---- */
.section--glow{background:radial-gradient(ellipse 60% 70% at 25% 50%,rgba(53,182,242,.13),transparent 70%),radial-gradient(ellipse 50% 60% at 80% 60%,rgba(255,210,60,.08),transparent 70%)}
.tilt{--tone:var(--accent);--tone-glow:rgba(255,210,60,.5);width:min(100%,var(--tilt-w,360px));margin-inline:auto;perspective:1100px}
.tilt--blue{--tone:var(--accent-3);--tone-glow:rgba(53,182,242,.5)}
.tilt--red{--tone:var(--accent-2);--tone-glow:rgba(255,90,71,.5)}
.tilt-card{
  position:relative;transform-style:preserve-3d;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  animation:tiltSway 7s ease-in-out infinite alternate;
}
/* four ways of moving when nobody is pointing at it */
@keyframes tiltSway{from{transform:rotateX(3deg) rotateY(-10deg)}to{transform:rotateX(-2deg) rotateY(10deg)}}
.tilt--nod .tilt-card{animation:tiltNod 6s ease-in-out infinite alternate}
@keyframes tiltNod{from{transform:translateY(-8px) rotateX(8deg) rotateY(-3deg)}to{transform:translateY(8px) rotateX(-7deg) rotateY(3deg)}}
.tilt--orbit .tilt-card{animation:tiltOrbit 9s linear infinite}
@keyframes tiltOrbit{
  0%{transform:rotateX(6deg) rotateY(0deg)} 25%{transform:rotateX(0deg) rotateY(9deg)}
  50%{transform:rotateX(-6deg) rotateY(0deg)} 75%{transform:rotateX(0deg) rotateY(-9deg)} 100%{transform:rotateX(6deg) rotateY(0deg)}
}
.tilt--swing .tilt-card{transform-origin:50% -12%;animation:tiltSwing 5s ease-in-out infinite alternate}
@keyframes tiltSwing{from{transform:rotateZ(-2.4deg) rotateY(-5deg)}to{transform:rotateZ(2.4deg) rotateY(5deg)}}
.tilt.is-live .tilt-card{animation:none;transition:transform .12s linear}
.tilt--behind .tilt-card::before{ /* the frame, set back from the photo */
  content:"";position:absolute;inset:-16px;border:2px solid var(--tone);border-radius:calc(var(--radius) + 10px);
  transform:translateZ(-60px);box-shadow:0 0 40px -8px var(--tone-glow);
}
.tilt-brackets{ /* four corner brackets floating in front of the photo */
  position:absolute;inset:-14px;pointer-events:none;transform:translateZ(46px);filter:drop-shadow(0 0 8px var(--tone-glow));
  --b:linear-gradient(var(--tone),var(--tone));
  background:var(--b) 0 0/44px 3px,var(--b) 0 0/3px 44px,var(--b) 100% 0/44px 3px,var(--b) 100% 0/3px 44px,
    var(--b) 0 100%/44px 3px,var(--b) 0 100%/3px 44px,var(--b) 100% 100%/44px 3px,var(--b) 100% 100%/3px 44px;
  background-repeat:no-repeat;
}
.tilt-card img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 50%);
  border-radius:var(--radius);box-shadow:0 40px 70px -30px rgba(0,0,0,.95);
}
.tilt-glare{
  position:absolute;inset:0;border-radius:var(--radius);pointer-events:none;mix-blend-mode:screen;transform:translateZ(1px);
  background:radial-gradient(circle at var(--gx,30%) var(--gy,18%),rgba(255,255,255,.3),transparent 46%);
}
.tilt-label,.tilt-chip{position:absolute;transform:translateZ(70px);white-space:nowrap;box-shadow:0 16px 26px -10px rgba(0,0,0,.8)}
.tilt-label{left:-22px;bottom:34px;padding:.08em .4em .14em;rotate:-2deg;background:var(--tone);color:var(--accent-ink);font:800 clamp(1.5rem,2.6vw,2.1rem)/1.1 var(--display);text-transform:uppercase}
.tilt-chip{right:-18px;top:28px;padding:.6em .95em;border-radius:6px;rotate:3deg;background:rgba(13,18,32,.85);border:1px solid var(--line-strong);font:700 .72rem/1 var(--mono);letter-spacing:.1em;text-transform:uppercase}
@media (prefers-reduced-motion:reduce){.tilt .tilt-card{animation:none}}
@media (max-width:640px){.tilt-label{left:-8px}.tilt-chip{right:-8px}}

/* ---- stat strip: big counted-up numbers on one baseline ---- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:56px;border-block:1px solid var(--line)}
.stat{padding:26px 22px;border-left:1px solid var(--line)}
.stat:first-child{padding-left:0;border-left:0}
.stat b{display:block;font:800 clamp(2.4rem,4.6vw,3.6rem)/1 var(--display);font-variant-numeric:tabular-nums;color:var(--accent)}
.stat:nth-child(4n+2) b{color:var(--accent-2)}
.stat:nth-child(4n+3) b{color:var(--accent-3)}
.stat:nth-child(4n) b{color:var(--accent-4)}
.stat span{display:block;margin-top:.7em;font:400 .7rem/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim)}
@media (max-width:640px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(odd){padding-left:0;border-left:0}
  .stat:nth-child(n+3){border-top:1px solid var(--line)}
}

/* ---- photos ---- */
.photo-panel{overflow:hidden;border-radius:var(--radius);border:1px solid var(--line);background:var(--ink-3)}
.photo-panel img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 50%)}
.photo-panel[data-parallax] img{scale:1.16;translate:0 var(--py,0px)}
/* prints taped to the workshop wall: tilted until you point at one */
.prints{gap:34px;padding-top:14px}
.prints .photo-panel{position:relative;overflow:visible;border:7px solid var(--text);border-radius:3px;box-shadow:0 22px 34px -16px rgba(0,0,0,.8);transition:rotate .35s ease,scale .35s ease,opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.prints .photo-panel::before{content:"";position:absolute;z-index:1;top:-18px;left:50%;width:92px;height:28px;translate:-50% 0;rotate:-3deg;background:rgba(255,210,60,.86);box-shadow:0 2px 5px rgba(0,0,0,.35)}
.prints .photo-panel:nth-child(3n+1){rotate:-1.8deg}
.prints .photo-panel:nth-child(3n+2){rotate:1.3deg}
.prints .photo-panel:nth-child(3n){rotate:-.9deg}
.prints .photo-panel:hover{rotate:0deg;scale:1.03}

/* ---- the 3D route, framed in the page. It ignores the pointer until you take the
   controls, so scrolling the page never gets trapped inside the map ---- */
section.map-section{padding:0 0 40px;background:var(--ink-2)}
.map-section .note{margin-top:1.2em}
/* edge to edge and one screen tall, like the route page on its own */
.map-frame{position:relative;height:100vh;height:100svh;min-height:600px;overflow:hidden;border-block:1px solid var(--line-strong);background:#05070c}
.map-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}
.map-frame.is-live iframe{pointer-events:auto}
.map-frame-cover{position:absolute;inset:0;z-index:1;display:flex;align-items:flex-start;justify-content:center;padding:74px 0 0;border:0;background:transparent;cursor:pointer}
.map-frame.is-live .map-frame-cover{display:none}
.map-frame-release{position:absolute;z-index:1;top:74px;left:50%;translate:-50% 0;min-height:40px;padding:.4em 1.1em;font-size:.95rem}
.map-frame-release:hover{translate:-50% -2px}
.map-frame-release[hidden]{display:none}

/* ---- rows: services and the itinerary ---- */
.row-list{border-top:1px solid var(--line)}
.row-item{
  display:grid;grid-template-columns:120px 1fr;gap:28px;align-items:center;
  padding:22px 0;border-bottom:1px solid var(--line);
  transition:padding .25s ease,background .25s ease,opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1);
}
.row-item:hover{padding-left:14px;background:linear-gradient(90deg,rgba(255,210,60,.07),transparent 70%)}
.row-item h3{margin:0 0 .2em}
.row-item p{margin:0;color:var(--text-dim)}
.row-media{aspect-ratio:4/5;overflow:hidden;border-radius:12px;background:var(--ink-3)}
.row-media img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 30%)}
.row-day{font:700 .78rem/1.3 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
@media (max-width:640px){.row-item{grid-template-columns:84px 1fr;gap:16px}}

/* ---- band: a strip of hazard yellow for the calls to action ---- */
.band{position:relative;padding:92px 0;text-align:center;background:var(--accent);color:var(--accent-ink)}
.band::before,.band::after{content:"";position:absolute;left:0;right:0;height:9px;background:repeating-linear-gradient(-45deg,var(--ink) 0 14px,var(--accent) 14px 28px)}
.band::before{top:0}
.band::after{bottom:0}
.band h2{color:var(--accent-ink);font-size:clamp(2.2rem,5vw,3.8rem)}
.band .eyebrow{color:var(--accent-ink)}
.band .eyebrow::before{background:var(--accent-ink)}
.band .lead{max-width:70ch;margin-inline:auto;color:#3d2e07}
.band .lead a{color:inherit;font-weight:600}
.band .btn-row{justify-content:center}
.band :focus-visible{outline-color:var(--accent-ink)}

/* ---- reel: a muted loop playing behind one line of copy ---- */
.reel{position:relative;isolation:isolate;overflow:hidden;padding:150px 0;background:var(--ink)}
.reel-video{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.reel::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(13,18,32,.92) 0%,rgba(13,18,32,.6) 45%,rgba(13,18,32,.15) 100%),linear-gradient(180deg,rgba(13,18,32,.5),transparent 30%,transparent 70%,rgba(13,18,32,.7))}
.reel h2{font-size:clamp(2.4rem,5.4vw,4.2rem)}
.reel .lead{color:var(--text)}
@media (max-width:640px){.reel{padding:96px 0}}

/* ---- Instagram block: the profile on the left, six tiles that all open it on the right ---- */
.insta{
  --ig:linear-gradient(45deg,#feda75,#fa7e1e 25%,#d62976 50%,#962fbf 75%,#4f5bd5);
  background:linear-gradient(120deg,rgba(150,47,191,.2),rgba(214,41,118,.14) 45%,rgba(250,126,30,.14)),var(--ink-2);
}
.insta-inner{display:grid;grid-template-columns:1fr 1.15fr;gap:64px;align-items:center}
.insta-avatar{display:block;width:96px;height:96px;margin-bottom:22px;padding:4px;border-radius:50%;background:var(--ig);transition:rotate .3s ease,scale .3s ease}
.insta-avatar:hover{rotate:-6deg;scale:1.06}
.insta-avatar img{width:100%;height:100%;padding:10px;border-radius:50%;object-fit:contain;background:var(--ink)}
.insta h2{text-transform:none;font-size:clamp(2.2rem,4.6vw,3.6rem);background:var(--ig);-webkit-background-clip:text;background-clip:text;color:transparent}
.insta-counts{margin:1.2em 0 0;font:400 .8rem/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim)}
.insta-counts b{font:800 1.9rem/1 var(--display);letter-spacing:0;color:#fff;margin-right:.15em}
.insta-counts span{margin:0 .6em}
.insta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.insta-tile{position:relative;aspect-ratio:1;overflow:hidden;border-radius:12px;background:var(--ink-3)}
.insta-tile img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 50%);transition:scale .5s ease}
.insta-tile::after{content:"";position:absolute;inset:0;background:var(--ig);opacity:0;mix-blend-mode:soft-light;transition:opacity .3s ease}
.insta-tile:hover img{scale:1.08}
.insta-tile:hover::after{opacity:.9}
@media (max-width:860px){.insta-inner{grid-template-columns:1fr;gap:40px}}

/* a short confirmation, e.g. after an email address is copied */
.toast{
  position:fixed;left:50%;bottom:28px;z-index:70;max-width:calc(100vw - 32px);padding:.8em 1.2em;border-radius:12px;
  background:var(--text);color:var(--ink);font-weight:600;font-size:.95rem;box-shadow:0 14px 34px -10px rgba(0,0,0,.7);
  translate:-50% 20px;opacity:0;pointer-events:none;transition:opacity .25s ease,translate .25s ease;
}
.toast.is-on{translate:-50% 0;opacity:1}

/* ---- footer ---- */
.bbsite-footer{padding:60px 0 44px;background:#0a0e19;border-top:1px solid var(--line)}
.bbsite-footer-inner{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;align-items:center;padding-bottom:30px;border-bottom:1px solid var(--line)}
.bbsite-footer-brand{display:flex;gap:14px;align-items:center;color:var(--text-dim);font-size:.95rem}
.bbsite-footer-brand img{height:64px;width:auto}
.bbsite-footer-brand strong{display:block;font:800 1.3rem/1.1 var(--display);text-transform:uppercase;color:#fff}
.bbsite-footer-nav{display:flex;flex-wrap:wrap;gap:6px 22px}
.bbsite-footer-nav a,.bbsite-footer-social a{text-decoration:none;color:var(--text-dim);font-size:.94rem;transition:color .15s ease}
.bbsite-footer-nav a:hover,.bbsite-footer-social a:hover{color:var(--accent)}
.bbsite-footer-social{display:flex;flex-direction:column;gap:6px}
.bbsite-footer-legal{margin:22px 0 0;color:var(--text-faint);font-size:.8rem}

/* ---- back to top ---- */
.back-to-top{
  position:fixed;right:20px;bottom:22px;z-index:60;width:50px;height:50px;border-radius:50%;border:none;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  background:var(--accent);color:var(--accent-ink);box-shadow:0 10px 26px -8px rgba(0,0,0,.6);
  opacity:0;translate:0 12px;pointer-events:none;transition:opacity .2s ease,translate .2s ease,background .15s ease;
}
.back-to-top.is-visible{opacity:1;translate:0 0;pointer-events:auto}
.back-to-top:hover{background:var(--accent-hi)}
.back-to-top svg{width:20px;height:20px}
