/* =========================================================
RESET GUIDE — SHAPE x POWERADE
Fixed-value declarations precede fluid values for compatibility.
Hero switches to desktop at 1200px; content keeps its 1024px breakpoint.
Preserve descending media-query order within each component.
JavaScript owns animated transforms and opacity.
========================================================= */

/* =========================================================
01. GLOBAL / DESIGN TOKENS
========================================================= */

/* Intentional page-level overscroll rule retained for Lenis integration. */
html,
body {
  overscroll-behavior-y: none;
}

.reset-guide {
  /* Colors */
  --rg-coral: #f2726d;
  --rg-lime: #b1d249;
  --rg-black: #000;
  --rg-white: #fff;

  /* Page */
  --rg-page-max: 2160px;
  --rg-page-gutter: clamp(1.25rem, 4.6875vw, 7.5rem);

  /* Grid */
  --rg-columns: 12;
  --rg-column-gap: clamp(0.75rem, 1.15vw, 1.85rem);

  /* Sticky */
  --rg-sticky-offset: clamp(7rem, 9vw, 10rem);
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--rg-white);
  color: var(--rg-black);
}

/* =========================================================
02. RESET / BASE
========================================================= */

.reset-guide,
.reset-guide *,
.reset-guide *::before,
.reset-guide *::after {
  box-sizing: border-box;
}

.reset-guide img,
.reset-guide picture,
.reset-guide video,
.reset-guide svg {
  display: block;
}

.reset-guide img,
.reset-guide video {
  max-width: 100%;
  height: auto;
}

.reset-guide button,
.reset-guide input,
.reset-guide textarea,
.reset-guide select {
  font: inherit;
}

/*
* Override generic Shape main / section spacing
* only inside Reset Guide.
*/

main.reset-guide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

main.reset-guide > section {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* =========================================================
03. SHARED LAYOUT
========================================================= */

.reset-guide__container {
  width: calc(100% - (var(--rg-page-gutter) * 2));
  max-width: var(--rg-page-max);
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

.reset-guide__grid {
  display: grid;
  grid-template-columns: repeat(var(--rg-columns), minmax(0, 1fr));
  column-gap: var(--rg-column-gap);
}

/* =========================================================
04. HERO — DESKTOP
========================================================= */

.reset-guide__hero {
  position: relative;
  overflow: visible;
}

.reset-guide__hero-grid {
  position: relative;
}

/* =========================================================
HERO — TITLE
========================================================= */

/*
* IMPORTANT
*
* This is the sticky holder.
*
* GSAP must NEVER transform this element.
* GSAP only transforms .reset-guide__title-motion.
*/

.reset-guide__hero-title {
  position: static; /* Reading flow if sticky is unsupported. */
  position: sticky;
  top: 71px;
  z-index: 1;
  grid-column: 1 / -1;
  padding-top: 2rem;
  padding-top: clamp(2rem, 2.8vw, 4rem);
}

.reset-guide__title-motion {
  position: relative;
  will-change: transform;
}

.reset-guide__title {
  margin: 0;
  font-family: "Core-Sans-C", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
}

.reset-guide__title-mask {
  display: block;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
  transform: translateZ(0);
}

.reset-guide__title-line {
  display: block;
  white-space: nowrap;
  text-align: center;
  font-size: 6rem;
  font-size: clamp(6rem, 13vw, 20rem);
  line-height: 0.78;
  letter-spacing: -0.065em;
  will-change: transform;
  transform: translateZ(0);
}

/* =========================================================
HERO — LOWER COMPOSITION
DESKTOP
========================================================= */

/*
* On desktop the product remains absolutely positioned
* because we intentionally want the editorial overlap.
*
* Desktop therefore still reserves composition space.
*/

.reset-guide__hero-lower {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--rg-column-gap);
  min-height: 16rem;
  min-height: clamp(16rem, 22vw, 28rem);
  margin-top: 3rem;
  margin-top: clamp(3rem, 4vw, 5rem);
}

/* =========================================================
HERO — PRODUCT
DESKTOP
========================================================= */

.reset-guide__hero-product {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 38rem;
  width: clamp(38rem, 38vw, 55rem);
  transform: translateX(-50%);
}

.reset-guide__hero-product-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  will-change: transform;
  transform: translateZ(0);
}

/* =========================================================
HERO — POWERADE LOGO
DESKTOP
========================================================= */

.reset-guide__hero-brand {
  position: relative;
  z-index: 2;
  grid-column: 3 / 5;
  justify-self: start;
  align-self: start;
  width: min(100%, 15rem);
  margin-top: 6rem;
  margin-top: clamp(6rem, 7vw, 9rem);
}

.reset-guide__hero-brand-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

/* =========================================================
HERO — COPY
DESKTOP
========================================================= */

.reset-guide__hero-intro {
  position: relative;
  z-index: 2;
  grid-column: 9 / 12;
  justify-self: start;
  align-self: start;
  max-width: 27rem;
  margin-top: 6rem;
  margin-top: clamp(6rem, 7vw, 9rem);
}

.reset-guide__hero-intro h2 {
  margin: 0;
  font-family: "Core-Sans-C", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.5rem;
  font-size: clamp(1.5rem, 1.8vw, 2.25rem);
  line-height: 1.3;
}

/* =========================================================
HERO — DESKTOP STACKING AND TITLE MASK OVERRIDES
Keep the original tablet and mobile rules above unchanged.
========================================================= */

@media (min-width: 1200px) {
  /* Allow the product to participate in the hero stacking order. */
  .reset-guide__hero-lower {
    z-index: auto;
    /* Reserve the maximum GSAP downward drift in normal flow so the
       following section cannot cover the last line of the hero copy. */
    padding-bottom: 280px;
    padding-bottom: min(28vh, 280px);
  }

  .reset-guide__hero-product {
    z-index: 3;
  }

  .reset-guide__hero-brand,
  .reset-guide__hero-intro {
    z-index: 0;
  }

  .reset-guide__title-mask {
    overflow: hidden;
    clip-path: none;
    will-change: auto;
  }
}

/* =========================================================
HERO — TABLET + MOBILE
< 1200px
========================================================= */

@media (max-width: 1199px) {
  .reset-guide__hero-title {
    position: relative;
    top: auto;
    padding-top: 2.5rem;
    padding-top: clamp(2.5rem, 6vw, 4rem);
  }

  .reset-guide__title-motion {
    transform: none !important;
    will-change: auto;
  }

  .reset-guide__title-mask {
    overflow: visible;
    clip-path: none !important;
    transform: none !important;
    will-change: auto;
  }

  .reset-guide__title-line {
    transform: none !important;
    will-change: auto;
    font-size: 4.5rem;
    font-size: clamp(4.5rem, 12.5vw, 8rem);
    line-height: 0.79;
  }

  /* =====================================================
  LOWER
  ===================================================== */

  .reset-guide__hero-lower {
    row-gap: 1.5rem;
    row-gap: clamp(1.5rem, 3vw, 2rem);
    min-height: 0;
    margin-top: 2.5rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
  }

  /* =====================================================
  PRODUCT
  ===================================================== */

  .reset-guide__hero-product {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 4 / 10;
    grid-row: 1;
    justify-self: center;
    width: min(100%, 30rem);

    /*
    * Crop the empty canvas of the source image.
    */
    aspect-ratio: 0.82;
    overflow: hidden;
    margin: 0;
    transform: none;
  }

  .reset-guide__hero-product-image {
    margin: 0;
    transform: none !important;
    will-change: auto;
  }

  /* =====================================================
  LOGO + COPY
  ===================================================== */

  .reset-guide__hero-brand {
    position: relative;
    grid-column: 4 / 7;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    width: min(100%, 9rem);
    margin: 0 1rem 0 0;
  }

  .reset-guide__hero-intro {
    grid-column: 7 / 10;
    grid-row: 2;
    width: 100%;
    max-width: 14rem;
    margin: 0 0 0 0.5rem;
  }

  .reset-guide__hero-intro h2 {
    font-size: 1rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
  }
}

/* Tablet-only product emphasis: keep the crop and grid centre unchanged.
 * Its intrinsic ratio reserves the extra height before the logo/copy row. */
@media (min-width: 701px) and (max-width: 1199px) {
  .reset-guide__hero-product {
    width: 118%;
    width: min(118%, 35.4rem);
  }
}

/* =========================================================
HERO — MOBILE
≤ 700px
========================================================= */

@media (max-width: 700px) {
  main.reset-guide > section.reset-guide__hero {
    padding-bottom: 4rem;
    padding-bottom: clamp(4rem, 12vw, 5rem);
  }

  .reset-guide__hero-title {
    padding-top: 2.5rem;
    padding-top: clamp(2.5rem, 8vw, 3.5rem);
  }

  .reset-guide__title-line {
    font-size: 3.25rem;
    font-size: clamp(3.25rem, 14.5vw, 5rem);
    line-height: 0.8;
    letter-spacing: -0.05em;
  }

  .reset-guide__hero-lower {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 1.25rem;
    row-gap: clamp(1.25rem, 4vw, 1.75rem);
    margin-top: 2rem;
    margin-top: clamp(2rem, 6vw, 2.5rem);
  }

  .reset-guide__hero-product {
    grid-column: 1 / -1;
    width: min(21rem, 76vw);

    /*
    * Same crop principle.
    */
    aspect-ratio: 0.82;
  }

  .reset-guide__hero-brand {
    grid-column: 1 / 3;
    justify-self: end;
    width: min(6.5rem, 30vw);
    margin-right: 0.75rem;
  }

  .reset-guide__hero-intro {
    grid-column: 3 / 5;
    justify-self: start;
    width: 100%;
    max-width: 9.5rem;
    margin-left: 0.25rem;
  }

  .reset-guide__hero-intro h2 {
    font-size: 0.9rem;
    font-size: clamp(0.9rem, 4vw, 1.05rem);
  }
}

/* =========================================================
HERO — SMALL MOBILE
≤ 480px
Only visual sizing.
No layout changes.
========================================================= */

@media (max-width: 480px) {
  main.reset-guide > section.reset-guide__hero {
    padding-bottom: 4rem;
  }

  .reset-guide__hero-title {
    padding-top: 2.5rem;
  }

  .reset-guide__title-line {
    font-size: 3rem;
    font-size: clamp(3rem, 14vw, 3.75rem);
  }

  .reset-guide__hero-lower {
    row-gap: 1.5rem;
    margin-top: 2rem;
  }

  .reset-guide__hero-product {
    width: min(20rem, 76vw);
  }

  .reset-guide__hero-brand {
    width: 6.5rem;
  }

  .reset-guide__hero-intro {
    width: min(100%, 16rem);
    margin-top: -0.25rem;
  }

  .reset-guide__hero-intro h2 {
    font-size: 1rem;
  }
}

/* =========================================================
05. INTRO SECTION — DESKTOP
========================================================= */

.reset-guide__intro {
  position: relative;
  background: var(--rg-white);
  color: var(--rg-black);
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-block: 5rem;
  padding-top: clamp(5rem, 7vw, 10rem);
  padding-bottom: clamp(7rem, 10vw, 14rem);
  padding-block: clamp(5rem, 7vw, 10rem) clamp(7rem, 10vw, 14rem);
}

/* =========================================================
INTRO — HEADER
========================================================= */

.reset-guide__intro-header {
  grid-column: 2 / 12;
  margin-bottom: 7rem;
  margin-bottom: clamp(7rem, 9vw, 13rem);
}

.reset-guide__intro-title {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: "Core-Sans-C", sans-serif;
  font-weight: 700;
  font-style: normal;
  /* One continuous type scale: 20px on phones, ~24px on portrait
   * tablets and ~33px at 1440px. Avoid a larger small-phone override. */
  font-size: 1.25rem;
  font-size: clamp(1.25rem, 0.9rem + 1.3vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-align: center;
}

/* =========================================================
INTRO — CONTENT GRID
========================================================= */

.reset-guide__intro-content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--rg-columns), minmax(0, 1fr));
  column-gap: var(--rg-column-gap);
  align-items: start;
}

/* =========================================================
INTRO — LEFT LEAD
========================================================= */

.reset-guide__intro-lead {
  grid-column: 2 / 6;
  position: static; /* Reading flow if sticky is unsupported. */
  position: sticky;
  top: var(--rg-sticky-offset);
  align-self: start;
  margin: 0;
  font-family: "Core-Sans-C", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  font-size: clamp(1.2rem, 1.35vw, 2.15rem);
  line-height: 1.5;
  text-transform: uppercase;
}

.reset-guide__intro-lead p {
  margin: 0;
  text-decoration-line: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

/* =========================================================
INTRO — ARTICLE
========================================================= */

.reset-guide__intro-article {
  grid-column: 7 / 12;
  margin: 0;
  font-family: "Core-Sans-C", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.15rem;
  font-size: clamp(1.15rem, 1.25vw, 2rem);
  line-height: 1.55;
}

.reset-guide__intro-article p {
  margin: 0 0 1.75em;
}

.reset-guide__intro-article p:last-child {
  margin-bottom: 0;
}

/* =========================================================
INTRO — K DROPCAP
========================================================= */

.reset-guide__dropcap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  float: left;
  display: grid;
  place-items: center;
  width: 9rem;
  width: clamp(9rem, 11vw, 17rem);
  height: clamp(9rem, 11vw, 17rem);
  aspect-ratio: 1;
  margin: 0 clamp(1.5rem, 2vw, 3rem) clamp(1rem, 1.5vw, 2rem) 0;
  background: linear-gradient(
    135deg,
    var(--rg-coral) 0%,

    #e69b5c 52%,

    var(--rg-lime) 100%
  );
}

.reset-guide__dropcap span {
  font-family: "Core-Sans-C", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 4.5rem;
  font-size: clamp(4.5rem, 5vw, 8rem);
  line-height: 1;
  color: var(--rg-white);
}

/* Slow colour flow behind the stationary drop cap. */

.reset-guide .reset-guide__dropcap::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  inset: -50%;
  z-index: -1;
  background: linear-gradient(
    135deg,
    var(--rg-coral) 10%,
    #e69b5c 45%,
    var(--rg-lime) 85%
  );
}
@media (prefers-reduced-motion: no-preference) {
  .reset-guide .reset-guide__dropcap::before {
    animation: rg-dropcap-flow 16s ease-in-out infinite;
    animation-play-state: paused;
  }
  .reset-guide .reset-guide__dropcap[data-rg-flow-visible]::before {
    animation-play-state: running;
  }
}
@keyframes rg-dropcap-flow {
  0%,
  100% {
    transform: translate(-18%, -15%) rotate(-28deg);
  }
  50% {
    transform: translate(18%, 15%) rotate(28deg);
  }
}

/* =========================================================
INTRO — TABLET
701px — 1023px
========================================================= */

@media (max-width: 1023px) {
  .reset-guide {
    --rg-page-gutter: clamp(1.5rem, 4vw, 2rem);
    --rg-column-gap: 1rem;
    --rg-sticky-offset: clamp(6rem, 10vw, 8rem);
  }

  .reset-guide__intro {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-block: 5rem;
    padding-top: clamp(5rem, 8vw, 7rem);
    padding-bottom: clamp(6rem, 9vw, 8rem);
    padding-block: clamp(5rem, 8vw, 7rem) clamp(6rem, 9vw, 8rem);
  }

  .reset-guide__intro-header {
    margin-bottom: 5rem;
    margin-bottom: clamp(5rem, 8vw, 7rem);
  }

  .reset-guide__intro-lead {
    grid-column: 1 / 6;
    font-size: 1rem;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
  }

  .reset-guide__intro-article {
    grid-column: 7 / 13;
    font-size: 1rem;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
  }

  .reset-guide__dropcap {
    width: 7rem;
    width: clamp(7rem, 14vw, 10rem);
    height: clamp(7rem, 14vw, 10rem);
    margin: 0 clamp(1rem, 2vw, 1.5rem) clamp(0.75rem, 1.5vw, 1rem) 0;
  }

  .reset-guide__dropcap span {
    font-size: 3.5rem;
    font-size: clamp(3.5rem, 7vw, 5rem);
  }
}

/* =========================================================
INTRO — MOBILE
≤ 700px
========================================================= */

@media (max-width: 700px) {
  .reset-guide {
    --rg-page-gutter: clamp(1.25rem, 5vw, 1.75rem);
    --rg-columns: 4;
    --rg-column-gap: 0.75rem;
  }

  .reset-guide__intro {
    padding-top: clamp(4rem, 12vw, 6rem);
    padding-bottom: 6rem;
    padding-block: clamp(4rem, 12vw, 6rem) 6rem;
  }

  /* -------------------------
  Header
  ------------------------- */

  .reset-guide__intro-header {
    grid-column: 1 / -1;
    margin-bottom: 4rem;
    margin-bottom: clamp(4rem, 12vw, 6rem);
  }

  .reset-guide__intro-title {
    line-height: 1.25;
  }

  /* -------------------------
  Content
  ------------------------- */

  .reset-guide__intro-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 4rem;
    row-gap: clamp(4rem, 12vw, 6rem);
  }

  /* -------------------------
  Lead
  ------------------------- */

  .reset-guide__intro-lead {
    grid-column: 1 / -1;
    position: static;
    width: 100%;
    font-size: 1rem;
    font-size: clamp(1rem, 3.2vw, 1.2rem);
    line-height: 1.45;
  }

  /* -------------------------
  Article
  ------------------------- */

  .reset-guide__intro-article {
    grid-column: 1 / -1;
    width: 100%;
    font-size: 1rem;
    font-size: clamp(1rem, 3.2vw, 1.2rem);
    line-height: 1.55;
  }

  /* -------------------------
  K
  ------------------------- */

  .reset-guide__dropcap {
    width: 7rem;
    width: clamp(7rem, 24vw, 9rem);
    height: clamp(7rem, 24vw, 9rem);
    margin: 0 clamp(1rem, 4vw, 1.5rem) 0.75rem 0;
  }

  .reset-guide__dropcap span {
    font-size: 3.5rem;
    font-size: clamp(3.5rem, 13vw, 4.75rem);
  }
}

/* =========================================================
INTRO — SMALL MOBILE
≤ 480px
========================================================= */

@media (max-width: 480px) {
  .reset-guide {
    --rg-page-gutter: 1.25rem;
  }

  .reset-guide__intro {
    padding-top: 4rem;
    padding-bottom: 5rem;
    padding-block: 4rem 5rem;
  }

  .reset-guide__intro-header {
    margin-bottom: 4rem;
  }

  .reset-guide__intro-content {
    row-gap: 3.5rem;
  }

  .reset-guide__intro-lead {
    font-size: 0.95rem;
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .reset-guide__intro-article {
    font-size: 1rem;
    font-size: clamp(1rem, 4vw, 1.125rem);
  }

  .reset-guide__dropcap {
    width: 6.25rem;
    width: clamp(6.25rem, 30vw, 7.5rem);
    height: clamp(6.25rem, 30vw, 7.5rem);
    margin: 0 1rem 0.5rem 0;
  }

  .reset-guide__dropcap span {
    font-size: 3rem;
    font-size: clamp(3rem, 14vw, 4rem);
  }
}

/* =========================================================
INTRO — VERY SMALL MOBILE
≤ 380px
========================================================= */

@media (max-width: 380px) {
  .reset-guide__intro-lead {
    font-size: 0.95rem;
  }

  .reset-guide__intro-article {
    font-size: 1rem;
  }

  .reset-guide__dropcap {
    float: none;
    width: 6.5rem;
    height: 6.5rem;
    margin: 0 0 1.5rem;
  }

  .reset-guide__dropcap span {
    font-size: 3.5rem;
  }
}

/* 06. EDITORIAL STORIES
* CSS sticky supplies layout; GSAP owns image opacity and number transforms.
* Mobile dots are fixed overlays, not a grid column. JS controls visibility.
*/
.reset-guide__stories {
  background: #f0f1ed;
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-block: 3rem;
  padding-top: clamp(3rem, 5vw, 6rem);
  padding-bottom: clamp(3rem, 5vw, 6rem);
  padding-block: clamp(3rem, 5vw, 6rem);
}
.reset-guide__stories-grid {
  align-items: start;
  position: relative;
}
.reset-guide__stories-visual {
  grid-column: 1 / 6;
  grid-row: 1;
  position: static; /* Reading flow if sticky is unsupported. */
  position: sticky;
  top: var(--rg-sticky-offset);
  aspect-ratio: 5 / 7;
  width: 100%;
  max-height: calc(100vh - var(--rg-sticky-offset) - 2rem);
  max-height: calc(100svh - var(--rg-sticky-offset) - 2rem);
  overflow: hidden;
  isolation: isolate;
}
.reset-guide .reset-guide__stories-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.reset-guide__stories-image:first-child {
  opacity: 1;
}
.reset-guide__stories-copy {
  grid-column: 7 / 12;
  grid-row: 1;
  min-width: 0;
}
.reset-guide .reset-guide__story {
  margin: 0;
  padding: 0 0 clamp(4rem, 7vw, 8rem);
  scroll-margin-top: var(--rg-sticky-offset);
  font-family: "Core-Sans-C", sans-serif;
  font-size: 1rem;
  font-size: clamp(1rem, 1.15vw, 1.65rem);
  line-height: 1.55;
}
.reset-guide .reset-guide__story:last-child {
  padding-bottom: 0;
}
.reset-guide__story-number {
  display: grid;
  place-items: center;
  width: 5rem;
  width: clamp(5rem, 9vw, 9rem);
  height: clamp(5rem, 9vw, 9rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rg-white);
  font-weight: 700;
  font-size: 1.5rem;
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  margin-bottom: 2rem;
}
.reset-guide .reset-guide__story h2,
.reset-guide .reset-guide__closing-copy h2 {
  margin: 0 0 1.25em;
  font-family: "Core-Sans-C", sans-serif;
  font-size: 1.35rem;
  font-size: clamp(1.35rem, 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.reset-guide .reset-guide__story p {
  margin: 0 0 1.5em;
}
.reset-guide .reset-guide__story p:last-child {
  margin-bottom: 0;
}
.reset-guide__stories-nav {
  grid-column: 12 / 13;
  grid-row: 1;
  justify-self: end;
  position: static; /* Reading flow if sticky is unsupported. */
  position: sticky;
  top: calc(var(--rg-sticky-offset) + 2rem);
  display: flex;
  flex-direction: column;
}
.reset-guide .reset-guide__stories-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #666;
  text-decoration: none;
}
.reset-guide__stories-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.reset-guide .reset-guide__stories-dot[aria-current="location"] {
  color: var(--rg-black);
}
.reset-guide__stories-dot[aria-current="location"] span {
  width: 12px;
  height: 12px;
}
.reset-guide__stories-dot:focus-visible,
.reset-guide__story:focus-visible {
  outline: 2px solid var(--rg-black);
  outline-offset: 3px;
}
.reset-guide .reset-guide__story-mobile-image {
  display: none;
}
@media (max-width: 1023px) {
  .reset-guide__stories-copy {
    grid-column: 6 / 12;
  }
}
@media (max-width: 700px) {
  .reset-guide__stories-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .reset-guide__stories-visual {
    display: none;
  }
  .reset-guide__stories-copy {
    grid-column: 1;
  }
  .reset-guide__stories-nav {
    position: fixed;
    top: auto;
    bottom: 1rem; /* Browsers without safe-area env(). */
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    flex-direction: row;
    width: max-content;
    max-width: calc(100% - 1rem);
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    visibility: hidden;
    pointer-events: none;
  }
  .reset-guide__stories[data-rg-nav-visible] .reset-guide__stories-nav {
    visibility: visible;
    pointer-events: auto;
  }
  .reset-guide .reset-guide__stories-dot {
    width: 40px;
    height: 44px;
  }
  .reset-guide__stories {
    padding-bottom: 6rem;
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  }
  .reset-guide .reset-guide__story-mobile-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    margin-bottom: 2rem;
  }
  .reset-guide__story-number {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reset-guide__stories-image {
    transition: none;
  }
}

/* STORIES — optional mobile motion; reduced motion uses the static rules. */
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .reset-guide .reset-guide__stories-nav {
    opacity: 0;
    transform: translate(-50%, 8px);
    transition:
      opacity 0.25s ease,
      transform 0.3s ease;
  }
  .reset-guide__stories[data-rg-nav-visible] .reset-guide__stories-nav {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .reset-guide .reset-guide__stories-dot span {
    transition:
      width 0.2s ease,
      height 0.2s ease,
      background-color 0.2s ease;
  }
}

/* 07. CLOSING
* The picture element selects the still image for reduced motion.
*/
.reset-guide .reset-guide__closing {
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-block: 2rem;
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 4rem);
  background: var(--rg-white);
}
.reset-guide__closing-grid {
  align-items: center;
}
.reset-guide__closing-visual {
  grid-column: 1 / 6;
  min-width: 0;
}
.reset-guide .reset-guide__closing-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.reset-guide__closing-copy {
  grid-column: 7 / 12;
  min-width: 0;
  font-family: "Core-Sans-C", sans-serif;
  font-size: 1rem;
  font-size: clamp(1rem, 1.15vw, 1.65rem);
  line-height: 1.55;
}

.reset-guide .reset-guide__closing-copy p {
  margin: 0;
}
@media (max-width: 1023px) {
  .reset-guide__closing-copy {
    grid-column: 6 / 13;
  }
}
@media (max-width: 700px) {
  .reset-guide__closing-grid {
    row-gap: 2rem;
  }
  .reset-guide__closing-visual,
  .reset-guide__closing-copy {
    grid-column: 1 / -1;
  }
}

/* 08. COMPATIBILITY
* Ratio fallbacks apply only to older engines. Modern layouts keep their
* existing intrinsic ratios and crop. No overflow on sticky ancestors.
*/
@supports not (aspect-ratio: 1) {
  .reset-guide__stories-visual::before {
    content: "";
    display: block;
    padding-top: 140%;
  }
  @media (max-width: 1199px) {
    .reset-guide__hero-product::before {
      content: "";
      display: block;
      padding-top: 121.95122%;
    }
    .reset-guide .reset-guide__hero-product-image {
      position: absolute;
      top: 0;
      left: 0;
    }
  }
}
/* Keyboard focus fallback without changing focus-visible in newer engines. */
@supports not selector(:focus-visible) {
  .reset-guide__stories-dot:focus,
  .reset-guide__story:focus {
    outline: 2px solid #000;
    outline-offset: 3px;
  }
}

/* Custom properties accept unsupported function tokens, so clamp() fallbacks
* for tokens must use feature detection rather than duplicate declarations. */
@supports not (width: clamp(1rem, 2vw, 3rem)) {
  .reset-guide {
    --rg-page-gutter: 1.25rem;
    --rg-column-gap: 0.75rem;
    --rg-sticky-offset: 7rem;
  }
  @media (max-width: 1023px) {
    .reset-guide {
      --rg-page-gutter: 1.5rem;
      --rg-column-gap: 1rem;
      --rg-sticky-offset: 6rem;
    }
  }
  @media (max-width: 700px) {
    .reset-guide {
      --rg-page-gutter: 1.25rem;
      --rg-column-gap: 0.75rem;
    }
  }
}

/* LOCAL VIDEO — native controls and a separate Instagram link. */
.reset-guide__video {
  width: 100%;
  margin: 2rem 0 0;
  padding: 17% 17% 2rem;
  background: #000;
  color: #fff;
}

.reset-guide__video-frame {
  width: 100%;
  margin-inline: auto;
}

.reset-guide__video-player {
  width: 100%;
  height: auto;
  background: #000;
}

.reset-guide__video-caption {
  margin-top: 1rem;
  text-align: center;
}

.reset-guide__video-link {
  display: inline-block;
  padding: 0.5rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.reset-guide__video-link:focus-visible,
.reset-guide__video-player:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .reset-guide__video {
    padding: 1rem;
  }
}
