/*
 * A fashion campaign within the existing light storefront, in Midnight Ink:
 * the men's colour (operator, 1 October 2026). Ink navy for the ground, slate
 * navy behind a picture, rhodium silver where this panel used to carry rose,
 * and the brand pink kept for one mark, the full stop after MEN.
 *
 * The rules below still say --berry, --rose, --blush and --champagne. Inside
 * this panel those four names hold the men's colours, so every rule turns
 * with them and none had to be restated.
 */
.men-home-launch {
  --berry: #141b2d;
  --rose: #c7c8ca;
  --blush: #c7c8ca;
  --champagne: #26324a;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 46% 54%;
  grid-template-rows: 1fr auto;
  min-height: clamp(560px, 46vw, 700px);
  margin-block: 32px 64px;
  background: var(--berry);
  view-timeline-name: --men-arrival;
  view-timeline-axis: block;
}
.men-launch-copy {
  position: relative;
  isolation: isolate;
  grid-column: 1;
  grid-row: 1;
  padding: clamp(32px, 4vw, 64px);
  color: var(--offwhite);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
}
/*
 * The collage is blended by luminosity into the ink below it, so it reads as
 * texture in Midnight Ink. Laid over the ink in plain grey, as it was until
 * 15 October 2026, it washed the panel to slate (operator: "can we use
 * midnight ink blue color for men").
 */
.men-launch-collage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--berry);
}
.men-launch-collage-grid {
  position: absolute;
  inset: -12%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  transform: rotate(-8deg);
  opacity: 0.3;
  filter: grayscale(1) brightness(0.8);
  mix-blend-mode: luminosity;
}
.men-launch-collage-grid > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 35%;
}
.men-launch-copy .men-launch-intro {
  font:
    500 11px/1.5 Inter,
    sans-serif;
  letter-spacing: 0.16em;
  color: var(--rose);
  margin: 0;
}
.men-launch-copy h2 {
  color: var(--offwhite);
  margin: 10px 0 24px;
  font-family: Jost, sans-serif;
  font-weight: 400;
}
.men-launch-word {
  display: block;
  font-size: clamp(116px, 13vw, 194px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.085em;
  margin-left: -0.05em;
}
.men-launch-word > span {
  color: var(--signature);
}
.men-launch-line {
  display: block;
  font-size: clamp(29px, 3.1vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.men-launch-invitation {
  width: min(100%, 300px);
}
.men-launch-invitation > p {
  font:
    400 14px/1.7 Inter,
    sans-serif;
  color: var(--blush);
  margin-bottom: 24px;
}
.men-launch-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  font:
    500 13px/1.5 Inter,
    sans-serif;
  color: var(--offwhite);
  text-decoration: none;
}
.men-launch-cta > span:first-child {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: var(--rose);
}
.men-launch-arrow {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border: 1px solid var(--rose);
  border-radius: 50%;
}
.men-launch-arrow img {
  filter: brightness(0) invert(1);
}
/*
 * The picture spans both rows and is laid into its box, so its own height
 * never sets the panel's.
 */
.men-launch-portrait {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--champagne);
}
.men-launch-portrait > picture {
  display: contents;
}
.men-launch-portrait img {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  /* Centred: the ring sits near the picture's left edge and the stud near its right, and the box runs from a
     little taller than wide (1024 px) to a little wider (2560), so either edge may be trimmed. */
  object-position: 50% 50%;
}
/*
 * The pair card has its own row under the words, on the ink: laid across the
 * picture's edge, as it was until 15 October 2026, it covered the ring.
 */
.men-launch-detail {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  margin: 0 0 clamp(32px, 4vw, 64px) clamp(32px, 4vw, 64px);
  transform: rotate(-6deg);
  width: clamp(154px, 15.5vw, 228px);
  padding: 8px 8px 0;
  background: var(--offwhite);
  color: var(--berry);
  z-index: 3;
  text-decoration: none;
}
.men-launch-detail-photo {
  aspect-ratio: 1;
  overflow: hidden;
}
.men-launch-detail-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.men-launch-detail > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  font:
    500 11px/1.5 Inter,
    sans-serif;
  padding: 6px;
}
.men-launch-pair {
  width: clamp(210px, 22vw, 310px);
}
.men-launch-pair-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.men-launch-pair-photos figure {
  margin: 0;
  min-width: 0;
}
.men-launch-pair-photos figure > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.men-launch-pair-photos figcaption {
  padding: 8px 3px 3px;
  font: 400 12px / 1.3 Jost, sans-serif;
}
.men-home-launch a:focus-visible {
  outline: 3px solid var(--signature);
  outline-offset: 5px;
}
.men-launch-cta:focus-visible {
  outline-color: var(--offwhite);
}
@media (hover: hover) {
  .men-launch-cta:hover .men-launch-arrow {
    background: var(--blush);
  }
  .men-launch-cta:hover .men-launch-arrow img {
    filter: none;
  }
  .men-launch-detail:hover {
    transform: rotate(-2deg) translateY(-5px);
  }
}
/*
 * From 768px the collage is laid on the whole left column, both rows, so the
 * card sits on the same texture as the words.
 */
@media (min-width: 768px) {
  .men-launch-copy {
    position: static;
    padding-bottom: clamp(24px, 2.5vw, 40px);
  }
  .men-launch-collage {
    inset: 0 auto 0 0;
    width: 46%;
  }
}
@media (max-width: 1100px) and (min-width: 768px) {
  .men-launch-copy {
    padding: 32px;
  }
  .men-launch-invitation {
    max-width: 244px;
  }
  .men-launch-cta {
    gap: 12px;
  }
  .men-launch-arrow {
    width: 48px;
    height: 48px;
  }
  .men-launch-copy {
    padding-bottom: 24px;
  }
  .men-launch-detail {
    margin: 0 0 32px 32px;
    width: 164px;
  }
  .men-launch-pair {
    width: 218px;
  }
}
@media (max-width: 767px) {
  .men-home-launch {
    width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    height: auto;
    margin-block: 24px 40px;
  }
  .men-launch-copy {
    padding: 26px 24px 32px;
    gap: 28px;
  }
  .men-launch-copy .men-launch-intro {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .men-launch-copy h2 {
    margin: 0;
  }
  .men-launch-word {
    font-size: clamp(114px, 31vw, 190px);
  }
  .men-launch-line {
    font-size: 32px;
    margin-top: 16px;
  }
  .men-launch-invitation {
    width: 100%;
    max-width: 100%;
  }
  .men-launch-invitation > p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .men-launch-invitation > p br {
    display: none;
  }
  .men-launch-cta {
    max-width: 310px;
  }
  .men-launch-portrait {
    height: 440px;
  }
  .men-launch-portrait img {
    object-position: 50% 48%;
  }
  .men-launch-detail {
    left: 12px;
    bottom: 16px;
    width: 132px;
    transform: rotate(-6deg);
    padding: 5px 5px 0;
  }
  .men-launch-detail > span {
    font-size: 9px;
    min-height: 32px;
    padding: 4px;
    gap: 4px;
  }
  .men-launch-detail > span > img {
    width: 15px;
  }
  .men-launch-pair {
    position: relative;
    align-self: center;
    width: calc(100% - 48px);
    left: auto;
    right: auto;
    bottom: auto;
    margin: 20px 0 24px;
    transform: rotate(-3deg);
  }
  .men-launch-pair-photos figcaption {
    font-size: 12px;
    padding-top: 5px;
  }
  .men-launch-pair > span {
    font-size: 12px;
  }
  @media (hover: hover) {
    .men-launch-detail:hover {
      transform: rotate(-2deg) translateY(-5px);
    }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .men-launch-arrow,
  .men-launch-arrow img {
    transition:
      background 0.2s,
      filter 0.2s,
      transform 0.3s;
  }
  .men-launch-detail {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .men-launch-portrait img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .men-launch-portrait:hover img {
    transform: scale(1.035);
  }
  @supports (animation-timeline: view()) {
    .men-launch-copy h2 {
      animation: men-type-arrival linear both;
      animation-timeline: --men-arrival;
      animation-range: entry 0% entry 95%;
    }
    .men-launch-portrait img {
      animation: men-portrait-arrival linear both;
      animation-timeline: --men-arrival;
      animation-range: entry 0% cover 40%;
    }
    @keyframes men-type-arrival {
      from {
        transform: translateY(26px);
        opacity: 0.5;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }
    @keyframes men-portrait-arrival {
      from {
        transform: scale(1.08);
      }
      to {
        transform: scale(1);
      }
    }
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .store-nav ul {
    gap: 16px;
  }
}
