/* DO MAMMOTH RIGHT motion layer, staged only.
   Borrowed from the current TCIN (Cherry Ice Network) at
   /workspace/nhl-fan-hub (live https://ivory-vault-q9mp.here.now/), v74 of 20 Nov 2026.
   Entrance rise, ticker motion, edge glows, counters, reduced-motion off switch.
   Does not change fonts. Does not cover the hero mountain. Square controls. */

/* ----- Calmer section rise (overrides the older 40px skew .rv) ----- */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1);
  }
  .rv.in { opacity: 1; transform: none; }

  html.dm-anim .dm-rise {
    opacity: 0;
    transform: translateY(18px);
  }
  html.dm-anim .dm-rise.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1);
  }
}

/* ----- Card / chip hover: glow on edges, never on text ----- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card, .stat, .st, .lift, .slim-chip, .cams a, .shop, .stay {
    transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
  }
  .card:hover, .stat:hover, .st:hover, .lift:hover, .slim-chip:hover, .cams a:hover, .shop:hover, .stay:hover {
    border-color: #00B8FF;
    box-shadow: 0 0 0 1px rgba(0, 184, 255, .55), 0 0 22px rgba(0, 184, 255, .32);
  }
  .btn:hover, .btn:focus-visible {
    box-shadow: 0 0 0 1px #00B8FF, 0 0 22px rgba(0, 184, 255, .4);
  }
}

/* ----- Count-up + bar fill ----- */
.dm-count { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .dm-bar {
    transform: scaleX(0);
    transform-origin: left center;
  }
  .dm-bar.is-in {
    transform: scaleX(1);
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
  }
}

/* ----- 3D snowboard Boldy: smaller cutout, gentle glide, blue glow ----- */

/* Keep the cutout in the heading row. Do not let leftover pop transforms ride over the live ticker. */
@media (min-width:860px){
  #report-first .rf-feet{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:8px 16px;
  }
}
#report-first .rf-feet-l,#report-first .rf-feet-r{min-width:0}
#report-first .boldy-featured,
#report-first .boldy-featured.is-inview,
#report-first .boldy-featured .boldy-frame,
#report-first .boldy-featured.is-inview .boldy-frame,
#report-first .boldy-featured .boldy-cutout,
#report-first .boldy-featured.is-inview .boldy-cutout,
#report-first .boldy-hero{
  opacity:1 !important;
  transform:none !important;
  animation:none !important;
  margin-top:0;
}
#report-first #boldy-now{margin:0;padding:0;overflow:visible}
#report-first .boldy-hero{padding:0;overflow:visible}
#report-first .boldy-featured .boldy-frame-edge,
.boldy-cutout .boldy-frame-edge { display: none !important; }

#report-first .boldy-featured .boldy-cutout,
#report-first .boldy-featured.is-inview .boldy-cutout,
#report-first .boldy-featured .boldy-cutout img,
#report-first .boldy-featured.is-inview .boldy-cutout img {
  animation: none;
  opacity: 1;
  width: auto;
  max-width: none;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}

#report-first .boldy-featured .boldy-cutout,
#report-first .rf-feet-r .boldy-featured .boldy-cutout {
  width: auto;
  height: 120px;
  max-width: none;
  flex: 0 0 auto;
  overflow: visible;
}
#report-first .boldy-featured .boldy-cutout picture,
#report-first .boldy-featured .boldy-cutout img {
  display: block;
  width: auto;
  height: 120px;
  max-height: 120px;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 8px rgba(0, 184, 255, .55)) drop-shadow(0 8px 16px rgba(0, 184, 255, .28));
  transform-origin: 50% 80%;
}
#report-first .boldy-now-link {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
#report-first .boldy-hero {
  align-items: flex-end;
  gap: 10px;
}
@media (min-width: 860px) {
  #report-first .rf-feet-r .boldy-featured .boldy-cutout,
  #report-first .rf-feet-r .boldy-featured .boldy-cutout img,
  #report-first .rf-feet-r .boldy-featured .boldy-cutout picture {
    height: 132px;
    max-height: 132px;
  }
}
@media (max-width: 430px) {
  #report-first .boldy-featured .boldy-cutout,
  #report-first .boldy-featured .boldy-cutout img,
  #report-first .boldy-featured .boldy-cutout picture {
    height: 88px;
    max-height: 88px;
  }
  #report-first .boldy-hero { gap: 8px; padding: 4px 0 0; }
  #report-first #boldy-now {
    padding-bottom: calc(var(--jumph, 48px) + env(safe-area-inset-bottom, 0px) + 8px);
    scroll-margin-bottom: calc(var(--jumph, 48px) + env(safe-area-inset-bottom, 0px) + 12px);
  }
}
@media (max-width: 320px) {
  #report-first .boldy-featured .boldy-cutout,
  #report-first .boldy-featured .boldy-cutout img,
  #report-first .boldy-featured .boldy-cutout picture {
    height: 76px;
    max-height: 76px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #report-first .boldy-featured .boldy-cutout img,
  #report-first .boldy-featured.is-inview .boldy-cutout img {
    animation: dm-glide 4.8s ease-in-out infinite;
  }
}
@keyframes dm-glide {
  0%, 100% { transform: translate(0, 0) rotate(-1.2deg); }
  50% { transform: translate(7px, -5px) rotate(1.4deg); }
}

/* Story section cutout: no black square crop */
#boldy .boldy-cutout {
  max-width: 200px;
  width: auto;
  margin: 12px 0 18px;
  background: transparent;
}
#boldy .boldy-cutout picture,
#boldy .boldy-cutout img {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 260px;
  aspect-ratio: auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 8px rgba(0, 184, 255, .5)) drop-shadow(0 8px 16px rgba(0, 184, 255, .25));
}

/* ----- Brand header bar (new; does not replace #brands or other tickers) ----- */
.dm-brands {
  position: relative;
  z-index: 4;
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(0, 184, 255, .4);
  border-bottom: 1px solid rgba(0, 184, 255, .4);
  box-shadow: 0 8px 28px -16px rgba(0, 184, 255, .55);
  padding: 10px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: clip;
}
.dm-brands-in {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.dm-brands-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  border: 1px solid rgba(0, 184, 255, .35);
  background: #050608;
}
.dm-brands-k {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  background: #00B8FF;
  color: #000;
  font: 800 11px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid rgba(0, 184, 255, .6);
}
.dm-brands-row[data-kind="ski"] .dm-brands-k {
  background: #000;
  color: #00B8FF;
  box-shadow: inset 0 0 0 1px #00B8FF;
}
.dm-brands-vp {
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
}
.dm-brands-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: stretch;
}
.dm-brands-set {
  display: flex;
  align-items: stretch;
  width: max-content;
}
.dm-brands-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid rgba(0, 184, 255, .2);
  border-radius: 0;
  color: #fff;
  text-decoration: none;
  font: 800 13px/1 var(--display, Inter, system-ui, sans-serif);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.dm-brands-a.is-nat {
  color: #C6FF3D;
}
.dm-brands-a.is-nat::after {
  content: "Nat’s board";
  margin-left: 8px;
  color: #C6FF3D;
  font: 700 9px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (hover: hover) {
  .dm-brands-a:hover,
  .dm-brands-a:focus-visible {
    color: #000;
    background: #00B8FF;
    box-shadow: 0 0 0 1px #00B8FF, 0 0 18px rgba(0, 184, 255, .55);
    outline: none;
    text-shadow: none;
  }
  .dm-brands-a.is-nat:hover,
  .dm-brands-a.is-nat:focus-visible {
    color: #000;
    background: #C6FF3D;
    box-shadow: 0 0 0 1px #C6FF3D, 0 0 18px rgba(198, 255, 61, .45);
  }
  .dm-brands-a.is-nat:hover::after,
  .dm-brands-a.is-nat:focus-visible::after { color: #000; }
}
.dm-brands-a:focus-visible {
  outline: 2px solid #00B8FF;
  outline-offset: -2px;
}
.dm-brands-note {
  margin: 2px 0 0;
  font: 600 10px/1.35 var(--mono, ui-monospace, monospace);
  letter-spacing: .04em;
  color: #9aa;
}
@media (prefers-reduced-motion: no-preference) {
  .dm-brands-row[data-kind="snowboard"] .dm-brands-track {
    animation: dm-brands-tick var(--dm-brands-dur-sb, 48s) linear infinite;
  }
  .dm-brands-row[data-kind="ski"] .dm-brands-track {
    animation: dm-brands-tick var(--dm-brands-dur-ski, 56s) linear infinite;
  }
  .dm-brands-row:hover .dm-brands-track,
  .dm-brands-row:focus-within .dm-brands-track {
    animation-play-state: paused;
  }
}
@keyframes dm-brands-tick {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 430px) {
  .dm-brands { padding: 8px max(10px, env(safe-area-inset-right)) 12px max(10px, env(safe-area-inset-left)); }
  .dm-brands-k { padding: 0 8px; font-size: 10px; letter-spacing: .12em; }
  .dm-brands-a { padding: 0 12px; font-size: 12px; }
  .dm-brands-a.is-nat::after { display: none; } /* keep the row compact; title still names it */
  .dm-brands-note { font-size: 9px; }
}

/* ----- Reduced motion: turn this layer off ----- */
@media (prefers-reduced-motion: reduce) {
  .rv, .rv.in,
  html.dm-anim .dm-rise, html.dm-anim .dm-rise.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .dm-bar, .dm-bar.is-in { transform: none; transition: none; }
  #report-first .boldy-featured .boldy-cutout,
  #report-first .boldy-featured .boldy-cutout img,
  #report-first .boldy-featured.is-inview .boldy-cutout img {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .dm-brands-track { animation: none !important; transform: none !important; }
  .dm-brands-vp { overflow-x: auto; mask-image: none; -webkit-overflow-scrolling: touch; }
  .dm-brands-set[aria-hidden="true"] { display: none; }
}
