/* 05-home-current.css */
.rp-apple-carousel-section {
  padding: clamp(72px, 11vw, 154px) 0;
  background: #fff;
}

.rp-apple-carousel-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.rp-apple-carousel-head h2 {
  max-width: 900px;
  font-size: clamp(50px, 10vw, 118px);
}

.rp-apple-carousel-head p {
  max-width: 620px;
  margin: 0;
  color: var(--rp-muted);
  font-size: clamp(18px, 2.6vw, 25px);
  line-height: 1.16;
  letter-spacing: -.04em;
}

.rp-apple-carousel {
  position: relative;
}

.rp-apple-carousel__controls {
  width: min(100% - 32px, var(--rp-container));
  margin: 0 auto 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rp-apple-carousel__controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rp-line-soft);
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--rp-ink);
  font-size: 30px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  transition: transform .22s var(--rp-ease), background .22s ease;
}

.rp-apple-carousel__controls button:hover {
  transform: translateY(-1px);
  background: #ececef;
}

.rp-apple-track {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(16px, calc((100vw - var(--rp-container)) / 2));
  padding: 0 max(16px, calc((100vw - var(--rp-container)) / 2)) 18px;
  -webkit-overflow-scrolling: touch;
}

.rp-apple-track::-webkit-scrollbar { display: none; }
.rp-apple-track { scrollbar-width: none; }

.rp-apple-slide {
  flex: 0 0 min(78vw, 430px);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 18px;
}

.rp-apple-slide__image {
  display: block;
  overflow: hidden;
  border-radius: clamp(26px, 4vw, 46px);
  background: #f5f5f7;
}

.rp-apple-slide__image img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  transition: transform .7s var(--rp-ease);
}

.rp-apple-slide:hover .rp-apple-slide__image img { transform: scale(1.025); }

.rp-apple-slide__text {
  display: grid;
  gap: 7px;
  padding: 0 3px;
}

.rp-apple-slide__text span {
  color: var(--rp-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .10em;
}

.rp-apple-slide__text h3 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  line-height: .94;
  letter-spacing: -.07em;
}

.rp-apple-slide__text p {
  margin: 0;
  color: var(--rp-muted);
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.rp-apple-slide__text a {
  width: fit-content;
  color: #06c;
  font-weight: 800;
  letter-spacing: -.025em;
}

.rp-corporate-black-wrap {
  padding: clamp(72px, 10vw, 144px) 0 clamp(84px, 12vw, 170px);
}

.rp-corporate-black {
  min-height: clamp(520px, 68svh, 760px);
  border-radius: clamp(34px, 5vw, 68px);
  background: #050505;
  color: #fff;
  padding: clamp(32px, 7vw, 86px);
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 18px;
  overflow: hidden;
}

.rp-corporate-black .rp-kicker,
.rp-corporate-black h2 {
  color: #fff;
}

.rp-corporate-black h2 {
  max-width: 980px;
  font-size: clamp(50px, 11vw, 132px);
}

.rp-corporate-black p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(19px, 3vw, 30px);
  line-height: 1.13;
  letter-spacing: -.045em;
}

.rp-btn-light {
  background: #fff;
  color: #050505;
}

.rp-btn-light:hover { background: rgba(255,255,255,.9); }

@media (min-width: 760px) {
  .rp-hero-statement__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  }

  .rp-featured-product {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  }

  .rp-apple-carousel-head {
    grid-template-columns: 1fr minmax(260px, 440px);
    align-items: end;
  }

  .rp-apple-slide {
    flex-basis: min(34vw, 430px);
  }
}

@media (max-width: 520px) {
  .rp-header--home .rp-nav {
    justify-content: flex-end;
  }

  .rp-header--home .rp-brand {
    display: none;
  }

  .rp-hero-statement {
    padding-top: calc(var(--rp-header-h) + 22px);
    gap: 30px;
  }

  .rp-hero-statement__logo img {
    width: min(62vw, 230px);
  }

  .rp-hero-statement h1 {
    font-size: clamp(54px, 16vw, 82px);
  }

  .rp-hero-statement p {
    font-size: 20px;
  }

  .rp-hero-statement__image img {
    aspect-ratio: 1 / .92;
  }

  .rp-featured-product {
    padding-top: 68px;
  }

  .rp-featured-product h2 {
    font-size: clamp(52px, 15vw, 82px);
  }

  .rp-featured-product p {
    font-size: 21px;
  }

  .rp-apple-carousel__controls {
    display: none;
  }

  .rp-apple-slide {
    flex-basis: min(82vw, 360px);
  }

  .rp-corporate-black {
    min-height: 560px;
    border-radius: 34px;
  }
}

/* Home V6 — header logo restored, stronger reveal, compact rhythm, login drawer */
body.is-login-open { overflow: hidden; }

.rp-header--home .rp-brand {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: inline-flex !important;
}

.rp-header--home .rp-nav {
  justify-content: space-between !important;
}

.rp-js .rp-reveal {
  opacity: 0;
  transform: translateY(48px) scale(.972);
  transition:
    opacity .95s ease,
    transform .95s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.rp-js .rp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rp-home-v5 .rp-hero-statement {
  min-height: min(88svh, 860px);
  padding: calc(var(--rp-header-h) + 4px) 0 clamp(34px, 5vw, 58px);
  gap: clamp(18px, 3vw, 34px);
}

.rp-home-v5 .rp-hero-statement__grid {
  gap: clamp(24px, 5vw, 72px);
}

.rp-home-v5 .rp-hero-statement__copy {
  gap: clamp(10px, 1.7vw, 16px);
}

.rp-home-v5 .rp-hero-statement h1 {
  font-size: clamp(56px, 12.5vw, 146px);
}

.rp-home-v5 .rp-hero-statement p {
  font-size: clamp(19px, 2.8vw, 29px);
}

.rp-home-v5 .rp-hero-statement__image {
  border-radius: clamp(30px, 4vw, 58px);
}

.rp-home-v5 .rp-featured-product {
  padding: clamp(40px, 7vw, 92px) 0;
  gap: clamp(24px, 5vw, 70px);
}

.rp-home-v5 .rp-featured-product__copy {
  gap: 12px;
}

.rp-home-v5 .rp-featured-product h2 {
  font-size: clamp(50px, 10vw, 118px);
}

.rp-home-v5 .rp-featured-product p {
  font-size: clamp(20px, 3vw, 30px);
}

.rp-home-v5 .rp-apple-carousel-section {
  padding: clamp(42px, 7vw, 92px) 0;
}

.rp-home-v5 .rp-apple-carousel-head {
  gap: 12px;
  margin-bottom: clamp(20px, 3.5vw, 36px);
}

.rp-home-v5 .rp-apple-carousel-head h2 {
  font-size: clamp(46px, 8.6vw, 104px);
}

.rp-home-v5 .rp-apple-track {
  gap: clamp(14px, 2.4vw, 26px);
  padding-bottom: 10px;
}

.rp-home-v5 .rp-corporate-black-wrap {
  padding: clamp(42px, 7vw, 92px) 0 clamp(54px, 8vw, 112px);
}

.rp-home-v5 .rp-corporate-black {
  min-height: clamp(380px, 54svh, 620px);
  gap: 14px;
}

.rp-home-v5 .rp-corporate-black h2 {
  font-size: clamp(46px, 9vw, 112px);
}

.rp-login-panel {
  position: fixed;
  z-index: 100;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(440px, calc(100vw - 20px));
  border-radius: 32px;
  padding: 20px;
  background: var(--rp-white);
  border: 1px solid var(--rp-line-soft);
  box-shadow: var(--rp-shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  overflow: auto;
}

.rp-login-shell {
  display: grid;
  align-content: start;
  gap: 18px;
}

.rp-login-hero {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.rp-login-hero h2 {
  margin: 0;
  font-size: clamp(42px, 9vw, 64px);
  line-height: .92;
  letter-spacing: -.075em;
}

.rp-login-hero p,
.rp-login-note {
  margin: 0;
  color: var(--rp-muted);
  font-size: 15px;
  line-height: 1.35;
}

.rp-login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #f5f5f7;
}

.rp-login-tabs button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rp-muted);
  font-size: 13px;
  font-weight: 850;
  transition: background .22s ease, color .22s ease, transform .22s var(--rp-ease);
}

.rp-login-tabs button.is-active {
  background: var(--rp-white);
  color: var(--rp-ink);
  box-shadow: 0 8px 24px rgba(22, 18, 19, .08);
}

.rp-login-pane {
  display: grid;
  gap: 14px;
}

.rp-login-link {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--rp-muted);
  padding: 0;
  font-size: 14px;
  font-weight: 800;
}

.rp-account-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rp-account-preview article {
  min-height: 92px;
  border-radius: 22px;
  border: 1px solid var(--rp-line-soft);
  background: #f7f7f8;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.rp-account-preview span {
  color: var(--rp-muted);
  font-size: 12px;
  font-weight: 800;
}

.rp-account-preview strong {
  font-size: 21px;
  letter-spacing: -.055em;
}

@media (max-width: 520px) {
  .rp-header--home .rp-brand {
    display: inline-flex !important;
  }

  .rp-header--home .rp-nav {
    justify-content: space-between !important;
  }

  .rp-header--home .rp-brand img {
    width: 132px;
  }

  .rp-home-v5 .rp-hero-statement {
    min-height: auto;
    padding-top: calc(var(--rp-header-h) + 18px);
  }

  .rp-home-v5 .rp-featured-product,
  .rp-home-v5 .rp-apple-carousel-section,
  .rp-home-v5 .rp-corporate-black-wrap {
    padding-top: 34px;
    padding-bottom: 46px;
  }

  .rp-account-preview {
    grid-template-columns: 1fr;
  }
}

/* V8 — product detail related compact carousel */
.rp-related-carousel-section {
  padding: clamp(38px, 6vw, 86px) 0 clamp(92px, 10vw, 150px);
  border-top: 1px solid var(--rp-line-soft);
  overflow: hidden;
}

.rp-related-carousel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.rp-related-carousel-head > div:first-child {
  display: grid;
  gap: 7px;
}

.rp-related-carousel-head h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: .94;
  letter-spacing: -.07em;
}

.rp-related-carousel__controls {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.rp-related-carousel__controls button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rp-line-soft);
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--rp-ink);
  font-size: 27px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  transition: transform .22s var(--rp-ease), background .22s ease;
}

.rp-related-carousel__controls button:hover {
  transform: translateY(-1px);
  background: #ececef;
}

.rp-related-track {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(16px, calc((100vw - var(--rp-container)) / 2));
  padding: 0 max(16px, calc((100vw - var(--rp-container)) / 2)) 14px;
  -webkit-overflow-scrolling: touch;
}

.rp-related-track::-webkit-scrollbar { display: none; }
.rp-related-track { scrollbar-width: none; }

.rp-related-card {
  flex: 0 0 min(64vw, 286px);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 11px;
}

.rp-related-card__image {
  display: block;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 30px);
  background: #f5f5f7;
}

.rp-related-card__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transform: scale(1.07);
  transition: transform .7s var(--rp-ease);
}

.rp-related-card:hover .rp-related-card__image img {
  transform: scale(1.13);
}

.rp-related-card__copy {
  display: grid;
  gap: 5px;
  padding: 0 2px;
}

.rp-related-card__copy h3 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: .98;
  letter-spacing: -.055em;
}

.rp-related-card__copy h3 a { color: inherit; }

.rp-related-card__copy p {
  margin: 0;
  color: var(--rp-muted);
  font-size: 14px;
  line-height: 1.22;
  letter-spacing: -.025em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-related-card__copy div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  color: var(--rp-muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: -.015em;
}

.rp-related-card__copy em {
  font-style: normal;
  color: var(--rp-muted-2);
}

@media (min-width: 900px) {
  .rp-related-card {
    flex-basis: min(22vw, 286px);
  }
}

@media (max-width: 520px) {
  .rp-related-carousel__controls {
    display: none;
  }

  .rp-related-carousel-section {
    padding-top: 34px;
  }

  .rp-related-card {
    flex-basis: min(70vw, 280px);
  }
}

/* V9 — carousel laboratory page */
.rp-carousel-lab {
  overflow: hidden;
}

.rp-lab-hero {
  min-height: min(78svh, 760px);
  display: grid;
  align-content: end;
  gap: 14px;
  padding-bottom: clamp(34px, 6vw, 74px);
}

.rp-lab-hero h1,
.rp-lab-head h2,
.rp-lab-split h3,
.rp-lab-story-snap h3,
.rp-lab-season-card h2 {
  margin: 0;
  color: var(--rp-ink);
  line-height: .9;
  letter-spacing: -.082em;
}

.rp-lab-hero h1 {
  max-width: 1060px;
  font-size: clamp(56px, 12vw, 146px);
}

.rp-lab-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--rp-muted);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.rp-lab-block {
  padding: clamp(42px, 7vw, 96px) 0;
  border-top: 1px solid var(--rp-line-soft);
}

.rp-lab-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(22px, 4vw, 42px);
}
