/* Round 8 landing page. Snow, true black, one orange. Two text sizes only (max 32/18 px):
   --sub (the italic sub headline) and --text (body copy and tracked labels). */

.landing {
  --sub: clamp(24px, 2.19vw, 32px);
  --text: clamp(17px, 1.1vw, 18px);
  --side: clamp(16px, 4vw, 64px);
  --band: clamp(132px, 9.6vw, 163px);
  font: 300 var(--text)/1.6 var(--body);
  overflow-x: hidden;
}
.l-wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--side); }
.l-orange { color: var(--signal); }
.l-muted { color: var(--ink-2); }

.landing h1, .landing h2, .landing h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.88; margin: 0; letter-spacing: 0; }
.landing h1 { font-size: clamp(76px, 9.53vw, 160px); line-height: 0.9; }
.landing h2 { font-size: clamp(52px, 5.35vw, 90px); }
.landing h3 { font-size: clamp(30px, 2.06vw, 35px); line-height: 0.95; }

.l-sub { font: italic 300 var(--sub)/1.25 var(--body); margin: 0; }
.l-body { font: 300 var(--text)/1.6 var(--body); margin: 0; }
.l-label { font: 400 var(--text)/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin: 0; }

.l-btn {
  display: inline-block; background: var(--signal); color: var(--on-signal); text-decoration: none;
  font: 400 clamp(22px, 1.37vw, 22px)/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase;
  padding: 18px 24px;
}
.l-btn-small { font-size: 18px; padding: 12px 16px; }
.l-btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.l-link { font: 400 var(--text)/1.2 var(--body); color: var(--ink); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.l-link:hover { color: var(--signal); }

.l-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font: 400 28px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.l-brand svg { width: 44px; height: 39px; flex-shrink: 0; }

/* ---------- hero ---------- */
.l-hero { position: relative; overflow: hidden; background: var(--paper); padding-bottom: 250px; }
.l-hero-peak { position: absolute; right: -14vw; bottom: 0; width: clamp(560px, 69vw, 1000px); height: auto; max-width: none; pointer-events: none; }
.l-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.l-nav-contact { font: italic 300 var(--text)/1.2 var(--body); color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.l-nav-contact:hover { color: var(--signal); }
html { scroll-behavior: smooth; }
.l-nav-links { display: flex; align-items: center; gap: 36px; }
.l-nav-links a:not(.l-btn) { font: 400 var(--text)/1 var(--body); text-decoration: none; }
.l-nav-links a:not(.l-btn):hover { color: var(--signal); }
.l-hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: clamp(32px, 4.53vw, 77px); }
.l-hero-copy > * { max-width: 760px; }
.l-hero-copy .l-sub { max-width: 25ch; }
.l-hero-copy .l-body { max-width: 46ch; color: #3a3a3a; }
.l-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 8px; }

@media (min-width: 900px) {
  .l-hero { min-height: 880px; padding-bottom: 0; }
  .l-hero-peak { left: 45.8%; right: auto; width: 69%; }
}
@media (max-width: 640px) {
  .l-nav-links a:not(.l-btn) { display: none; }
  .l-brand { font-size: 24px; }
  .l-brand svg { width: 36px; height: 32px; }
}

/* ---------- this weekend's dumps ---------- */
.l-weekend { padding: clamp(56px, 4.53vw, 77px) 0 clamp(56px, 4.11vw, 70px); }
.l-weekend-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.l-weekend-head > div { flex: 1 1 560px; display: flex; flex-direction: column; gap: 16px; }
.l-weekend-head .l-sub { color: #3a3a3a; }
.l-weekend-head .l-sub strong { font-weight: 400; font-style: normal; font-family: var(--display); color: var(--signal); letter-spacing: 0.02em; }
.l-run { flex: 0 0 auto; text-align: right; line-height: 1.5; }

.l-hazard { height: 12px; background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, var(--ink) 10px 20px); }

.l-band { position: relative; height: var(--band); background: var(--ink); color: var(--paper); overflow: hidden; display: flex; }
.l-band-cap {
  position: relative; z-index: 2; flex-shrink: 0; display: flex; align-items: center; gap: clamp(12px, 1.03vw, 18px);
  padding: 0 clamp(16px, 1.92vw, 32px) 0 var(--side); background: var(--signal); color: var(--ink);
  box-shadow: 22px 0 34px rgba(20, 20, 20, 0.6);
}
.l-live { width: clamp(56px, 4.94vw, 83px); height: auto; overflow: visible; }
.l-cap-text { display: flex; flex-direction: column; gap: 12px; }
.l-cap-text b { font: 400 clamp(44px, 3.98vw, 67px)/0.86 var(--display); text-transform: uppercase; }
.l-cap-text span { font: 400 var(--text)/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
.l-band-view { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.l-track { display: flex; align-items: stretch; height: 100%; width: max-content; }
.l-track.is-moving { animation: l-tick var(--dur, 120s) linear infinite; }
.l-band:hover .l-track { animation-play-state: paused; }
@keyframes l-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.l-band-msg { align-self: center; padding: 0 48px; font: italic 300 var(--sub)/1.2 var(--body); color: rgba(246, 244, 239, 0.8); white-space: nowrap; }

.l-item { display: flex; align-items: stretch; height: 100%; white-space: nowrap; }
.l-rank { flex: 0 0 clamp(68px, 4.94vw, 83px); background: var(--signal); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 400 clamp(48px, 3.63vw, 61px)/1 var(--display); }
.l-item-body { display: flex; align-items: center; gap: clamp(20px, 1.92vw, 32px); padding: 0 clamp(32px, 3.02vw, 51px) 0 clamp(24px, 2.26vw, 38px); }
.l-item-name { display: flex; flex-direction: column; gap: 14px; }
.l-item-name b { font: 400 clamp(64px, 5.07vw, 85px)/0.86 var(--display); text-transform: uppercase; color: var(--paper); }
.l-item-name span { font: 400 var(--text)/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246, 244, 239, 0.72); }
.l-item-cm { font: 400 clamp(64px, 5.07vw, 85px)/0.86 var(--display); }
.l-item-cm small { font-size: 0.42em; letter-spacing: 0.04em; }
.l-stamp { font: 400 clamp(30px, 1.99vw, 34px)/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 14px 4px; border: 4px solid rgba(246, 244, 239, 0.55); }
.l-stamp.epic { background: var(--signal); border-color: var(--signal); color: var(--ink); transform: rotate(-4deg); }
.l-stamp.great { border-color: var(--signal); }
.l-stamp.meh { border-style: dashed; color: rgba(246, 244, 239, 0.6); }

/* the live logo: arcs keep rising out of the peak and fade at the top */
.l-wave { transform-box: view-box; transform-origin: 0 0; vector-effect: non-scaling-stroke; stroke-width: clamp(4px, 0.37vw, 6px); animation: l-wave 3.2s linear infinite; opacity: 0; }
.l-w1 { animation-delay: -0.9s; }
.l-w2 { animation-delay: -2.5s; }
@keyframes l-wave { 0% { transform: scale(0.5); opacity: 0; } 16% { opacity: 1; } 66% { opacity: 1; } 100% { transform: scale(2.65); opacity: 0; } }

/* photo strip: three slow pans */
.l-strip { display: flex; gap: 6px; padding-top: 6px; height: calc(var(--band) + 6px); background: var(--ink); }
.l-strip-tile { position: relative; flex: 1; overflow: hidden; }
.l-strip-tile img { position: absolute; left: 0; top: 0; width: 170%; height: 100%; max-width: none; object-fit: cover; animation: l-pan 34s ease-in-out infinite alternate; }
.l-strip-tile:nth-child(2) img { animation-delay: -12s; }
.l-strip-tile:nth-child(3) img { animation-delay: -23s; }
@keyframes l-pan { from { transform: translateX(0); } to { transform: translateX(-41.17%); } }
@media (max-width: 700px) { .l-strip-tile:nth-child(n+2) { display: none; } }

/* live cams (filled by js/cams.js once the webcams function answers) */
.l-strip.is-live { transition: opacity 0.4s ease; }
.l-strip.is-fading { opacity: 0; }
.l-cam { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: clamp(14px, 1.2vw, 22px); overflow: hidden; background: var(--ink); color: var(--paper); text-decoration: none; }
.l-cam img { flex-shrink: 0; height: 100%; width: auto; max-width: 62%; object-fit: cover; background: #222; }
.l-cam-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding-right: 16px; }
.l-cam-info b { font: 400 clamp(36px, 2.6vw, 48px)/0.9 var(--display); text-transform: uppercase; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.l-cam-meta { font: 400 var(--text)/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246, 244, 239, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.l-cam-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--signal); color: var(--ink); font: 400 20px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px 3px; }
.l-cam-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: l-blink 1.6s ease-in-out infinite; }
.l-cam-badge.is-day { background: transparent; color: var(--paper); border: 2px solid rgba(246, 244, 239, 0.55); }
.l-cam-badge.is-day::before { display: none; }
@keyframes l-blink { 50% { opacity: 0.25; } }
.l-cam:hover b { color: var(--signal); }
.l-credit { margin: 10px auto 0; text-align: right; font: 300 14px/1.4 var(--body); color: var(--ink-2); }
.l-credit a { color: inherit; }

.l-weekend-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 64px; flex-wrap: wrap; margin-top: 36px; }
.l-weekend-foot .l-body { max-width: 64ch; }

/* ---------- real snow ---------- */
.l-photo { position: relative; height: clamp(420px, 30.17vw, 512px); overflow: hidden; color: var(--paper); background: #c6cdd0; }
.l-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.l-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.6) 100%); }
.l-photo-copy { position: absolute; left: 0; right: 0; bottom: clamp(32px, 3.02vw, 51px); z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.landing .l-photo h2 { font-size: clamp(80px, 7.13vw, 120px); line-height: 0.86; }

/* ---------- sections ---------- */
.l-section { padding: clamp(56px, 4.53vw, 77px) 0; }
.l-section-rule .l-wrap { border-top: 3px solid var(--ink); padding-top: clamp(40px, 2.74vw, 45px); }
.l-section h2 { margin-bottom: 0; }
.l-section .l-body + .l-body { margin-top: 1em; }
.l-cols { display: grid; gap: 32px 64px; }
@media (min-width: 900px) { .l-cols { grid-template-columns: 5fr 7fr; align-items: start; } }
.l-cols .l-body { max-width: 60ch; }

.l-steps { list-style: none; margin: clamp(32px, 2.74vw, 45px) 0 32px; padding: 0; display: grid; gap: 40px 48px; }
@media (min-width: 900px) { .l-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.l-steps li { display: flex; flex-direction: column; gap: 18px; border-top: 3px solid var(--ink); padding-top: 24px; }
.l-steps .l-body { color: #3a3a3a; }
.l-num { font: 400 clamp(72px, 4.59vw, 77px)/0.86 var(--display); }
.l-steps li.l-step-hot { border-top-color: var(--signal); }
.l-step-hot .l-num { color: var(--signal); }

/* ---------- crew pass (black) ---------- */
.l-pass { position: relative; background: var(--ink); color: var(--paper); padding: clamp(72px, 6.17vw, 112px) var(--side); display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.l-ticket { display: flex; width: min(760px, 100%); min-height: clamp(260px, 19.89vw, 336px); text-decoration: none; transform: rotate(-2.5deg); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.4)); }
.l-ticket-main { flex: 0 0 72%; background: var(--paper); color: var(--ink); padding: clamp(24px, 2.06vw, 35px) clamp(24px, 2.26vw, 38px); display: flex; flex-direction: column; justify-content: space-between; border-right: 3px dashed var(--ink); text-align: left; }
.l-ticket-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.l-ticket-top b { font: 400 clamp(72px, 6.86vw, 115px)/0.86 var(--display); text-transform: uppercase; }
.l-ticket-top svg { width: clamp(56px, 4.59vw, 77px); height: auto; }
.l-ticket-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.l-ticket-bottom .l-label { color: var(--ink); white-space: nowrap; }
.l-barcode { width: clamp(120px, 13.03vw, 224px); height: clamp(36px, 2.61vw, 43px); background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 10px, transparent 10px 13px, var(--ink) 13px 14px, transparent 14px 19px); }
.l-ticket-stub { flex: 1; background: var(--signal); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 400 clamp(36px, 2.95vw, 50px)/0.92 var(--display); text-transform: uppercase; }
.l-ticket:hover .l-ticket-stub { background: var(--paper); }
@media (max-width: 560px) { .l-ticket-bottom .l-label { display: none; } }

/* ---------- footer ---------- */
.l-footer { background: var(--ink); color: var(--paper); }
.l-footer .l-hazard { background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, #000 10px 20px); }
.l-footer-inner { padding-top: 56px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 18px; }
.l-footer .l-body { color: rgba(246, 244, 239, 0.8); max-width: 75ch; }
.l-footer a { color: var(--paper); }
.l-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.l-contact .l-sub { color: var(--paper); }
.l-footer .l-contact .l-body { color: var(--paper); line-height: 1.8; }
.l-contact a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.l-contact a:hover { color: var(--signal); }
.l-brand-big { color: var(--paper); font-size: 40px; margin-bottom: 18px; }
.l-brand-big svg { width: 50px; height: 45px; }
.l-footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: none !important; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .l-track.is-moving { animation: none; }
  .l-band-view { overflow-x: auto; }
  .l-strip-tile img { animation: none; }
  .l-cam-badge::before { animation: none; }
  .l-strip.is-live { transition: none; }
  .l-wave { animation: none; opacity: 1; }
  .l-w1 { transform: scale(1); }
  .l-w2 { transform: scale(2); }
}

/* ---------- phones ---------- */
.l-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .l-btn-small { font-size: 16px; padding: 10px 12px; }
  .landing .l-photo h2 { font-size: 64px; }
  .l-run { text-align: left; }
  .l-cap-text span { display: none; }
  .l-cap-text b { font-size: 30px; }
  /* thinner banner on phones */
  .landing { --band: 84px; }
  .l-band-cap { gap: 10px; padding-right: 14px; }
  .l-live { width: 40px; }
  .l-rank { flex-basis: 50px; font-size: 36px; }
  .l-item-body { gap: 14px; padding: 0 24px 0 14px; }
  .l-item-name { gap: 6px; }
  .l-item-name b, .l-item-cm { font-size: 40px; }
  .l-item-name span { font-size: 13px; }
  .l-stamp { font-size: 20px; padding: 5px 9px 3px; border-width: 3px; }
  .l-strip { height: 124px; }
  .l-cam-info b { font-size: 30px; }
  .l-cam-meta { font-size: 13px; }
  .l-cam-badge { font-size: 16px; }
  .l-ticket-top b { font-size: 60px; }
}
