/* Home. Numbers are PDF units: desktop relative to each section's top at 1366 wide (x as % of 1366), phone at
   360 wide (x as % of 360). Section tops in the desktop PDF: hero 67.4, featured 745.1, hear 1446.1, tiles 1915.2,
   diaries 2310, join 2929.9, footer 3676.2. Phone: hero 88.7, featured 624.3, hear 1072.1, tiles 1281,
   diaries 1560, join 1848.6, footer 2147.8. */

.pm-lines { white-space: nowrap; }
.pm-br-m { display: none; }
@media (max-width: 767px) { .pm-br-m { display: inline; } .pm-br-d { display: none; } }

/* ---------- hero (677.7 tall at 1366) ---------- */
.pm-hero { position: relative; aspect-ratio: 1366 / 677.7; overflow: hidden; background: var(--pm-indigo); color: var(--pm-blush-hear); isolation: isolate; }
.pm-hero__media, .pm-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-hero__img { object-fit: cover; animation: pm-settle 1.6s var(--pm-ease) both; }
@keyframes pm-settle { from { transform: scale(1.06); } }
.pm-hero__content { position: absolute; inset: 0; z-index: 2; text-align: center; }
.pm-hero__sun { position: absolute; left: 50%; top: 13.36%; width: 55.17px; height: 55.14px; margin-left: -27.6px; color: var(--pm-orange-ink); animation: pm-turn 60s linear infinite; }
@keyframes pm-turn { to { transform: rotate(360deg); } }
.pm-hero__title {   /* COCOGOOSE 42px, baseline 214.2 below the hero top; 50.4px lines */
  position: absolute; left: 0; right: 0; top: 25.47%; margin: 0 auto; max-width: 600px;
  font: 400 42px/50.4px var(--pm-font-display); letter-spacing: var(--pm-track-wide); color: var(--pm-blush-hear);
  text-shadow: 0 1px 18px rgba(40, 44, 70, .18);
}
.pm-hero__btn {   /* 139.5 x 40.3 at 573.3 */
  position: absolute; left: 50%; top: 84.6%; transform: translateX(-50%); z-index: 3;
  height: 40.3px; padding: 0 13.9px; background: var(--pm-thumb); color: var(--pm-thumb-active);
  font: 400 17.59px/40.3px var(--pm-font-display); letter-spacing: .043em; text-transform: uppercase; white-space: nowrap;
  transition: background var(--pm-fast) var(--pm-ease), color var(--pm-fast) var(--pm-ease);
}
.pm-hero__btn:hover { background: var(--pm-blush-hear); }
.pm-hero__wave { position: absolute; z-index: 1; bottom: -1px; left: -10.344%; width: 120.497%; }
/* banners 2-4 (Customizer): each slide fades its photo and its content on their own, so the photo stays under
   the wave and the button over it, as in the single designed banner */
.pm-hero__slide { position: absolute; inset: 0; }
.pm-hero--slides .pm-hero__slide > * { opacity: 0; visibility: hidden; transition: opacity .9s var(--pm-ease), visibility 0s linear .9s; }
.pm-hero--slides .pm-hero__slide.is-active > * { opacity: 1; visibility: visible; transition-delay: 0s; }
.pm-hero__dots { position: absolute; z-index: 4; right: 3.2%; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.pm-hero__dot { width: 9.1px; height: 9.1px; border-radius: 50%; background: var(--pm-blush); opacity: .55; transition: opacity var(--pm-fast), height var(--pm-mid) var(--pm-ease); }
.pm-hero__dot.is-on { opacity: 1; height: 25.4px; border-radius: 6px; }
/* first banner on load: the sun, the heading and SHOP NOW rise in, one after another (motion opted in only) */
@media (prefers-reduced-motion: no-preference) {
  html.pm-reveal-on .pm-hero__slide:first-child .pm-hero__sun { animation: pm-hero-in 1s var(--pm-ease) .1s both, pm-turn 60s linear infinite; }
  html.pm-reveal-on .pm-hero__slide:first-child .pm-hero__title { animation: pm-hero-in 1.1s var(--pm-ease) .3s both; }
  html.pm-reveal-on .pm-hero__slide:first-child .pm-hero__btn { animation: pm-hero-in 1s var(--pm-ease) .55s both; }
}
@keyframes pm-hero-in { from { opacity: 0; translate: 0 24px; } }
@media (prefers-reduced-motion: reduce) { .pm-hero__img, .pm-hero__sun { animation: none; } .pm-hero--slides .pm-hero__slide > * { transition: none; } }

/* ---------- featured (701 tall) ---------- */
.pm-featured { position: relative; background: var(--pm-periwinkle); padding: 50.85px 0 31.5px; text-align: center; }
.pm-featured__mark { display: block; margin: 0 auto; color: var(--pm-blush); }
.pm-featured__title { margin-top: 22.05px; font: 600 36px/43.2px var(--pm-font); letter-spacing: .045em; text-transform: uppercase; color: var(--pm-indigo); }
.pm-featured .pm-carousel { margin-top: 40.51px; }

/* carousel: the clip is the design's visible window; arrows sit over its edges */
.pm-carousel { position: relative; text-align: left; }
.pm-carousel__clip { overflow: hidden; }
.pm-carousel__track {
  display: flex; gap: var(--pm-gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; touch-action: pan-x pan-y;
  scrollbar-width: none; overscroll-behavior-x: contain; outline: 0;
}
.pm-carousel__track::-webkit-scrollbar { display: none; }
.pm-carousel__track:focus-visible { outline: 2px solid var(--pm-orange-ink); outline-offset: -2px; }
.pm-carousel__slide { flex: none; width: var(--pm-slide); scroll-snap-align: start; }
.pm-carousel__arrow {
  position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center;
  width: 40.9px; height: 38.9px; background: var(--pm-periwinkle); color: var(--pm-indigo); box-shadow: inset 0 0 0 .98px var(--pm-arrow-line);
  transition: opacity var(--pm-fast) var(--pm-ease), background var(--pm-fast);
}
.pm-carousel__arrow:hover { background: var(--pm-blush); }
.pm-carousel__arrow[disabled] { opacity: .35; cursor: default; }
.pm-carousel__arrow .pm-i { width: 19.16px; height: 14.04px; }
.pm-carousel__dots { display: flex; justify-content: center; align-items: center; gap: 11px; height: 12.3px; }
.pm-carousel__dot { width: 9.1px; height: 9.1px; border-radius: 50%; background: var(--pm-dot-c, var(--pm-blush)); transition: width var(--pm-mid) var(--pm-ease), border-radius var(--pm-mid); }
.pm-carousel__dot.is-on { width: 25.4px; height: 12.3px; border-radius: 6.15px; background: radial-gradient(circle, var(--pm-dot-c, var(--pm-blush)) 3.7px, transparent 3.75px) no-repeat center var(--pm-dot); }
.pm-carousel:not(.is-ready) .pm-carousel__arrow, .pm-carousel:not(.is-ready) .pm-carousel__dots { visibility: hidden; }

/* product cards in the featured carousel: 342.9 squares, 8.85 apart, window 108.7 → 1250 */
.pm-carousel--cards { --pm-slide: 342.9px; --pm-gap: 8.85px; }
.pm-carousel--cards .pm-carousel__clip { margin-left: 7.958%; width: 83.552%; }
.pm-carousel--cards .pm-carousel__arrow { top: 157.6px; }
.pm-carousel--cards .pm-carousel__arrow--prev { left: 5.446%; }
.pm-carousel--cards .pm-carousel__arrow--next { left: 90.015%; }
.pm-carousel--cards .pm-carousel__dots { margin-top: 44.65px; }

/* ---------- for those who hear the ocean (469.1 tall incl. the wave) ---------- */
.pm-hear { position: relative; isolation: isolate; overflow: hidden; background: var(--pm-blush-hear); padding: 67.33px 20px 114.3px; text-align: center; color: var(--pm-indigo); }
.pm-hear::before {   /* the line-art, multiplied at 10.3% as in the PDF */
  content: ""; position: absolute; z-index: -1; left: -5.417%; top: -157.9px; width: 109.92%; aspect-ratio: 1501.5 / 1061.7;
  background: url("../img/pattern-3000.webp") center / 100% 100% no-repeat; mix-blend-mode: multiply; opacity: .103; pointer-events: none;
}
.pm-hear__title { font: 600 20px/24px var(--pm-font); }
.pm-hear__lead { margin-top: 21.12px; font: 400 18px/21.6px var(--pm-font); }
.pm-hear__body { margin-top: 21.6px; font: 400 18px/21.6px var(--pm-font); }
.pm-hear__bold { margin-top: 22.08px; font: 600 20px/24px var(--pm-font); }
.pm-hear__more { margin-top: 21.12px; font: 400 18px/21.6px var(--pm-font); text-transform: uppercase; }
.pm-hear__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4.2px; }
.pm-hear__link:hover { text-decoration-thickness: 2px; }
.pm-hear__wave { position: absolute; bottom: -1px; left: -4.788%; width: 120.497%; }

/* ---------- category tiles (periwinkle until 340.3, blush below) ---------- */
.pm-cats { position: relative; padding: 3.5px 0 14.05px; background: linear-gradient(var(--pm-periwinkle) 340.3px, var(--pm-blush) 340.3px); --pm-dot-c: var(--pm-periwinkle); }
.pm-carousel--tiles { --pm-slide: 348.9px; --pm-gap: 0px; }
.pm-carousel--tiles .pm-carousel__clip { margin-left: 9.758%; width: 81.62%; }
.pm-carousel--tiles .pm-carousel__arrow--prev { left: 7.328%; top: 172.9px; }
.pm-carousel--tiles .pm-carousel__arrow--next { left: 89.24%; top: 159.7px; }
.pm-carousel--tiles .pm-carousel__dots { margin-top: 14.95px; }
.pm-tile { position: relative; display: block; height: 350px; overflow: hidden; background: var(--pm-indigo); }
.pm-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--pm-ease); }
.pm-tile:hover .pm-tile__img { transform: scale(1.04); }
.pm-tile__name {
  position: absolute; left: 23.2px; bottom: 21.32px; font: 600 26px/31.2px var(--pm-font); text-transform: uppercase; color: var(--pm-blush);
  text-shadow: 0 1px 14px rgba(30, 32, 50, .25);
}

/* ---------- island diaries (619.9 tall incl. the wave) ---------- */
.pm-diaries { position: relative; z-index: 2; overflow-x: clip; background: var(--pm-blush); height: 619.9px; color: var(--pm-indigo); }
.pm-diaries__inner { position: relative; height: 100%; width: min(100%, var(--pm-wrap)); margin-inline: auto; }
.pm-diaries__palm { position: absolute; z-index: 2; left: 19.392%; top: 48.4px; width: 663.8px; height: auto; pointer-events: none; }
.pm-diaries__block { position: absolute; z-index: 3; font: 400 20px/24px var(--pm-font); }
.pm-diaries__block--1 { left: 10.593%; top: 141.41px; }
.pm-diaries__block--2 { left: 60.944%; top: 32.63px; }
.pm-diaries__block--3 { left: 69.612%; top: 289.33px; }
.pm-diaries__title { margin-left: -3.2px; font: 600 34px/40.8px var(--pm-font); letter-spacing: .05em; text-transform: uppercase; }
.pm-diaries__text { margin-top: 22.02px; }
.pm-diaries__block--2 .pm-diaries__text, .pm-diaries__block--3 .pm-diaries__text { margin-top: 0; }
.pm-diaries__link { display: inline-block; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.pm-diaries__link:hover { text-decoration-thickness: 2px; }
.pm-diaries__block--1 .pm-diaries__link { margin: 25.5px 0 0 .4px; }
.pm-diaries__block--2 .pm-diaries__link { margin: 21.4px 0 0 8.2px; }
.pm-diaries__block--3 .pm-diaries__link { margin: 24.9px 0 0 99.7px; }
.pm-diaries__wave { position: absolute; z-index: 1; bottom: -1px; left: -5.769%; width: 120.497%; }

/* ---------- join the wave (746.3 tall) ---------- */
.pm-join { position: relative; z-index: 1; isolation: isolate; overflow: hidden; background: var(--pm-periwinkle); height: 746.3px; color: var(--pm-indigo); }
.pm-join::before {
  content: ""; position: absolute; z-index: -1; left: -.227%; top: -189.1px; width: 100.227%; aspect-ratio: 1369.1 / 1022.1;
  background: url("../img/pattern-3000.webp") center / 100% 100% no-repeat; mix-blend-mode: multiply; opacity: .074; pointer-events: none;
}
.pm-join__inner { position: relative; width: min(100%, var(--pm-wrap)); margin-inline: auto; padding-top: 115.95px; text-align: center; }
.pm-join__mark { display: flex; justify-content: center; align-items: flex-start; gap: 16.8px; color: var(--pm-blush); }
.pm-join__wave { margin-top: 19.5px; }
.pm-join__title { margin-top: 20.82px; font: 600 34px/40.8px var(--pm-font); color: var(--pm-thumb-active); }
.pm-join__title a:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }
.pm-join__tiles { display: grid; grid-template-columns: repeat(4, 1fr); width: 91.29%; margin: 27.89px auto 0; }
.pm-join__tile a { display: block; aspect-ratio: 311.75 / 416; overflow: hidden; }
.pm-join__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--pm-ease), filter var(--pm-mid); }
.pm-join__tile a:hover img { transform: scale(1.04); filter: brightness(1.04); }

/* ---------- 768–1365: same layout, fluid ---------- */
@media (max-width: 1365px) and (min-width: 768px) {
  .pm-carousel--cards { --pm-slide: clamp(200px, 25.1vw, 342.9px); }
  .pm-carousel--tiles { --pm-slide: clamp(220px, 25.54vw, 348.9px); }
  .pm-tile { height: auto; aspect-ratio: 348.9 / 350; }
  .pm-diaries__palm { width: 48.6vw; }
  .pm-join { height: auto; padding-bottom: 69.7px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .pm-diaries__block { font-size: 16px; line-height: 19.2px; }
  .pm-diaries__title { font-size: 27px; line-height: 32.4px; }
  .pm-hero__title { font-size: 32px; line-height: 38.4px; max-width: 460px; }
}

/* ---------- phone (360 design) ---------- */
@media (max-width: 767px) {
  .pm-hero { aspect-ratio: 360 / 535.6; }
  .pm-hero__sun { top: 10.6%; width: 67.3px; height: 67.27px; margin-left: -33.65px; }
  .pm-hero__title { top: 29.67%; max-width: 230px; font-size: 16.67px; line-height: 20px; }
  .pm-hero__btn { top: 86.8%; height: 29.1px; padding: 0 10px; font-size: 12.71px; line-height: 29.1px; }
  .pm-hero__wave { left: -23.389%; width: 124.19%; height: 7.875vw; }

  .pm-featured { padding: 34.5px 0 28.9px; }
  .pm-featured__mark { width: 28.66px; height: 13.15px; }
  .pm-featured__title { margin-top: 9.63px; font-size: var(--pm-ph-title); line-height: 16.8px; }
  .pm-featured .pm-carousel { margin-top: 17.12px; }
  .pm-carousel--cards { --pm-slide: 74.64vw; --pm-gap: 5.5vw; }
  .pm-carousel--cards .pm-carousel__clip { margin-left: 7.11%; width: 90.44%; }
  .pm-carousel--cards .pm-carousel__arrow { top: 37.32vw; }   /* the PDF hangs the arrows from the card centre line */
  .pm-carousel--cards .pm-carousel__arrow--prev { left: 2.83%; }
  .pm-carousel--cards .pm-carousel__arrow--next { left: 91.75%; }
  .pm-carousel--cards .pm-carousel__dots { margin-top: 11.83px; }
  .pm-carousel__arrow { width: 20.9px; height: 19.9px; box-shadow: inset 0 0 0 .5px var(--pm-arrow-line); }
  .pm-carousel__arrow .pm-i { width: 9.78px; height: 7.16px; }
  .pm-carousel__dots { gap: 5.5px; height: 6.4px; }
  .pm-carousel__dot { width: 4.7px; height: 4.7px; }
  .pm-carousel__dot.is-on { width: 13.2px; height: 6.4px; border-radius: 3.2px; background: radial-gradient(circle, var(--pm-dot-c, var(--pm-blush)) 1.95px, transparent 2px) no-repeat center var(--pm-dot); }

  .pm-hear { padding: 30.17px 12px 37.5px; }
  .pm-hear::before { left: -29.25%; top: -65.6px; width: 173.25%; aspect-ratio: 623.7 / 441; opacity: .093; }
  .pm-hear__title { font-size: var(--pm-ph-body); line-height: 10.8px; }
  .pm-hear__lead { display: none; }
  .pm-hear__body { margin-top: 10.8px; font-size: var(--pm-ph-body); line-height: 10.8px; }
  .pm-hear__bold { margin-top: 10.8px; font-size: var(--pm-ph-body); line-height: 10.8px; }
  .pm-hear__more { margin-top: 11.26px; font-size: var(--pm-ph-small); line-height: 11px; }
  .pm-hear__link { text-decoration-thickness: .4px; text-underline-offset: .8px; }
  .pm-hear__wave { left: -23.389%; width: 124.19%; height: 7.875vw; }

  .pm-cats { padding: 0 0 10.3px; background: linear-gradient(var(--pm-periwinkle) 240.3px, var(--pm-blush) 240.3px); }
  .pm-carousel--tiles { --pm-slide: 68.94vw; }
  .pm-carousel--tiles .pm-carousel__clip { margin-left: 9.444%; width: 79.78%; position: relative; top: -2px; }
  .pm-carousel--tiles .pm-carousel__arrow--prev { left: 5.583%; top: 118px; }
  .pm-carousel--tiles .pm-carousel__arrow--next { left: 85.19%; top: 110px; }
  .pm-carousel--tiles .pm-carousel__dots { margin-top: 13.4px; }
  .pm-tile { height: auto; aspect-ratio: 248.2 / 249; }
  .pm-tile__name { left: 16.7px; bottom: 6.92px; font-size: 18.53px; line-height: 22.24px; }

  .pm-diaries { height: 288.6px; }
  .pm-diaries__palm { left: 4.139%; top: 74.8px; width: 71.06%; }
  .pm-diaries__block { font-size: var(--pm-ph-body); line-height: 10.8px; }
  .pm-diaries__block--1 { left: 10.722%; top: 23.46px; }
  .pm-diaries__block--2 { left: 59%; top: 28.17px; }
  .pm-diaries__block--3 { left: 75.694%; top: 152.17px; }
  .pm-diaries__title { margin-left: 1.5px; font-size: 11px; line-height: 13.2px; }
  .pm-diaries__text { margin-top: 10.91px; }
  .pm-diaries__link { text-decoration-thickness: .45px; text-underline-offset: .9px; }
  .pm-diaries__block--1 .pm-diaries__link { margin: 15.8px 0 0; }
  .pm-diaries__block--2 .pm-diaries__link { margin: 7.6px 0 0 78px; }
  .pm-diaries__block--3 .pm-diaries__link { margin: 14.3px 0 0 22px; }
  .pm-diaries__wave { left: -19.139%; width: 155%; height: 8.833vw; }

  .pm-join { height: 299.2px; }
  .pm-join::before { display: none; }
  .pm-join__inner { padding-top: 67.8px; }
  .pm-join__mark { gap: 5.42px; }
  .pm-join__sun { width: 17.79px; height: 17.78px; }
  .pm-join__wave { width: 21.37px; height: 9.81px; margin-top: 6.4px; }
  .pm-join__title { margin-top: 8.48px; font-size: 11px; line-height: 13.2px; text-transform: lowercase; }
  .pm-join__tiles { grid-template-columns: repeat(3, 1fr); width: 89.889%; margin-top: 12.34px; }
  .pm-join__tile:nth-child(4) { display: none; }
}
