@font-face {
  font-family: "Pally";
  src: url("assets/Pally-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --navy: #021736;
  --ink: #01122b;
  --yellow: #facf56;
  --lemon: #ffe964;
  --pink: #f67fa9;
  --magenta: #ff4085;
  --paper: #ffda9f;
  --white: #fdf7e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px) clamp(22px, 5.8vw, 76px);
  pointer-events: none;
}

.brand,
.header-cta {
  pointer-events: auto;
}

.brand {
  display: block;
  width: clamp(150px, 18vw, 286px);
  padding: 6px 10px;
  background: transparent;
  border-radius: 999px;
  line-height: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.header-cta,
.bag-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 19px;
  color: var(--navy);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.header-cta:hover,
.bag-submit:hover {
  background: var(--pink);
  transform: translate3d(2px, 2px, 0);
  box-shadow: 4px 4px 0 var(--ink);
}

.header-cta:active,
.bag-submit:active {
  transform: translate3d(5px, 5px, 0);
  box-shadow: 1px 1px 0 var(--ink);
}

.header-cta:focus-visible,
.bag-submit:focus-visible {
  outline: 3px solid rgba(250, 207, 86, 0.75);
  outline-offset: 6px;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(104px, 12vh, 148px) clamp(22px, 5.8vw, 82px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  animation: heroFadeIn 0.9s ease 0.16s both;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2,
.brand {
  font-family: "Pally", "Arial Rounded MT Bold", Arial, sans-serif;
  font-weight: 800;
}

h1 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(44px, 4.9vw, 72px);
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 840px;
  margin: 28px auto 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.42;
  text-wrap: pretty;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 56px);
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(2, 23, 54, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: calc(1 - var(--cue-scroll, 0));
  pointer-events: none;
}

/* Entry fade lives on the children: an animation with fill on .scroll-cue
   itself would permanently override the scroll-driven opacity above. */
.scroll-cue span {
  animation: heroFadeIn 0.9s ease 0.9s both;
}

.scroll-cue svg {
  animation:
    heroFadeIn 0.9s ease 0.9s both,
    cueBounce 1.7s ease-in-out 1.8s infinite;
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mix-zone {
  position: relative;
  min-height: 760vh;
  margin-top: -100vh;
}

.sticky-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  margin-bottom: -100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
}

.service-candies {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.depth-candies {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.depth-candy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--depth-size);
  height: auto;
  opacity: calc(var(--depth-opacity, 0.18) * (1 - (var(--reset-scroll, 0) * 0.75)));
  filter: blur(var(--depth-blur, 5px));
  transform:
    translate3d(
      calc(var(--depth-x) + (var(--depth-drift-x, 0px) * var(--depth-scroll, 0) * (1 - var(--reset-scroll, 0)))),
      calc(var(--depth-y) + (var(--depth-drift-y, -18vh) * var(--depth-scroll, 0) * (1 - var(--reset-scroll, 0)))),
      0
    )
    rotate(calc(var(--depth-r, 0deg) + (var(--depth-spin, 0deg) * var(--depth-scroll, 0) * (1 - var(--reset-scroll, 0)))))
    scale(calc(1 + (var(--depth-scroll, 0) * var(--depth-scale, 0.08) * (1 - var(--reset-scroll, 0)))));
  transform-origin: center;
  will-change: transform, opacity;
}

.depth-candy-front {
  z-index: 4;
}

.depth-candy-back {
  z-index: 0;
}

.service-candy {
  --entry-scroll: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--candy-size, clamp(64px, 9vw, 132px));
  height: auto;
  display: block;
  opacity: calc(var(--entry-scroll, 1) * (1 - (var(--drop-scroll, 0) * 0.2)) * (1 - var(--reset-scroll, 0)));
  transform:
    translate3d(
      calc(
        var(--start-x)
        + (var(--entry-x, 0px) * (1 - var(--entry-scroll, 1)))
        + ((var(--mid-x, 0px) - var(--start-x)) * var(--converge-scroll, 0))
        + ((var(--end-x) - var(--mid-x, 0px)) * var(--drop-scroll, 0))
        + ((var(--start-x) - var(--end-x)) * var(--reset-scroll, 0))
      ),
      calc(
        var(--start-y)
        + (var(--entry-y, -92vh) * (1 - var(--entry-scroll, 1)))
        + ((var(--tumble-y, 28vh) * var(--tumble-scroll, 0)) * (1 - var(--converge-scroll, 0)))
        + ((var(--mid-y, -250px) - var(--start-y)) * var(--converge-scroll, 0))
        + ((var(--end-y) - var(--mid-y, -250px)) * var(--drop-scroll, 0))
        + ((var(--start-y) - var(--end-y)) * var(--reset-scroll, 0))
      ),
      0
    )
    rotate(calc(var(--start-r) + ((var(--end-r) - var(--start-r)) * var(--spin-scroll, 0)) + (var(--reset-scroll, 0) * 220deg)))
    scale(calc(1 - (var(--drop-scroll, 0) * 0.18) + (var(--reset-scroll, 0) * 0.18)));
  transform-origin: center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.service-candy:nth-child(1) {
  --entry-x: -118vw;
  --entry-y: -64vh;
}

.service-candy:nth-child(2) {
  --entry-x: 118vw;
  --entry-y: -66vh;
}

.service-candy:nth-child(3) {
  --entry-x: -118vw;
  --entry-y: 36vh;
}

.service-candy:nth-child(4) {
  --entry-x: 118vw;
  --entry-y: 32vh;
}

.service-candy:nth-child(5) {
  --entry-x: -84vw;
  --entry-y: -118vh;
}

.service-candy:nth-child(6) {
  --entry-x: 70vw;
  --entry-y: 94vh;
}

.service-candy:nth-child(7) {
  --entry-x: 118vw;
  --entry-y: 58vh;
}

.service-candy:nth-child(8) {
  --entry-x: -72vw;
  --entry-y: 98vh;
}

.service-candy:nth-child(9) {
  --entry-x: 82vw;
  --entry-y: -112vh;
}

.service-candy:nth-child(10) {
  --entry-x: -118vw;
  --entry-y: 62vh;
}

.service-callouts {
  position: relative;
  z-index: 3;
  min-height: 580vh;
  padding: 116vh clamp(22px, 5.8vw, 82px) 240vh;
  pointer-events: none;
}

.services-panel {
  display: grid;
  gap: clamp(64px, 10vh, 112px);
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  color: var(--navy);
  text-align: center;
}

.services-panel-copy {
  width: min(880px, 100%);
  margin: 0 auto clamp(6px, 1vh, 14px);
  color: var(--navy);
  text-align: center;
}

.services-panel-copy p {
  color: rgba(2, 23, 54, 0.72);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.services-panel-copy h2 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-family: "Pally", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(44px, 4.9vw, 72px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
}

.services-panel-copy span {
  display: block;
  margin: 0 auto;
  max-width: 760px;
  color: rgba(2, 23, 54, 0.78);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.35;
}

.service-row {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

/* Scroll-into-view reveal: rows rise and fade, tags pop in after. */
.services-panel-copy,
.service-row {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-panel-copy.is-inview,
.service-row.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.service-tags span {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.service-row.is-inview .service-tags span {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-row.is-inview .service-tags span:nth-child(1) {
  transition-delay: 0.22s;
}

.service-row.is-inview .service-tags span:nth-child(2) {
  transition-delay: 0.32s;
}

.service-row.is-inview .service-tags span:nth-child(3) {
  transition-delay: 0.42s;
}

.service-row-main {
  min-width: 0;
}

.service-row h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Pally", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(36px, 4.9vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.service-row-main p {
  max-width: 680px;
  margin: 14px auto 0;
  color: rgba(2, 23, 54, 0.78);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.42;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.service-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  color: var(--navy);
  border: 1px solid rgba(2, 23, 54, 0.28);
  border-radius: 999px;
  background: rgba(253, 247, 230, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.bag-mouth-frame,
.paper-bag {
  position: relative;
  width: min(660px, 90vw);
  aspect-ratio: 1000 / 1203;
  transform: translateY(calc(96vh - (var(--bag-scroll, 0) * 96vh) - (var(--tear-scroll, 0) * 86vh)));
}

.bag-mouth-frame {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  pointer-events: none;
  opacity: calc(1 - var(--tear-scroll, 0));
  transform:
    translate(-50%, -50%)
    translateY(calc(96vh - (var(--bag-scroll, 0) * 96vh) - (var(--tear-scroll, 0) * 86vh)))
    rotate(calc(var(--tear-scroll, 0) * -5deg));
  transform-origin: 48% 42%;
}

.paper-bag {
  z-index: 4;
  pointer-events: auto;
}

.bag-mouth-art,
.bag-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.bag-shell {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.bag-art-left {
  transform:
    translate3d(calc(var(--tear-scroll, 0) * -44vw), calc(var(--tear-scroll, 0) * -12vh), 0)
    rotate(calc(var(--tear-scroll, 0) * -24deg));
  opacity: calc(1 - var(--tear-scroll, 0));
  transform-origin: 54% 48%;
}

.bag-art-right {
  transform:
    translate3d(calc(var(--tear-scroll, 0) * 44vw), calc(var(--tear-scroll, 0) * -12vh), 0)
    rotate(calc(var(--tear-scroll, 0) * 24deg));
  opacity: calc(1 - var(--tear-scroll, 0));
  transform-origin: 46% 48%;
}

.bag-title {
  position: absolute;
  bottom: 100%;
  left: -5%;
  right: -5%;
  z-index: 6;
  text-align: center;
  padding-bottom: 16px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.96;
  opacity: calc(var(--bag-scroll, 0) * (1 - var(--tear-scroll, 0)));
  transform: translateY(calc(var(--tear-scroll, 0) * -28px));
  pointer-events: none;
}

.bag-submit {
  position: absolute;
  bottom: 7%;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 6;
  width: min(100%, 260px);
  cursor: pointer;
  opacity: calc(var(--bag-scroll, 0) * (1 - var(--tear-scroll, 0)));
  transform:
    translate3d(
      calc(var(--tear-scroll, 0) * 42px),
      calc(var(--tear-scroll, 0) * 64px),
      0
    )
    rotate(calc(var(--tear-scroll, 0) * 8deg));
  transform-origin: center;
}

.bag-form {
  position: absolute;
  z-index: 5;
  left: 16%;
  right: 16%;
  top: 13%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  color: #32200f;
  opacity: calc(1 - var(--tear-scroll, 0));
  transform: translateY(calc(var(--tear-scroll, 0) * -28px));
  pointer-events: auto;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submitted .bag-form {
  pointer-events: none;
}

.loop-hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(104px, 12vh, 148px) clamp(22px, 5.8vw, 82px);
  text-align: center;
  opacity: var(--loop-intro-scroll, 0);
  transform: translateY(calc((1 - var(--loop-intro-scroll, 0)) * 40px));
  pointer-events: none;
}

.loop-hero h2 {
  max-width: 880px;
  margin: 0 auto;
  color: var(--navy);
  font-family: "Pally", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(44px, 4.9vw, 72px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.loop-hero p {
  max-width: 840px;
  margin: 28px auto 0;
  color: var(--navy);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.42;
  text-wrap: pretty;
}

.bag-form label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bag-form > :not(.form-trap) {
  transform:
    translate3d(
      calc(var(--tear-scroll, 0) * var(--form-scatter-x, 0px)),
      calc(var(--tear-scroll, 0) * var(--form-scatter-y, 0px)),
      0
    )
    rotate(calc(var(--tear-scroll, 0) * var(--form-scatter-r, 0deg)));
  transform-origin: center;
}

.bag-form .form-half:nth-of-type(2) {
  --form-scatter-x: -64px;
  --form-scatter-y: -28px;
  --form-scatter-r: -10deg;
}

.bag-form .form-half:nth-of-type(3) {
  --form-scatter-x: 58px;
  --form-scatter-y: -34px;
  --form-scatter-r: 9deg;
}

.bag-form .form-half:nth-of-type(4) {
  --form-scatter-x: -54px;
  --form-scatter-y: 34px;
  --form-scatter-r: 8deg;
}

.bag-form .form-half:nth-of-type(5) {
  --form-scatter-x: 68px;
  --form-scatter-y: 24px;
  --form-scatter-r: -8deg;
}

.bag-form .form-full {
  --form-scatter-x: 12px;
  --form-scatter-y: 62px;
  --form-scatter-r: 5deg;
}

.bag-form .form-status {
  --form-scatter-x: -22px;
  --form-scatter-y: 38px;
  --form-scatter-r: -4deg;
}

.form-full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #32200f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform:
    translate3d(
      calc(var(--tear-scroll, 0) * var(--form-scatter-x, 0px)),
      calc(4px + (var(--tear-scroll, 0) * var(--form-scatter-y, 0px))),
      0
    )
    rotate(calc(var(--tear-scroll, 0) * var(--form-scatter-r, 0deg)));
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.form-status.is-visible {
  opacity: 1;
  transform:
    translate3d(
      calc(var(--tear-scroll, 0) * var(--form-scatter-x, 0px)),
      calc(var(--tear-scroll, 0) * var(--form-scatter-y, 0px)),
      0
    )
    rotate(calc(var(--tear-scroll, 0) * var(--form-scatter-r, 0deg)));
}

.form-status.is-fading {
  opacity: 0;
  transform:
    translate3d(
      calc(var(--tear-scroll, 0) * var(--form-scatter-x, 0px)),
      calc(-4px + (var(--tear-scroll, 0) * var(--form-scatter-y, 0px))),
      0
    )
    rotate(calc(var(--tear-scroll, 0) * var(--form-scatter-r, 0deg)));
}

.form-status[data-type="error"] {
  color: #b3261e;
}

.bag-form input,
.bag-form textarea {
  width: 100%;
  color: var(--navy);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(50, 32, 15, 0.72);
  border-radius: 7px;
  padding: 10px 12px;
  outline: none;
}

.bag-form textarea {
  resize: vertical;
  min-height: 146px;
}

.bag-form input::placeholder,
.bag-form textarea::placeholder {
  color: rgba(50, 32, 15, 0.58);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
}

.bag-form input:focus,
.bag-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(250, 207, 86, 0.65);
}

.bag-scroll-hint {
  position: absolute;
  bottom: clamp(18px, 3.5vh, 36px);
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: rgba(2, 23, 54, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: calc(var(--bag-scroll, 0) * (1 - var(--tear-scroll, 0)));
  pointer-events: none;
  animation: hintBounce 1.7s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Covers the loop wrap-around: fade to cream, jump behind it, fade back. */
.loop-veil {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.loop-veil.is-active {
  opacity: 1;
  transition-duration: 0.26s;
}

.site-footer {
  position: relative;
  z-index: 3;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  place-items: center;
  padding: clamp(80px, 10vh, 120px) clamp(22px, 5.8vw, 82px);
  text-align: center;
  pointer-events: auto;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(880px, 100%);
}

.footer-kicker {
  color: rgba(2, 23, 54, 0.72);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer h2 {
  font-family: "Pally", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(44px, 4.9vw, 72px);
  font-weight: 800;
  line-height: 1.2;
}

.footer-email {
  margin-top: 10px;
  color: var(--navy);
  font-family: "Pally", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.footer-email:hover {
  color: var(--magenta);
}

.footer-email:focus-visible,
.footer-meta a:focus-visible {
  outline: 3px solid rgba(250, 207, 86, 0.75);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: clamp(28px, 5vh, 56px);
  color: rgba(2, 23, 54, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.footer-meta a {
  color: inherit;
}

@media (max-width: 820px) {
  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
  }

  .brand {
    position: fixed;
    left: 16px;
    top: 18px;
    width: clamp(124px, 38vw, 150px);
    padding: 0;
  }

  .header-cta {
    position: fixed;
    top: 20px;
    right: 18px;
    max-width: 132px;
    white-space: nowrap;
  }

  .header-cta,
  .bag-submit {
    min-height: 40px;
    padding: 11px 13px;
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 11px;
  }

  .header-cta:hover,
  .bag-submit:hover {
    transform: translate3d(1px, 1px, 0);
    box-shadow: 3px 3px 0 var(--ink);
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 96px 18px 52px;
  }

  .hero-copy {
    max-width: 100%;
    overflow: hidden;
  }

  h1,
  .loop-hero h2 {
    max-width: 330px;
    font-size: clamp(40px, 10.4vw, 50px);
    line-height: 1.12;
  }

  .hero-copy p {
    max-width: min(100%, 350px);
    margin-top: 24px;
    font-size: clamp(20px, 5.2vw, 24px);
    line-height: 1.36;
  }

  .mix-zone {
    min-height: 720vh;
    margin-top: -100vh;
  }

  .service-candy {
    width: var(--mobile-candy-size, var(--candy-size, clamp(36px, 11vw, 62px)));
  }

  .depth-candy:nth-child(1) {
    --depth-size: 68px !important;
    --depth-x: -54vw !important;
    --depth-y: -7vh !important;
    --depth-drift-x: 14vw !important;
    --depth-drift-y: -18vh !important;
    --depth-blur: 5px !important;
    --depth-opacity: 0.12 !important;
  }

  .depth-candy:nth-child(2) {
    --depth-size: 78px !important;
    --depth-x: 48vw !important;
    --depth-y: 42vh !important;
    --depth-drift-x: -18vw !important;
    --depth-drift-y: -24vh !important;
    --depth-blur: 7px !important;
    --depth-opacity: 0.14 !important;
  }

  .depth-candy:nth-child(3) {
    --depth-size: 58px !important;
    --depth-x: 38vw !important;
    --depth-y: -17vh !important;
    --depth-drift-x: -10vw !important;
    --depth-drift-y: -13vh !important;
    --depth-blur: 4px !important;
    --depth-opacity: 0.13 !important;
  }

  /* Peek at left edge */
  .service-candy:nth-child(1) {
    --start-x: -52vw !important;
    --start-y: -18vh !important;
    --mobile-candy-size: 64px;
  }

  /* Peek at right edge */
  .service-candy:nth-child(2) {
    --start-x: 48vw !important;
    --start-y: -14vh !important;
    --mobile-candy-size: 50px;
  }

  /* Off-canvas left */
  .service-candy:nth-child(3) {
    --start-x: -72vw !important;
    --start-y: 28vh !important;
    --mobile-candy-size: 68px;
  }

  /* Peek at right edge lower */
  .service-candy:nth-child(4) {
    --start-x: 48vw !important;
    --start-y: 22vh !important;
    --mobile-candy-size: 54px;
  }

  /* Off-canvas left */
  .service-candy:nth-child(5) {
    --start-x: -72vw !important;
    --start-y: -8vh !important;
    --mobile-candy-size: 58px;
  }

  /* Off-canvas right */
  .service-candy:nth-child(6) {
    --start-x: 72vw !important;
    --start-y: 38vh !important;
    --mobile-candy-size: 46px;
  }

  /* Off-canvas right */
  .service-candy:nth-child(7) {
    --start-x: 72vw !important;
    --start-y: 16vh !important;
    --mobile-candy-size: 66px;
  }

  /* Peek at left edge lower */
  .service-candy:nth-child(8) {
    --start-x: -52vw !important;
    --start-y: 40vh !important;
    --mobile-candy-size: 58px;
  }

  /* Off-canvas right */
  .service-candy:nth-child(9) {
    --start-x: 72vw !important;
    --start-y: -4vh !important;
    --mobile-candy-size: 46px;
  }

  /* Off-canvas left */
  .service-candy:nth-child(10) {
    --start-x: -72vw !important;
    --start-y: 14vh !important;
    --mobile-candy-size: 48px;
  }

  .bag-mouth-frame,
  .paper-bag {
    width: calc(100vw - 24px);
    max-width: 500px;
  }

  .paper-bag {
    transform: translateY(calc(150vh - (var(--bag-scroll, 0) * 150vh) - (var(--tear-scroll, 0) * 96vh)));
  }

  .bag-mouth-frame {
    transform:
      translate(-50%, -50%)
      translateY(calc(150vh - (var(--bag-scroll, 0) * 150vh) - (var(--tear-scroll, 0) * 96vh)))
      rotate(calc(var(--tear-scroll, 0) * -5deg));
  }

  .service-callouts {
    min-height: 590vh;
    padding: 112vh 18px 280vh;
  }

  .services-panel {
    gap: 62px;
    width: min(100%, 720px);
  }

  .services-panel-copy {
    width: 100%;
    margin-bottom: 14px;
  }

  .services-panel-copy h2 {
    font-size: clamp(46px, 12vw, 60px);
    line-height: 1.1;
  }

  .services-panel-copy span {
    font-size: 17px;
    line-height: 1.4;
  }

  .service-row {
    width: 100%;
  }

  .service-row h3 {
    font-size: clamp(38px, 10vw, 54px);
    line-height: 1.08;
  }

  .service-row-main p {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.42;
  }

  .service-tags {
    gap: 6px;
    margin-top: 14px;
  }

  .service-tags span {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 11px;
  }

  /* Legibility beats bag-art fidelity here: the form may spill slightly
     past the bag's printed frame on small screens. */
  .bag-form {
    left: clamp(22px, 6vw, 40px);
    right: clamp(22px, 6vw, 40px);
    top: 11%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bag-form label {
    gap: 4px;
    font-size: 12px;
  }

  .bag-form input,
  .bag-form textarea {
    padding: 8px 10px;
  }

  .bag-form textarea {
    min-height: 96px;
  }

  .bag-title {
    font-size: clamp(26px, 7.4vw, 36px);
    padding-bottom: 12px;
  }

  .bag-submit {
    bottom: auto;
    top: 100%;
    margin-top: 20px;
    width: min(100%, 220px);
    /* reset tear scatter — on mobile the bag is smaller and scatter looks off */
    transform: translate3d(0, 0, 0);
  }

  .loop-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 96px 18px 52px;
  }

  .loop-hero h2 {
    max-width: 330px;
    font-size: clamp(40px, 10.4vw, 50px);
    line-height: 1.12;
  }

  .loop-hero p {
    max-width: min(100%, 350px);
    font-size: clamp(20px, 5.2vw, 24px);
    line-height: 1.36;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .scroll-cue,
  .scroll-cue span,
  .scroll-cue svg,
  .bag-scroll-hint {
    animation: none;
  }

  .paper-bag,
  .service-candy,
  .service-row,
  .services-panel,
  .services-panel-copy,
  .service-tags span {
    transition: none;
  }

  .services-panel-copy,
  .service-row,
  .service-tags span {
    opacity: 1;
    transform: none;
  }
}
