/* SNOWJI 2027 */
:root {
  --snow: #F6F7F9;
  --snow-2: #ECEFF3;
  --card: #FFFFFF;
  --ink: #0D1B2A;
  --ink-2: #44515F;
  --ink-3: #6E7A88;
  --line: #DDE3E9;
  --flare: #F0532F;
  --sky: #0B5A8A;
  --ice: #9BDCF5;
  --ice-2: #DCF1FA;

  --lane: clamp(64px, 13vw, 210px);
  --gutter: clamp(20px, 5vw, 72px);
  --pad: clamp(88px, 13vh, 150px);
  --radius: 22px;
  --nav-h: 68px;

  --display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 700; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--body); padding: 1em 1.5em; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--snow); }
.btn-ink:hover { background: #18324D; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: .7em 1.15em; font-size: .92rem; }
.btn-lg { padding: 1.1em 1.9em; font-size: 1.08rem; }

/* WeTravel only opens checkout when the click lands on the button itself, not on text inside it */
.wtrvl-checkout_button * { pointer-events: none; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.nav.on-photo { color: #fff; }
.nav.scrolled { color: var(--ink); background: rgba(246, 247, 249, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.on-photo:not(.scrolled) .btn-light { background: #fff; color: var(--ink); }
.nav.scrolled .btn-light { background: var(--ink); color: var(--snow); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.soji-mark {
  display: block; width: 60px; height: 22px; background: currentColor;
  -webkit-mask: url(../assets/img/soji-logo.png) left center / contain no-repeat;
  mask: url(../assets/img/soji-logo.png) left center / contain no-repeat;
}
.brand-event { font: 700 .82rem/1 var(--display); letter-spacing: .01em; padding-left: .8rem; border-left: 1.5px solid currentColor; opacity: .95; }
.nav-links { display: flex; gap: clamp(1.2rem, 2.6vw, 2.4rem); font-size: .94rem; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }

/* ── Trail + rider ─────────────────────────────────── */
.mountain { position: relative; isolation: isolate; }
.trail { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.trail path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail-groove { stroke: rgba(196, 208, 222, .55); stroke-width: 15; }
.trail-track { stroke: rgba(90, 110, 136, .5); stroke-width: 1.6; }
.rider { position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none; visibility: hidden; will-change: transform; transform-origin: 56.37% 89.18%; filter: drop-shadow(-10px 4px 5px rgba(40, 60, 90, .16)); }
.rider img { width: 100%; height: auto; transform-origin: 56.37% 89.18%; will-change: transform; }
.powder { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

.run { position: relative; padding-block: var(--pad); }
.run[data-side="left"] { padding-left: var(--lane); padding-right: var(--gutter); }
.run[data-side="right"] { padding-right: var(--lane); padding-left: var(--gutter); }
.lane { position: absolute; top: calc(var(--pad) * .8); bottom: calc(var(--pad) * .8); width: var(--lane); pointer-events: none; }
.run[data-side="left"] > .lane { left: 0; }
.run[data-side="right"] > .lane { right: 0; }
.run-body { position: relative; z-index: 1; max-width: 1000px; margin-inline: auto; }

.gate { --flag: var(--flare); position: absolute; top: calc(var(--pad) * .12); width: 3px; height: 70px; border-radius: 2px; background: var(--ink); }
.run:nth-of-type(odd) .gate { --flag: var(--sky); }
.run[data-side="left"] .gate { left: calc(50% + 26px); }
.run[data-side="right"] .gate { right: calc(50% + 26px); }
.gate::after { content: ""; position: absolute; top: 2px; left: 3px; width: 34px; height: 26px; background: var(--flag); clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%); transform-origin: 0 50%; }
.run[data-side="right"] .gate::after { left: auto; right: 3px; transform-origin: 100% 50%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20% 50%); }
.gate.passed::after { animation: flap 1.1s cubic-bezier(.3, .7, .3, 1); }
@keyframes flap { 20% { transform: scaleX(.55) skewY(-10deg); } 45% { transform: scaleX(1.08) skewY(5deg); } 70% { transform: scaleX(.92) skewY(-2deg); } }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; height: 100svh; min-height: 580px; }
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--sky); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 52% 43%; }
.hero-photo.handed-off .hero-full { visibility: hidden; }
.hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(rgba(246, 247, 249, 0), var(--snow)); }
.hero-copy { position: relative; padding: calc(var(--nav-h) + clamp(28px, 9vh, 96px)) var(--gutter) 0; color: #fff; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 7.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: .95; }
.hero h1 span { color: var(--ice); }
.hero-meta { margin-top: 1.1rem; font: 600 clamp(1rem, 1.5vw, 1.2rem)/1.3 var(--body); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.6rem; }
.hero-cta span { font-size: .92rem; opacity: .85; }

/* ── Sections ─────────────────────────────────────── */
.gate-label { display: flex; align-items: center; gap: .7em; margin-bottom: 1rem; font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gate-label b { font: 700 .74rem/1 var(--display); letter-spacing: .02em; color: var(--ink); padding: .5em .75em; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.lede { margin-top: 1rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34em; }
.note { margin-top: 1.4rem; font-size: .92rem; color: var(--ink-3); }
.note a { color: var(--ink); text-underline-offset: 3px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { padding: clamp(16px, 2vw, 24px); }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.facts dd { margin-top: .5rem; font: 600 clamp(1rem, 1.6vw, 1.25rem)/1.2 var(--display); letter-spacing: -.02em; }

.passes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); margin-top: 2.2rem; }
.pass { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 3vw, 36px); }
.pass h3 { font-size: 1.1rem; }
.price { margin-top: .5rem; font: 800 clamp(2.3rem, 4.2vw, 3.2rem)/1 var(--display); letter-spacing: -.05em; }
.pass-tag { margin-top: .6rem; color: var(--ink-2); }
.pass ul { list-style: none; padding: 1.2rem 0 0; margin-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.pass li { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; line-height: 1.4; }
.pass li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ice-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.7 2.7 5.4-6' fill='none' stroke='%230D1B2A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pass-snow { background: var(--ink); color: #EAF2F8; border-color: var(--ink); }
.pass-snow .pass-tag { color: #A9BACB; }
.pass-snow ul { border-color: rgba(255, 255, 255, .14); }
.pass-snow li::before { background-color: rgba(155, 220, 245, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.7 2.7 5.4-6' fill='none' stroke='%239BDCF5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.addons { list-style: none; padding: 0; margin-top: 2rem; border-top: 1px solid var(--line); max-width: 820px; }
.addons li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: .4rem 1.6rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.ad-name { font-weight: 600; }
.ad-for { font-size: .88rem; color: var(--ink-3); }
.ad-price { font: 700 1.1rem/1 var(--display); letter-spacing: -.03em; min-width: 5.5ch; text-align: right; }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); margin-top: 2rem; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); font-weight: 600; line-height: 1.4; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--ink); color: var(--snow); font: 700 1rem/1 var(--display); }

.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.strip figure { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--snow-2); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip-cap { margin-top: .8rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* Finish */
.finish.run { padding: var(--pad) var(--lane) clamp(56px, 9vh, 96px); text-align: center; }
.finish > .lane { bottom: calc(clamp(56px, 9vh, 96px) + 16px + 140px); }
.finish-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.finish h2 { font-size: clamp(2rem, 5.4vw, 4.2rem); }
.finish .note { margin-top: 0; }
.finish-line { position: relative; width: min(640px, 100%); height: 14px; margin-top: 100px; background: repeating-conic-gradient(var(--ink) 0 25%, var(--card) 0 50%) 0 0 / 14px 14px; border-radius: 3px; box-shadow: 0 0 0 1px var(--ink); }
.finish-point { position: absolute; left: 76%; top: -4px; width: 1px; height: 1px; }
.finish.arrived .finish-line { animation: thud .6s cubic-bezier(.3, .7, .3, 1); }
@keyframes thud { 30% { transform: scaleY(.6); } }

/* Footer */
/* Footer: dark band, link columns, socials, illustrated range with the wordmark behind it */
.foot { position: relative; background: #0A1622; color: #fff; padding: clamp(48px, 7vw, 88px) var(--gutter) 0; overflow: hidden; }
.foot-top { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.4rem 3rem; }
.foot .soji-mark { width: 96px; height: 34px; }
.foot-tag { margin: 1rem 0 1.4rem; font: 700 clamp(1.1rem, 1.8vw, 1.4rem)/1.25 var(--display); letter-spacing: -.02em; max-width: 16ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.foot-cols h2 { font: 700 .82rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ice); margin-bottom: 1rem; }
.foot-cols a { display: block; padding: .3rem 0; text-decoration: none; font-weight: 600; color: #fff; }
.foot-cols a:hover { color: var(--ice); }
.foot-social { position: relative; z-index: 1; list-style: none; padding: 0; max-width: 1180px; margin: clamp(32px, 5vw, 56px) auto 0; display: flex; gap: .6rem; }
.foot-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fff; color: #0A1622; transition: transform .2s ease, background-color .2s ease; }
.foot-social a:hover { transform: translateY(-2px); background: var(--ice); }
.foot-social svg { width: 22px; height: 22px; }
.foot-art { position: relative; margin: clamp(-24px, -2vw, -8px) calc(-1 * var(--gutter)) 0; height: clamp(200px, 26vw, 360px); }
.foot-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot-word { font: 800 236px/1 var(--display); letter-spacing: -.05em; fill: rgba(155, 220, 245, .14); }
.m-far { fill: #16324D; }
.m-near { fill: #0B5A8A; }
.m-snow { fill: #EAF6FC; }
.foot-bar { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin: 0 calc(-1 * var(--gutter)); padding: 18px var(--gutter); background: #0B5A8A; font-size: .82rem; color: #CFE8F6; }
.page .foot { margin-top: 0; }

/* Info strip along the bottom of the hero */
.marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; overflow: hidden; background: var(--ink); color: #fff; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 700 clamp(.82rem, 1.2vw, 1rem)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; padding: 0 1.6rem; position: relative; }
.marquee-track span::after { content: ""; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ice); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pass buttons and the live WeTravel packages widget */
.pass .btn { margin-top: 1.6rem; }
.tickets { margin-top: clamp(20px, 3vw, 32px); display: flex; justify-content: center; }
.tickets iframe { width: 100% !important; max-width: 800px; border-radius: 20px; background: var(--card); box-shadow: 0 24px 60px -36px rgba(13, 27, 42, .45); }

/* Mobile booking dock */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px; text-decoration: none;
  background: rgba(13, 27, 42, .94); color: var(--snow); font-size: .92rem; font-weight: 600;
  box-shadow: 0 16px 40px -16px rgba(13, 27, 42, .7);
  transform: translateY(160%); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.dock b { background: var(--snow); color: var(--ink); padding: .7em 1.2em; border-radius: 999px; }
.dock.show { transform: none; }

/* FAQ page */
.faq-page { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 48px) var(--gutter) 96px; }
.back { font-size: .92rem; color: var(--ink-3); text-decoration: none; }
.back:hover { color: var(--ink); }
.faq-page h1 { margin: 1rem 0 2rem; font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.04em; }
.faq { border-top: 1px solid var(--line); margin-bottom: 2.8rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 1.2rem/1 var(--body); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--ink-2); max-width: 40em; }
.faq details a { color: var(--ink); text-underline-offset: 3px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .dock { display: flex; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .passes, .steps { grid-template-columns: 1fr; }
  .steps li { display: flex; align-items: center; gap: 1rem; }
  .steps li::before { margin: 0; flex: none; }
  .strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .strip figure { scroll-snap-align: start; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bar { padding-bottom: 92px; }
}
@media (max-width: 640px) {
  :root { --lane: 54px; --gutter: 18px; --pad: 76px; --nav-h: 60px; }
  body { font-size: 1rem; }
  .brand-event { font-size: .72rem; }
  .soji-mark { width: 50px; height: 18px; }
  .gate { height: 42px; width: 2px; top: calc(var(--pad) * .1); }
  .run[data-side="left"] .gate { left: calc(50% + 6px); }
  .run[data-side="right"] .gate { right: calc(50% + 6px); }
  .gate::after { width: 16px; height: 14px; left: 2px; }
  .run[data-side="right"] .gate::after { right: 2px; }
  .trail-groove { stroke-width: 9; }
  .trail-track { stroke-width: 1.2; }
  .addons li { grid-template-columns: minmax(0, 1fr) auto; }
  .ad-for { grid-column: 1; grid-row: 2; }
  .ad-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .finish-line { width: 100%; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-word { font-size: 300px; }
  .tickets { margin: 24px calc(-1 * var(--lane)) 0 calc(-1 * var(--gutter)); }
  .tickets iframe { border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gate.passed::after, .finish.arrived .finish-line, .marquee-track { animation: none; }
  .btn { transition: none; }
}
