/* ==========================================================================
   Comoze — home page v2
   White-first layout: model carousel + four-card range.
   ========================================================================== */

/* --- Hero carousel ------------------------------------------------------- */

.masthead {
  position: relative;
  min-height: 100svh;
  background: var(--paper);
  overflow: hidden;
}

.masthead::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -12%;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 28, 0.05), transparent 68%);
  pointer-events: none;
}

.masthead__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(18px, 2.4vw, 34px));
  padding-bottom: clamp(18px, 2.6vw, 32px);
}

.masthead__slides {
  display: grid;
}

.masthead__slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(30px, 4.5vw, 72px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    visibility 0.5s;
  pointer-events: none;
}

.masthead__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.masthead__copy {
  max-width: 620px;
}

.masthead__eyebrow {
  color: var(--muted);
}

.masthead__title {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(112px, 14.5vw, 210px);
  font-stretch: 104%;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.76;
  text-transform: uppercase;
}

.masthead__sub {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 36px);
  font-stretch: 102%;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.masthead__lead {
  max-width: 47ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
}

.masthead__stats {
  display: flex;
  gap: clamp(24px, 3.4vw, 54px);
  margin-top: clamp(24px, 2.8vw, 34px);
  padding-top: clamp(16px, 1.8vw, 22px);
  border-top: 1px solid var(--line);
}

.masthead__stat strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.masthead__stat strong small {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.masthead__stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(24px, 3vw, 36px);
}

/* Product stage */

.masthead__stage {
  position: relative;
  height: clamp(360px, 34vw, 480px);
  border-radius: 30px;
  background: linear-gradient(180deg, #f8f9f7 0%, #eef0ec 100%);
  overflow: hidden;
  isolation: isolate;
}

.masthead__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 11, 12, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 11, 12, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(72% 66% at 48% 48%, #000 24%, transparent 100%);
  -webkit-mask-image: radial-gradient(72% 66% at 48% 48%, #000 24%, transparent 100%);
}

.masthead__ghost {
  position: absolute;
  top: -4%;
  right: -2%;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(220px, 27vw, 400px);
  font-weight: 900;
  font-stretch: 110%;
  line-height: 0.7;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 11, 12, 0.1);
  user-select: none;
}

.masthead__bike {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 76%;
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 24px rgba(10, 11, 12, 0.12));
}

.masthead__stage-top,
.masthead__stage-foot {
  position: absolute;
  right: 22px;
  left: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead__stage-top {
  top: 20px;
}

.masthead__stage-foot {
  bottom: 18px;
}

.masthead__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.masthead__pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

/* Side arrows */

.masthead__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

.masthead__arrow--prev {
  left: 0;
}

.masthead__arrow--next {
  right: 0;
}

.masthead__arrow:hover {
  color: var(--orange);
}

.masthead__arrow--prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.masthead__arrow--next:hover {
  transform: translateY(-50%) translateX(3px);
}

.masthead__arrow svg {
  width: 27px;
  height: 27px;
}

/* --- Range --------------------------------------------------------------- */

.range {
  padding: clamp(64px, 7.5vw, 104px) 0 clamp(60px, 7vw, 96px);
  background: var(--paper);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.range__head {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.range__title {
  margin-top: 14px;
  font-size: clamp(42px, 5vw, 76px);
}

.range__intro {
  max-width: 40ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.range__intro .link-arrow {
  margin-top: 18px;
}

.range__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
  margin-top: clamp(24px, 2.8vw, 36px);
}

.range-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.range-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 11, 12, 0.22);
  box-shadow: 0 22px 44px rgba(10, 11, 12, 0.08);
}

.range-card__media {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(190px, 16vw, 238px);
  padding: 18px;
  background: var(--paper-2);
  overflow: hidden;
}

.range-card__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(10, 11, 12, 0.1));
  transition: transform 0.5s var(--ease);
}

.range-card:hover .range-card__media img {
  transform: scale(1.035);
}

.range-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 19px 20px 20px;
}

.range-card__series {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.range-card__name {
  margin: 7px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 850;
  font-stretch: 104%;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: uppercase;
}

.range-card__tag {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.range-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.range-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.range-card:hover .range-card__link svg {
  transform: translate(3px, -3px);
}

.range-card__link span {
  color: var(--orange-deep);
}

.range-card__arrow {
  display: inline-flex;
}

.range-card__arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* T1 teaser tile */

.range-card--soon .range-card__media {
  background: #fff2ec;
}

.range-card__soon-word {
  font-family: var(--font-display);
  font-size: clamp(86px, 9vw, 132px);
  font-weight: 900;
  font-stretch: 110%;
  letter-spacing: -0.08em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--orange);
}

.range-card__soon-note {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  color: var(--orange-deep);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .masthead__title {
    font-size: clamp(96px, 16vw, 168px);
  }

  .masthead__stage {
    height: clamp(340px, 44vw, 460px);
  }

  .range__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .range-card__media {
    height: 230px;
  }
}

@media (max-width: 1080px) {
  .masthead__arrow {
    display: none;
  }
}

@media (max-width: 860px) {
  .masthead {
    min-height: auto;
  }

  .masthead__inner {
    min-height: auto;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 30px;
  }

  .masthead__slide {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .masthead__copy {
    order: 1;
    max-width: none;
  }

  .masthead__stage {
    order: 2;
    height: clamp(260px, 44vw, 340px);
  }

  .masthead__title {
    font-size: clamp(92px, 22vw, 150px);
    margin-top: 10px;
  }

  .masthead__sub {
    font-size: clamp(22px, 4.6vw, 30px);
  }

  .masthead__lead {
    max-width: 54ch;
  }

  .range__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .range__intro {
    max-width: 52ch;
  }
}

@media (max-width: 600px) {
  .masthead__inner {
    padding-bottom: 20px;
  }

  .masthead__slide {
    gap: 18px;
  }

  .masthead__eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .masthead__title {
    font-size: clamp(80px, 26vw, 118px);
    line-height: 0.78;
  }

  .masthead__sub {
    font-size: 22px;
  }

  .masthead__lead {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .masthead__stats {
    gap: 18px;
    margin-top: 16px;
    padding-top: 12px;
  }

  .masthead__stat strong {
    font-size: 23px;
  }

  .masthead__stat span {
    font-size: 8px;
  }

  .masthead__actions {
    gap: 16px;
    margin-top: 18px;
  }

  .masthead__actions .btn {
    min-height: 50px;
    padding-left: 18px;
    font-size: 10px;
  }

  .masthead__stage {
    height: 240px;
    border-radius: 22px;
  }

  .masthead__bike {
    bottom: 26px;
    max-width: 92%;
    max-height: 72%;
  }

  .masthead__ghost {
    font-size: 220px;
    top: 0;
  }

  .masthead__stage-top,
  .masthead__stage-foot {
    right: 15px;
    left: 15px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .range {
    padding-top: 54px;
  }

  .range__title {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .range__grid {
    gap: 10px;
    margin-top: 20px;
  }

  .range-card {
    border-radius: 14px;
  }

  .range-card__media {
    height: 140px;
    padding: 12px;
  }

  .range-card__body {
    padding: 13px 13px 14px;
  }

  .range-card__series {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .range-card__name {
    margin: 6px 0;
    font-size: 28px;
  }

  .range-card__tag {
    font-size: 11px;
    line-height: 1.45;
  }

  .range-card__link {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .range-card__link svg {
    width: 12px;
    height: 12px;
  }

  .range-card__soon-word {
    font-size: 72px;
  }

  .range-card__soon-note {
    bottom: 12px;
    font-size: 7px;
    letter-spacing: 0.1em;
  }
}

/* Short laptop screens: keep the whole first screen above the fold. */

@media (min-width: 861px) and (max-height: 820px) {
  .masthead__inner {
    padding-top: calc(var(--header-h) + 12px);
    padding-bottom: 18px;
  }

  .masthead__title {
    font-size: clamp(100px, 12.5vw, 170px);
  }

  .masthead__stage {
    height: clamp(330px, 32vw, 430px);
  }

  .masthead__stats {
    margin-top: 22px;
    padding-top: 14px;
  }

  .masthead__actions {
    margin-top: 24px;
  }
}

@media (max-width: 380px) {
  .masthead__title {
    font-size: 74px;
  }

  .masthead__stats {
    gap: 12px;
  }

  .masthead__stat strong {
    font-size: 21px;
  }

  .range-card__media {
    height: 124px;
  }
}
