/* ==========================================================
   02 About editorial + 03 Plate journey
   The journey section is pulled up over the about section
   (negative margin) so both pin at the same moment: the about copy
   fades while the plate rises from the bottom and starts to spin.
   ========================================================== */
:root {
  --about-scroll: max(170vh, 1180px);
}

/* ---------- About ---------- */
.sw-about {
  position: relative;
  z-index: 5;
  height: var(--about-scroll);
  background: var(--paper);
}

.sw-about__stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: clamp(40px, 7vw, 96px);
  overflow: hidden;
}

.sw-about__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}

.sw-about__copy .sw-kicker {
  margin-bottom: 26px;
}

.sw-about__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.16;
  text-transform: uppercase;
}

.sw-about__line {
  display: block;
  white-space: nowrap;
}

.sw-about__signature {
  margin-top: 6px;
  color: var(--accent);
  font-family: var(--font-script);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.2;
}

.sw-about__lede {
  max-width: 520px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.sw-about__icon {
  width: 110px;
  aspect-ratio: 1;
  margin-top: 18px;
  background: url("../assets/icons/prawn.png") center / contain no-repeat;
}

/* ---------- Journey ---------- */
.sw-journey {
  --side: clamp(22px, 4vw, 58px);
  --bottom: clamp(14px, 1.8vw, 24px);
  position: relative;
  z-index: 6;
  height: 720vh;
  min-height: 4800px;
  margin-top: calc(var(--about-scroll) * -1);
  background: transparent;
}

.sw-journey::after {
  /* Opaque paper below the pinned stage once the about copy has gone. */
  content: "";
  position: absolute;
  inset: var(--about-scroll) 0 0;
  z-index: -1;
  background: var(--paper);
}

.sw-journey__pin {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: min(640px, 100dvh);
  overflow: hidden;
}

.sw-journey__corner {
  position: absolute;
  z-index: 6;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.4;
  opacity: var(--journey-chrome, 0);
  pointer-events: none;
}

.sw-journey__corner--kicker {
  top: calc(var(--header-h) + 8px);
  left: var(--side);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sw-journey__corner--footnote {
  left: var(--side);
  bottom: var(--bottom);
  max-width: min(320px, 74vw);
}

.sw-journey__corner--footnote::before {
  content: "";
  display: block;
  width: clamp(62px, 8vw, 116px);
  height: 1px;
  margin-bottom: 12px;
  background: var(--accent);
}

/* Drifting photos and icons */
.sw-journey__drift {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sw-drift-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--sand);
  border: 6px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 49, 85, 0.16);
  opacity: 0;
  will-change: transform, opacity;
}

.sw-drift-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sw-drift-photo--left { left: clamp(-18px, 5vw, 86px); bottom: 12%; width: clamp(192px, 23vw, 330px); aspect-ratio: 0.82; }
.sw-drift-photo--top { left: clamp(48px, 11vw, 180px); bottom: 28%; width: clamp(172px, 20vw, 278px); aspect-ratio: 1.38; }
.sw-drift-photo--right { right: clamp(-18px, 5vw, 86px); bottom: 10%; width: clamp(210px, 25vw, 360px); aspect-ratio: 1.34; }
.sw-drift-photo--right-high { right: clamp(52px, 12vw, 188px); bottom: 31%; width: clamp(172px, 20vw, 280px); aspect-ratio: 0.86; }
.sw-drift-photo--center-low { left: clamp(210px, 27vw, 420px); bottom: 7%; width: clamp(172px, 20vw, 282px); aspect-ratio: 0.85; }
.sw-drift-photo--left-low { left: clamp(24px, 8vw, 132px); bottom: -2%; width: clamp(184px, 21vw, 300px); aspect-ratio: 0.8; }

.sw-drift-icon {
  position: absolute;
  width: clamp(88px, 9vw, 150px);
  aspect-ratio: 1;
  background: var(--icon) center / contain no-repeat;
  opacity: 0;
  will-change: transform, opacity;
}

.sw-drift-icon--prawn { --icon: url("../assets/icons/prawn.png"); left: clamp(8px, 3vw, 56px); top: 12%; width: clamp(110px, 12vw, 190px); }
.sw-drift-icon--mussel { --icon: url("../assets/icons/mussel.png"); right: clamp(10px, 3.4vw, 62px); top: 13%; }
.sw-drift-icon--lemon { --icon: url("../assets/icons/lemon-colour.svg"); left: clamp(2px, 1.5vw, 28px); top: 78%; width: clamp(78px, 8vw, 134px); }
.sw-drift-icon--fish { --icon: url("../assets/icons/fish-colour.svg"); right: clamp(4px, 2.4vw, 44px); top: 48%; width: clamp(100px, 10vw, 164px); }
.sw-drift-icon--wine { --icon: url("../assets/icons/wine-colour.svg"); left: clamp(18px, 4vw, 74px); top: 36%; width: clamp(76px, 8vw, 128px); }
.sw-drift-icon--cocktail { --icon: url("../assets/icons/cocktail-colour.svg"); right: clamp(10px, 3vw, 58px); top: 70%; }

/* The spinning plate */
.sw-journey__plate-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  height: min(88vh, 820px);
  height: min(88dvh, 820px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, 150%);
  will-change: transform;
  pointer-events: none;
}

.sw-journey__plate {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 26px 48px rgba(16, 49, 85, 0.2));
  will-change: transform;
}

/* Copy printed in the middle of the plate */
.sw-journey__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(360px, 62vw);
  min-height: 330px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.sw-journey__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 0.96;
  text-transform: uppercase;
}

.sw-journey__title,
.sw-journey__copy {
  will-change: transform, opacity;
}

.sw-journey__script {
  display: block;
  margin-top: 0.04em;
  color: var(--accent);
  font-family: var(--font-script);
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
  transform: rotate(-3deg);
}

.sw-journey__copy {
  max-width: 290px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.sw-journey__pagination {
  display: grid;
  gap: 10px;
  width: min(210px, 54vw);
  margin-top: 22px;
}

.sw-journey__count {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1;
}

.sw-journey__progress {
  height: 1px;
  overflow: hidden;
  background: var(--ink-faint);
}

.sw-journey__progress-bar {
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.2);
  transform-origin: left center;
}

@media (max-width: 980px) {
  .sw-journey__plate-scene {
    height: min(76vh, 700px);
    height: min(76dvh, 700px);
  }
}

@media (max-width: 767px) {
  :root {
    --about-scroll: max(170vh, 1080px);
  }

  .sw-about__stage {
    padding: 32px 22px;
  }

  .sw-about__title {
    font-size: clamp(26px, 8.4vw, 40px);
  }

  .sw-about__lede {
    font-size: 13px;
  }

  .sw-journey {
    --side: 22px;
    height: 680vh;
    min-height: 4400px;
  }

  .sw-journey__corner--footnote {
    display: none;
  }

  .sw-journey__plate-scene {
    height: auto;
    width: min(122vw, 640px);
  }

  .sw-drift-photo {
    border-width: 4px;
  }

  .sw-drift-photo--left { left: -8px; bottom: 16%; width: min(40vw, 180px); }
  .sw-drift-photo--top { left: 6%; bottom: 36%; width: min(42vw, 190px); }
  .sw-drift-photo--right { right: -12px; bottom: 18%; width: min(46vw, 210px); }
  .sw-drift-photo--right-high { right: 8%; bottom: 38%; width: min(38vw, 176px); }
  .sw-drift-photo--center-low { left: 30%; bottom: 6%; width: min(40vw, 180px); }
  .sw-drift-photo--left-low { left: 4%; bottom: 2%; width: min(40vw, 180px); }

  .sw-drift-icon {
    width: clamp(60px, 18vw, 90px);
  }

  .sw-journey__content {
    width: min(250px, 64vw);
    min-height: 290px;
  }

  .sw-journey__title {
    font-size: clamp(22px, 7vw, 30px);
  }

  .sw-journey__script {
    font-size: clamp(26px, 8vw, 32px);
  }

  .sw-journey__copy {
    max-width: 220px;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.4;
  }

  .sw-journey__pagination {
    margin-top: 14px;
    width: min(170px, 50vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-about {
    height: auto;
  }

  .sw-journey {
    height: 400vh;
    min-height: 0;
    margin-top: 0;
  }
}
