/* ==========================================================================
   NØRVE — Born for the Extreme
   Mobile-first. From 900px up, layout runs on a 1440px design canvas:
   1 design px = var(--u), so the desktop page scales 1:1 with the PDF.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --vw: 100vw;                 /* set to clientWidth by JS (excludes scrollbar) */
  --u: calc(var(--vw) / 390);  /* mobile unit, re-defined for desktop below   */
  --mu: calc(var(--vw) / 720); /* mountain unit on mobile                      */

  --ink: #000;
  --text: #3b3f46;
  --muted: #6c727b;
  --ice: #e7eef5;
  --ice-soft: #f1f5f9;
  --line: #d6dce3;
  --white: #fff;
  --dim: #8d9097;

  --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }

:focus-visible { outline: 2px solid #3a6ea5; outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 99px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

body.menu-open { overflow: hidden; }

/* ---------- Shared type ---------- */
.label {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text);
}
.label--light { color: rgba(255, 255, 255, .92); }
.label--dim { color: var(--dim); }

.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.section-title--center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --target: var(--ink);              /* bracket colour */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .3s var(--ease);
}

/* Target brackets: a pill outline masked down to its 4 rounded corners */
.btn::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--target);
  border-radius: 999px;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(to right, #000 0 22px, transparent 22px calc(100% - 22px), #000 calc(100% - 22px)),
    linear-gradient(to bottom, #000 0 32%, transparent 32% 68%, #000 68%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to right, #000 0 22px, transparent 22px calc(100% - 22px), #000 calc(100% - 22px)),
    linear-gradient(to bottom, #000 0 32%, transparent 32% 68%, #000 68%);
  mask-composite: intersect;
  opacity: 0;
  scale: .88;
  transition: opacity .25s var(--ease), scale .45s cubic-bezier(.34, 1.56, .64, 1);
}
.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
  scale: 1;
  animation: target-pulse 1.4s ease-in-out .45s infinite;
}
@keyframes target-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
.btn:active { transform: scale(.97); }

.btn--sm { height: 40px; padding: 0 22px; font-size: 14px; }
.btn--sm::before { inset: -5px; }
.btn--lg { height: 52px; padding: 0 32px; }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #1d2733; }

.btn--light { --target: var(--white); background: var(--white); color: var(--ink); }

.btn--outline { border: 1px solid var(--line); color: var(--ink); }
.btn--outline:hover,
.btn--outline:focus-visible { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Label roll-up */
.btn__chars {
  display: inline-flex;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25;
}
.btn__char {
  display: inline-block;
  text-shadow: 0 1.25em currentColor;   /* the copy waiting underneath */
  transition: transform .5s cubic-bezier(.7, 0, .2, 1);
  transition-delay: calc(var(--i) * 25ms);
}
.btn:hover .btn__char,
.btn:focus-visible .btn__char {
  transform: translateY(-1.25em);
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 80px, 0);
  transition:
    opacity 1.6s var(--ease) var(--d, 0s),
    transform 2s cubic-bezier(.16, 1, .3, 1) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   INTRO — curtain + light aurora sweep
   ========================================================================== */
.intro { display: none; }
.js .intro {
  display: block;
  position: fixed; inset: 0; z-index: 300;
  overflow: hidden;
  pointer-events: none;
}
body.is-intro { overflow: hidden; }

.intro__panel {
  position: absolute; top: 0; bottom: 0;
  width: 50.5%;
  background: #fff;
  will-change: transform;
}
.intro__panel--l { left: 0; }
.intro__panel--r { right: 0; }

.intro__aurora {
  position: absolute; left: 0; right: 0; top: 0;
  height: 260vh;
  background: linear-gradient(to bottom,
    #f6f9fc 0%,
    #e4eef8 16%,
    #d3e2f1 32%,
    #e7e6f5 48%,
    #eef4fa 62%,
    rgba(246, 249, 252, 0) 100%);
  will-change: transform;
}

.intro.is-playing .intro__panel--l { animation: intro-curtain-l 3s cubic-bezier(.76, 0, .24, 1) .4s forwards; }
.intro.is-playing .intro__panel--r { animation: intro-curtain-r 3s cubic-bezier(.76, 0, .24, 1) .4s forwards; }
.intro.is-playing .intro__aurora   { animation: intro-aurora 2s cubic-bezier(.65, 0, .35, 1) 2.8s forwards; }

@keyframes intro-curtain-l { to { transform: translateX(-101%); } }
@keyframes intro-curtain-r { to { transform: translateX(101%); } }
@keyframes intro-aurora    { to { transform: translateY(-260vh); } }

/* Slow hero entrance after the intro */
.site-header { opacity: 0; transition: opacity 3s var(--ease) .6s, transform .6s var(--ease); }
.is-loaded .site-header { opacity: 1; }

.hero__bg { transform: scale(1.08); transition: transform 4.5s cubic-bezier(.16, 1, .3, 1); }
.is-loaded .hero__bg { transform: none; }

.hero__line > span { transition: transform 3s cubic-bezier(.16, 1, .3, 1); }
.hero__line--indent > span { transition-delay: .3s; }

.hero__rider {
  filter: blur(12px);
  transform: translate3d(0, 90px, 0) scale(.94);
  transition: opacity 3s var(--ease) .4s, transform 3.6s cubic-bezier(.16, 1, .3, 1) .4s, filter 3s var(--ease) .4s, rotate .6s;
}
.is-loaded .hero__rider { filter: none; }

.hero__mark { transition: opacity 3.6s var(--ease) 1.2s; }
.hero__tag  { transition: opacity 3s var(--ease) 1s; }

.hero__foot { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 3s var(--ease) 1.4s, transform 3s cubic-bezier(.16, 1, .3, 1) 1.4s; }
.is-loaded .hero__foot { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .intro { display: none; }
  .site-header, .hero__foot { opacity: 1; transform: none; }
  .hero__rider, .hero__bg { filter: none; transform: none; }
}


/* ==========================================================================
   HEADER + MENU
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s;
}
.site-header > .btn { justify-self: end; }
.site-header.is-scrolled {
  background: #ffffff;
}
.site-header.is-hidden { transform: translateY(-110%); }
body.menu-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }

.logo {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
}

.menu-toggle {
  position: relative;
  justify-self: start;
  width: 44px; height: 44px;
  margin-left: -6px;
}
.menu-toggle__line {
  position: absolute; left: 6px;
  width: 32px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle__line:nth-child(1) { top: 17px; }
.menu-toggle__line:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  background: var(--white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__list { display: grid; gap: 4px; }
.menu__list a {
  display: inline-block;
  font-size: 44px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15;
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .25s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .32s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .39s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .46s; }
.menu.is-open .menu__list a { opacity: 1; transform: none; }
.menu__list a:hover { color: var(--muted); }
.menu__meta { display: grid; gap: 6px; color: var(--text); font-size: 15px; }
.menu__meta a:hover { color: var(--ink); }

/* Mobile header: logo left, burger right, no Shop Now */
.site-header { grid-template-columns: 1fr auto; }
.site-header > .btn { display: none; }
.logo { order: 1; justify-self: start; }
.menu-toggle { order: 2; justify-self: end; margin-left: 0; margin-right: -6px; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero { position: relative; }

/* Grey glow behind the rider (moves with the parallax) */
.hero__layer--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 65% at 78% 45%,
    rgba(110, 125, 140, .35) 0%,
    rgba(110, 125, 140, 0) 70%);
}

/* White bottom fade (stays on top of the grey) */
.hero__layer--bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
}

.hero__media {
  position: relative;
  height: max(600px, 86svh);
  overflow: hidden;
}

.hero__layer {
  position: absolute;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0);
  will-change: transform;
}
.hero__layer--bg { inset: -4%; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: 40% 70%; }

.hero__layer--mark {
  left: 4%; right: 4%; bottom: 22%;
  z-index: 1;
}
.hero__mark { width: 100%; height: auto; opacity: 0; transition: opacity 2.8s var(--ease) .6s; }

.hero__title {
  position: absolute; z-index: 2;
  left: var(--gutter); top: 96px;
  font-size: clamp(48px, 15vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 2s var(--ease);
}
.hero__line--indent { padding-left: .72em; }
.hero__line--indent > span { transition-delay: .12s; }

.hero__layer--rider {
  z-index: 3;
  left: -38%; width: 176%;
  top: 27%;
}
.hero__rider {
  width: 100%; height: auto;
  opacity: 0;
  transform: translate3d(0, 60px, 0) scale(.96);
  transition: opacity 2s var(--ease) .2s, transform 2.6s var(--ease) .2s;
}
.hero__rider { transform-origin: 50% 60%; rotate: var(--rot, 0deg); transition-property: opacity, transform, rotate; }

.hero__tag {
  position: absolute; z-index: 5;
  right: var(--gutter); top: 104px;
  text-align: right;
  opacity: 0; transition: opacity 1.8s var(--ease) .5s;
}
.hero__tag .label { font-size: 11px; }
.hero__est { font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -.03em; }

.hero__foot {
  position: relative; z-index: 5;
  display: grid; gap: 24px;
  padding: 0 var(--gutter) 64px;
  margin-top: -40px;
}
.hero__desc { font-size: 15px; color: var(--text); max-width: 48ch; }
.hero__foot .btn { justify-self: start; }

/* intro state */
.is-loaded .hero__line > span { transform: none; }
.is-loaded .hero__rider { opacity: 1; transform: none; }
.is-loaded .hero__mark { opacity: 0.8; }
.is-loaded .hero__tag { opacity: 1; }

/* ==========================================================================
   2. ABOUT — IT TAKES NERVE
   ========================================================================== */
.about {
  position: relative;
  background: linear-gradient(to bottom, #fff 0%, var(--ice-soft) 55%, var(--ice) 100%);
  overflow: hidden;
  padding: 56px 0 72px;
}
.about__canvas { position: relative; }
.about__stage { position: relative; height: 132vw; }

.about__text {
  font-size: 15px;
  color: var(--text);
  padding: 0 var(--gutter);
  max-width: 44ch;
  will-change: transform, opacity;
}
.about__text--a { margin: 0 0 8px auto; padding-left: 0; width: min(64vw, 340px); margin-right: var(--gutter); padding-right: 0; }
.about__text--b { margin-top: 8px; }

.about__ghost {
  position: absolute; z-index: 0;
  left: 0; right: 0;
  top: 56vw;
  line-height: 1;
  text-align: center;
  will-change: transform;
}

.about__ghost { aspect-ratio: 1347 / 227; }
.about__ghost::before,
.about__ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/svg/it-takes-nerve.svg") center / 100% 100% no-repeat;
}
/* sharp top */
.about__ghost::before {
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 70%);
}
/* blurred bottom */
.about__ghost::after {
  filter: blur(5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 75%);
  mask-image: linear-gradient(to bottom, transparent 30%, #000 75%);
}

.about__slot { position: absolute; }
.about__slot--photo-a { left: 6vw;  top: 6vw;  width: 30vw; height: 40vw; z-index: 1; }
.about__slot--rider   { left: -6vw; top: 28vw; width: 112vw; height: 62.5vw; z-index: 2; }
.about__slot--photo-b { right: 5vw; top: 96vw; width: 46vw; height: 30vw; z-index: 1; }

.about__photo { width: 100%; height: 100%; overflow: hidden; will-change: transform, opacity; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__rider { width: 100%; height: 100%; object-fit: contain; will-change: transform, opacity; }

/* hidden starting state — JS drives the scroll timeline */
.js .about__rider, .js .about__photo, .js .about__text { opacity: 0; }


/* ==========================================================================
   3. THE LOOK — pinned, 4 stages, circular glass-ripple transitions
   ========================================================================== */
.look {
  position: relative;
  height: 640vh;
  background: #fff;
}
.look__fade {
  position: absolute; inset: 0; z-index: 3;
  background: #fff;
  opacity: var(--f, 0);
  pointer-events: none;
}
.look__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

/* 1440×900 design frame, scaled to cover the viewport (like object-fit: cover) */
.look__frame {
  --fw: max(100vw, 160vh);
  --fu: calc(var(--fw) / 1440);
  position: absolute; left: 50%; top: 50%;
  width: var(--fw);
  aspect-ratio: 1440 / 900;
  translate: -50% -50%;
}

.look__stage {
  position: absolute; inset: 0;
  margin: 0;
  background: url("../assets/images/look-bg.webp") center / cover no-repeat;
  clip-path: circle(var(--r, 0px) at 50% 50%);
  will-change: clip-path;
}
.look__stage:first-child { clip-path: none; opacity: var(--bg, 0); }

.look__figure {
  position: absolute; left: 50%; bottom: 0;
  height: 100%; width: auto; max-width: none;
  translate: -50% 0;
  transform: scale(var(--s, 1));
  transform-origin: 50% 70%;
  will-change: transform;
}

/* callout: dot + line + copy */
.look__line {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.look__line polyline {
  fill: none;
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--c, 0));
}

.callout {
  --c: 0;
  position: absolute;
  left: calc(var(--x) / 1440 * 100%);
  top: calc(var(--y) / 900 * 100%);
  display: grid;
  padding-left: calc(22 * var(--fu));
  translate: 0 -50%;
  color: #fff;
  white-space: nowrap;
  opacity: var(--c);
}
.callout::before {                    /* glowing dot */
  content: "";
  position: absolute; left: 0; top: 50%;
  width: calc(10 * var(--fu)); height: calc(10 * var(--fu));
  min-width: 8px; min-height: 8px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 calc(5 * var(--fu)) rgba(255, 255, 255, .28);
}
.callout__label { font-size: max(11px, calc(17 * var(--fu))); font-weight: 300; text-transform: uppercase; line-height: 1.4; }
.callout__title { font-size: max(15px, calc(22 * var(--fu))); font-weight: 500; line-height: 1.3; }
.callout__text  { font-size: max(12px, calc(14 * var(--fu))); font-weight: 300; line-height: 1.5; opacity: .9; }
.callout > span { transform: translate3d(0, calc((1 - var(--c)) * 14px), 0); }

/* glass ripple ring — sits on the edge of the expanding circle */
.look__ripple {
  --r: 0px;
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: var(--ro, 0);
  visibility: var(--rv, hidden);
  -webkit-backdrop-filter: blur(10px) saturate(1.35) brightness(1.08);
  backdrop-filter: blur(10px) saturate(1.35) brightness(1.08);
  -webkit-mask: radial-gradient(circle at 50% 50%,
    transparent calc(var(--r) - 90px),
    #000 calc(var(--r) - 40px),
    #000 calc(var(--r) + 6px),
    transparent calc(var(--r) + 46px));
  mask: radial-gradient(circle at 50% 50%,
    transparent calc(var(--r) - 90px),
    #000 calc(var(--r) - 40px),
    #000 calc(var(--r) + 6px),
    transparent calc(var(--r) + 46px));
}
.look__ripple::before {                /* bright rim + faint inner echo ring */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%,
      transparent calc(var(--r) - 2px),
      rgba(255, 255, 255, .7) var(--r),
      transparent calc(var(--r) + 3px)),
    radial-gradient(circle at 50% 50%,
      transparent calc(var(--r) * .86 - 1px),
      rgba(255, 255, 255, .25) calc(var(--r) * .86),
      transparent calc(var(--r) * .86 + 2px));
}

/* fixed title + CTA */
.look__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 24px;
  padding: 0 var(--gutter) 48px;
  color: var(--white);
  opacity: var(--t, 0);
  transform: translate3d(0, calc((1 - var(--t, 0)) * 40px), 0);
}
.look__title {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
}

/* mobile: callout pinned top-left with a vertical line + dot */
@media (max-width: 899px) {
  .look__line { display: none; }

  .callout {
    left: calc(50% - 50vw + 36px);
    top: auto;
    bottom: calc(50% - 50vh + 290px + env(safe-area-inset-bottom, 0px));
    translate: none;
    padding-left: 14px;
    white-space: normal;
    max-width: calc(100vw - 72px);
  }

  /* vertical line */
  .callout::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, .9);
    transform-origin: top;
    transform: scaleY(var(--c));
  }

  /* dot, sitting just left of the line at the headline */
  .callout::before {
    display: block;
    left: -13px;
    top: 30px;
    width: 10px; height: 10px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .3);
  }

  .callout__label { font-size: 13px; }
  .callout__title { font-size: 16px; }
  .callout__text  { font-size: 13px; }

    /* shade sits above the jacket but below the callout */
  .look__stage::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: calc(50% - 50vh);
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top,
      rgba(40, 50, 66, .7) 0%,
      rgba(40, 50, 66, .45) 40%,
      transparent 75%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 80%);
    mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 80%);
  }
  .callout { z-index: 2; }
}

/* ==========================================================================
   4. COLLECTION
   ========================================================================== */
.collection { padding: 96px 0 104px; }
.collection__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  margin-bottom: 36px;
}
.collection__head .section-title { margin-top: 4px; }
.collection__head .btn { height: 44px; padding: 0 26px; }

.collection__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76vw;
  gap: 12px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.collection__grid::-webkit-scrollbar { display: none; }
.product { scroll-snap-align: start; }

.product__link { display: block; }
.product__media {
  position: relative;
  aspect-ratio: 445 / 597;
  overflow: hidden;
  background: var(--ice);
  transition: background-color .6s var(--ease);
}
.product__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  transform: scale(1.12) translateY(4%);
  transition: transform 2.4s cubic-bezier(.16, 1, .3, 1);
}
.product.is-in .product__media img { transform: none; }
.product__link:hover .product__media { background: #dbe5f0; }
.product__link:hover .product__media img { transform: scale(1.045); transition-duration: .9s; }

.product__info {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 12px 12px 0;
  font-size: 18px; line-height: 1.17;
}
.product__name { font-size: inherit; font-weight: 400; max-width: 12.5em; }
.product__name {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.product__link:hover .product__name { background-size: 100% 1px; }
.product__price { flex: none; }

/* Slower, smoother card reveal */
.js .product[data-reveal] {
  transform: translate3d(0, 90px, 0);
  transition:
    opacity 1.6s var(--ease) var(--d, 0s),
    transform 2s cubic-bezier(.16, 1, .3, 1) var(--d, 0s);
}
.js .product[data-reveal].is-in { transform: none; }

.product__name { font-size: .85em; }

/* Hover image swap */
.product__media .product__hover {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.product__link:hover .product__hover {
  opacity: 1;
  transform: scale(1);
}
.product__link:hover .product__media img:not(.product__hover) {
  opacity: 0;
}
.product__media img:not(.product__hover) {
  transition: transform 2.4s cubic-bezier(.16, 1, .3, 1), opacity .7s var(--ease);
}

/* ==========================================================================
   5. LOOKBOOK — pinned card stack
   ========================================================================== */
.lookbook { position: relative; height: 420vh; }
.lookbook__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
}
.lookbook__head {
  position: absolute; z-index: 0;
  left: 50%; top: 50%;
  translate: -50% -50%;
  text-align: center;
  will-change: transform, opacity;
}
.lookbook__head .label { margin-bottom: 4px; }
.lookbook__title {
  font-size: 12vw;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.lookbook__stack { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.lb-card {
  --k: 0;
  position: absolute; left: 50%; top: 50%;
  width: 60vw;
  aspect-ratio: 470 / 500;
  padding: max(6px, calc(10 * var(--u)));
  background: var(--ice);
  transform:
    translate(-50%, -50%)
    translate3d(calc(var(--x) * var(--u) * .45), calc(var(--y) * var(--u) * .45 + (1 - var(--k)) * 115vh), 0)
    rotate(calc(var(--r) * 1deg * (1 + (1 - var(--k)) * 2)));
  will-change: transform;
}
.lb-card img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   6. NEWSLETTER + MOUNTAINS
   ========================================================================== */
.newsletter {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #fff 0%, #f6f8fb 40%, #eef3f8 100%);
}
.newsletter__inner {
  position: relative; z-index: 2;
  display: grid; justify-items: center; text-align: center;
  padding: 120px var(--gutter) 0;
  will-change: transform;
}
.newsletter__inner .label { margin-bottom: 6px; }
.newsletter .section-title { font-size: 36px; }

.subscribe {
  display: flex;
  width: min(100%, 460px);
  margin-top: 28px;
  border: 1px solid #b9c0c8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  transition: border-color .4s, box-shadow .4s;
}
.subscribe:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .06); }
.subscribe__input {
  flex: 1; min-width: 0;
  height: 50px; padding: 0 18px;
  border: 0; background: transparent;
  font-size: 15px;
}
.subscribe__input::placeholder { color: #a1a6ad; }
.subscribe__input:focus { outline: none; }
.subscribe__btn {
  flex: none;
  margin: -1px -1px -1px 0;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-size: 15px;
  transition: background-color .4s var(--ease), transform .3s var(--ease);
}
.subscribe__btn:hover { background: #2b3a4d; }
.subscribe__btn:active { transform: scale(.97); }
.subscribe__msg { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: var(--text); }
.subscribe__msg.is-error { color: #a3352b; }

.btn:hover .btn__char,
.btn:focus-visible .btn__char,
.subscribe__btn:hover .btn__char,
.subscribe__btn:focus-visible .btn__char {
  transform: translateY(-1.25em);
}

.mountains {
  position: relative;
  height: calc(485 * var(--mu));
  margin-top: 40px;
}
.mountains img {
  position: absolute;
  object-fit: fill;
  will-change: transform;
}
.mountains__back  { left: calc(50% - 720 * var(--mu)); bottom: 0; width: calc(1905 * var(--mu)); height: calc(390 * var(--mu)); max-width: none; }
.mountains__front { left: calc(50% - 1160 * var(--mu)); bottom: calc(-98 * var(--mu)); width: calc(1812 * var(--mu)); height: calc(583 * var(--mu)); max-width: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 64px var(--gutter) 28px;
  overflow: hidden;
}
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer__col--brand { grid-column: 1 / -1; order: -1; }
.footer__col--contact { text-align: right; }
.footer__col .label { font-size: 13px; margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 10px; font-size: 13px; text-transform: uppercase; }

.footer__col a { position: relative; display: inline-block; transition: opacity .3s; }
.footer__col--links a::after,
.footer__legal a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.footer__col--links a:hover::after,
.footer__legal a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__col--contact a { display: inline-flex; align-items: flex-start; gap: 10px; text-align: right; }
.footer__col--contact a:hover { opacity: .7; }
.footer__col--contact svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }

.footer__slogan { font-size: 26px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 14px; }

.footer__col--brand { text-align: center; }
.socials { justify-content: center; }

.socials { display: flex !important; gap: 12px; }
.social {
  display: grid !important; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.social svg { width: 16px; height: 16px; }
.social:hover { background: var(--white); color: var(--ink); border-color: var(--white); transform: translateY(-3px); }

.footer__mark {
  width: 100%; height: auto;
  margin: 48px 0 0;
  opacity: .2;
  pointer-events: none;
  user-select: none;
}
.footer__bottom {
  position: relative; z-index: 1;
  display: grid; gap: 12px;
  padding-top: 18px;
  margin-top: -6%;
  border-top: 1px solid rgba(255, 255, 255, .45);
  font-size: 12px;
  text-transform: uppercase;
}
.footer__legal { display: flex; align-items: center; gap: 16px; }
.footer__legal li + li { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .45); }
.footer__legal a { position: relative; }

@media (max-width: 599px) {
  .footer__bottom { justify-items: center; text-align: center; }
  .footer__legal { justify-content: center; order: -1; }
}

/* ==========================================================================
   TABLET (600–899)
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .collection__grid { grid-auto-columns: 44vw; }
  .lb-card { width: 46vw; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__col--brand { grid-column: auto; order: 0; text-align: center; }
  .socials { justify-content: center; }
  .footer__bottom { grid-auto-flow: column; justify-content: space-between; }
}

/* ==========================================================================
   DESKTOP CANVAS (≥900) — 1:1 with the 1440 design
   ========================================================================== */
@media (min-width: 900px) {
  :root {
    --u: calc(min(var(--vw), 1920px) / 1440);
    --mu: var(--u);
    --gutter: calc(40 * var(--u));
  }

  .label { font-size: max(12px, calc(18 * var(--u))); }
  .section-title { font-size: calc(64 * var(--u)); line-height: 1.125; }
  .newsletter .section-title { font-size: calc(64 * var(--u)); }

  .btn--sm { height: calc(45 * var(--u)); min-width: calc(180 * var(--u)); font-size: max(13px, calc(16 * var(--u))); }
  .btn--lg { height: calc(56 * var(--u)); min-width: calc(250 * var(--u)); font-size: max(13px, calc(16 * var(--u))); }

  /* header */
  .site-header { height: calc(70 * var(--u)); padding: 0 var(--gutter); }
  .logo { font-size: calc(46 * var(--u)); }
  .menu-toggle { margin-left: calc(4 * var(--u)); }
  .menu { padding: calc(160 * var(--u)) var(--gutter) var(--gutter); flex-direction: row; align-items: flex-end; }
  .menu__list a { font-size: calc(110 * var(--u)); }
  .menu__meta { text-align: right; font-size: max(14px, calc(18 * var(--u))); }
  
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .site-header > .btn { display: inline-flex; }
  .logo { order: 0; justify-self: center; }
  .menu-toggle { order: 0; justify-self: start; margin-right: 0; }

  /* hero */
  .hero { height: calc(1080 * var(--u)); }
  .hero__media { position: absolute; inset: 0 0 auto; height: calc(1070 * var(--u)); overflow: visible; }
  .hero__layer--bg { inset: auto; left: calc(-30 * var(--u)); top: calc(-20 * var(--u)); width: calc(1500 * var(--u)); height: calc(990 * var(--u)); overflow: hidden; }
  .hero__bg { object-position: 50% 50%; }
  .hero__layer--mark { left: calc(80 * var(--u)); right: auto; bottom: auto; top: calc(539 * var(--u)); width: calc(1280 * var(--u)); }
  .hero__title { left: calc(51 * var(--u)); top: calc(106 * var(--u)); font-size: calc(100 * var(--u)); }
  .hero__line--indent { padding-left: calc(73 * var(--u)); }
  .hero__layer--rider { left: 0; top: 0; width: calc(1440 * var(--u)); }
  .hero__tag { top: calc(131 * var(--u)); right: var(--gutter); }
  .hero__tag .label { font-size: max(12px, calc(18 * var(--u))); }
  .hero__est { font-size: calc(64 * var(--u)); margin-top: calc(-2 * var(--u)); }
  .hero__foot { position: absolute; inset: calc(948 * var(--u)) var(--gutter) auto calc(610 * var(--u)); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 0; margin: 0; }
  .hero__desc { width: calc(490 * var(--u)); max-width: none; font-size: max(13px, calc(16 * var(--u))); line-height: 1.5; }
  .hero__foot .btn { margin-top: calc(16 * var(--u)); }

  /* about */
  .about { padding: 0; height: calc(1070 * var(--u)); }
  .about__canvas, .about__stage { position: absolute; inset: 0; height: auto; }
  .about__text { position: absolute; padding: 0; font-size: max(13px, calc(16 * var(--u))); line-height: 1.5; margin: 0; }
  .about__text--a { left: calc(851 * var(--u)); top: calc(220 * var(--u)); width: calc(380 * var(--u)); max-width: none; }
  .about__text--b { left: calc(220 * var(--u)); top: calc(824 * var(--u)); width: calc(400 * var(--u)); max-width: none; }
  .about__ghost { left: calc(49 * var(--u)); right: auto; width: calc(1347 * var(--u)); top: calc(450 * var(--u)); }
  .about__slot--photo-a { left: calc(200 * var(--u)); top: calc(120 * var(--u)); width: calc(200 * var(--u)); height: calc(267 * var(--u)); }
  .about__slot--rider   { left: calc(219 * var(--u)); top: calc(270 * var(--u)); width: calc(1075 * var(--u)); height: calc(600 * var(--u)); }
  .about__slot--photo-b { left: calc(990 * var(--u)); right: auto; top: calc(703 * var(--u)); width: calc(300 * var(--u)); height: calc(200 * var(--u)); }
  .about__ghost::after { filter: blur(calc(14 * var(--u))); }

  /* the look */
  .look__shade { background: linear-gradient(to right, rgba(40,46,56,.25), rgba(40,46,56,0) 40%); }
  .look__content { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 var(--gutter); }
  .look__title { font-size: calc(64 * var(--u)); line-height: 1.125; margin-top: calc(6 * var(--u)); }

  /* collection */
  .collection { padding: calc(198 * var(--u)) 0 calc(170 * var(--u)); }
  .collection__head { margin-bottom: calc(49 * var(--u)); align-items: flex-start; }
  .collection__head .section-title { margin-top: calc(6 * var(--u)); }
  .collection__head .btn { height: calc(56 * var(--u)); margin-top: calc(53 * var(--u)); }
  .collection__grid {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    gap: calc(12 * var(--u)); overflow: visible;
  }
  .product__info { padding: calc(12 * var(--u)) calc(12 * var(--u)) 0; font-size: calc(24 * var(--u)); }

  /* lookbook */
  .lookbook__head .label { margin-bottom: calc(2 * var(--u)); }
  .lookbook__title { font-size: calc(100 * var(--u)); }
  .lb-card { width: calc(470 * var(--u)); }
  .lb-card { transform:
    translate(-50%, -50%)
    translate3d(calc(var(--x) * var(--u)), calc(var(--y) * var(--u) + (1 - var(--k)) * 115vh), 0)
    rotate(calc(var(--r) * 1deg * (1 + (1 - var(--k)) * 2))); }
  .lb-card--front { width: calc(490 * var(--u)); aspect-ratio: 490 / 450; }

  /* newsletter */
  .newsletter__inner { padding: calc(358 * var(--u)) var(--gutter) 0; }
  .newsletter__inner .label { margin-bottom: calc(4 * var(--u)); }
  .subscribe { width: calc(500 * var(--u)); margin-top: calc(28 * var(--u)); }
  .subscribe__input { height: calc(56 * var(--u)); padding: 0 calc(16 * var(--u)); font-size: max(13px, calc(16 * var(--u))); }
  .subscribe__btn { width: calc(138 * var(--u)); font-size: max(13px, calc(16 * var(--u))); }
  .mountains { margin-top: calc(80 * var(--u)); }

  /* footer */
  .footer { height: calc(779 * var(--u)); padding: calc(79 * var(--u)) var(--gutter) 0; }
  .footer__top { grid-template-columns: 1fr auto 1fr; gap: 0; }
  .footer__col .label { font-size: max(12px, calc(18 * var(--u))); margin-bottom: calc(18 * var(--u)); }
  .footer__col ul { gap: calc(16 * var(--u)); font-size: max(11px, calc(15 * var(--u))); line-height: 1.07; }
  .footer__col--brand { padding-top: 0; }
  .footer__slogan { font-size: calc(32 * var(--u)); line-height: 1.2; margin-bottom: calc(24 * var(--u)); }
  .socials { gap: calc(14 * var(--u)); }
  .social { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
  .social svg, .footer__col--contact svg { width: max(12px, calc(16 * var(--u))); height: max(12px, calc(16 * var(--u))); }
  .footer__mark { position: absolute; left: 0; top: calc(269 * var(--u)); width: 100%; margin: 0; }
  .footer__bottom {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(646 * var(--u));
    margin: 0; padding-top: calc(22 * var(--u));
    font-size: max(11px, calc(15 * var(--u)));
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .about__rider, .js .about__photo, .js .about__text { opacity: 1; }
  .hero__line > span, .hero__rider { transform: none; opacity: 1; }
  .hero__mark, .hero__tag { opacity: 1; }
  .lb-card { --k: 1 !important; }
}

html { scroll-behavior: smooth; }
