/* ==========================================================================
   mynd — hero section
   Concept: distraction -> product enters -> distractions lose focus ->
   user gains focus. Warm off-white world; the M is the only thing that
   stays perfectly sharp.
   ========================================================================== */

:root {
  --hero-bg: #eef2e9;
  --hero-ink: #202d29;
  --hero-body: #34423e;
  --hero-green: #286847;
  --hero-green-accent: #2d7252;
  --hero-logo-green: #285d48;
  --hero-eyebrow-green: #2e6b50;
  --hero-font: "Satoshi", "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
}

.hero {
  /* sticky + a lower z-index than the next section: the hero pins in
     place while the products section (next in normal flow) scrolls up
     and slides over it like a curtain, then uncovers it again when
     scrolling back up — no JS needed, it's inherent to how sticky works */
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  background: #e4e9dc;
  color: var(--hero-ink);
  font-family: var(--hero-font);
  /* greenish vignette hugging all four edges of the screen — a thin dark
     edge that dissolves outward into green, spread wider than before */
  box-shadow:
    inset 0 0 45px rgba(0, 0, 0, 0.22),
    inset 0 90px 150px -60px rgba(40, 104, 71, 0.3),
    inset 0 -90px 150px -60px rgba(40, 104, 71, 0.3),
    inset 0 0 240px rgba(40, 104, 71, 0.16);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0) 46%,
    rgba(40, 104, 71, 0.07) 100%
  );
}

.hero__stage {
  --pill-size: clamp(155px, 42vw, 175px);
  --pill-top: 36%;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  min-height: 100vh;
}

/* ==========================================================================
   topbar
   ========================================================================== */

.hero__topbar--scrolled {
 
    background: rgb(255 255 255 / 0%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px);

}

.hero__topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}

.hero__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.hero__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--hero-logo-green);
  color: var(--hero-logo-green);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.hero__logo-word {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--hero-logo-green);
  transition: color 0.3s ease;
}

.hero__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--hero-green);
  cursor: pointer;
  padding: 0;
}

/* over a dark section (e.g. the FAQ), the whole topbar flips to white
   so it stays legible against the dark green background behind it —
   same on mobile (logo only) and desktop (logo + nav + icons) */
.hero__topbar--inverted .hero__logo-mark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.hero__topbar--inverted .hero__logo-word {
  color: #fff;
}

.hero__menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 14px;
}

.hero__menu-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #ffffff;
  border-radius: 1px;
}

/* desktop-only: nav links + heart/cart icons replace the burger menu */
.hero__nav,
.hero__actions {
  display: none;
}

@media (min-width: 1024px) {
  .hero__topbar {
    padding: 14px 28px;
  }

  .hero__nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    /* soaks up the row's free space, pushing itself + .hero__actions
       (its sibling, after it in source) over to the right, leaving the
       logo alone on the left */
    margin-left: auto;
    margin-right: 2.5rem;
  }

  .hero__nav-link {
    position: relative;
    text-decoration: none;
    font-family: var(--hero-font);
    font-weight: 500;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--hero-green);
    transition: color 0.3s ease;
  }

  .hero__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-cinematic, ease);
  }

  .hero__nav-link:hover::after,
  .hero__nav-link.is-active::after {
    transform: scaleX(1);
  }

  .hero__actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
  }

  .hero__action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--hero-green);
    font-size: 1.35rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  }

  .hero__action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--hero-green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .hero__action-badge.is-visible {
    opacity: 1;
    transform: scale(1);
  }

  .hero__topbar--inverted .hero__action-badge {
    background: #8fd6ae;
    color: #14311f;
  }

  .hero__action:hover {
    background: rgba(40, 104, 71, 0.1);
    transform: translateY(-1px);
  }

  .hero__menu {
    display: none;
  }

  .hero__topbar--inverted .hero__nav-link {
    color: #fff;
  }

  .hero__topbar--inverted .hero__action {
    color: #fff;
  }

  .hero__topbar--inverted .hero__action:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  /* the drawer is a mobile-only affordance — desktop already shows
     the full nav + icons inline in the topbar */
  .mobile-menu {
    display: none;
  }
}

/* ==========================================================================
   mobile nav drawer — dark green panel matching the footer/FAQ, slides
   in from the right over a dimmed backdrop.
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 15, 0.5);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  display: flex;
  flex-direction: column;
  /* frosted glass: translucent dark green + blurred backdrop instead
     of a flat opaque fill, with a faint light rim to sell the edge */
  background: rgba(20, 49, 31, 0.6);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-left: 1px solid rgba(238, 242, 233, 0.14);
  color: rgba(238, 242, 233, 0.85);
  padding: 18px 22px clamp(1.75rem, 6vh, 2.5rem);
  box-shadow:
    -20px 0 50px -20px rgba(0, 0, 0, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.06);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-cinematic, cubic-bezier(0.16, 1, 0.3, 1));
  overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 8vh, 3.5rem);
}

.mobile-menu__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.mobile-menu__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 242, 233, 0.85);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-menu__logo-word {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #fff;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(238, 242, 233, 0.25);
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.mobile-menu__close:hover {
  background: rgba(238, 242, 233, 0.1);
  border-color: rgba(238, 242, 233, 0.4);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: auto;
}

.mobile-menu__link {
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid rgba(238, 242, 233, 0.1);
  text-decoration: none;
  font-family: var(--hero-font);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
  color: #8fd6ae;
  padding-left: 0.5rem;
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(238, 242, 233, 0.14);
}

.mobile-menu__action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.2rem;
  text-decoration: none;
  font-family: var(--hero-font);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(238, 242, 233, 0.85);
  transition: color 0.2s ease;
}

.mobile-menu__action-link:hover,
.mobile-menu__action-link:active {
  color: #8fd6ae;
}

.mobile-menu__action-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(238, 242, 233, 0.08);
  color: #8fd6ae;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.mobile-menu__action-badge {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 999px;
  background: #8fd6ae;
  color: #14311f;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.mobile-menu__action-badge.is-visible {
  display: inline-block;
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 242, 233, 0.14);
}

.mobile-menu__contact-title {
  font-family: var(--hero-font);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 242, 233, 0.5);
  margin-bottom: 0.2rem;
}

.mobile-menu__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: rgba(238, 242, 233, 0.85);
  font-size: 0.92rem;
}

.mobile-menu__contact-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(143, 214, 174, 0.14);
  color: #8fd6ae;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu__backdrop,
  .mobile-menu__panel,
  .mobile-menu__link {
    transition: none;
  }
}

/* ==========================================================================
   distraction objects
   ========================================================================== */

.distraction {
  position: absolute;
  width: var(--size, 64px);
  z-index: 1;
  pointer-events: none;
  transform: rotate(var(--rot, 0deg)) scale(var(--base-scale, 1));
  filter: blur(0px);
  opacity: 1;
  will-change: transform, filter, opacity;
}

.distraction__pop {
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.distraction__parallax {
  will-change: transform;
}

.distraction__float {
  position: relative;
  animation: distraction-float var(--float-dur, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}

/* atmospheric haze — an oversized, heavily-blurred glow sitting behind
   each object so it reads as suspended in the same soft green air as the
   rest of the scene, instead of a flat cutout floating above it */
.distraction__float::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: radial-gradient(circle, var(--hero-green-accent) 0%, rgba(45, 114, 82, 0.4) 35%, transparent 68%);
  opacity: 0.14;
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

.distraction__img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  /* muted, slightly desaturated and flattened so colors sit closer to the
     soft sage/cream backdrop instead of popping as a crisp cutout */
  filter:
    drop-shadow(0 10px 18px rgba(40, 62, 50, 0.12))
    saturate(0.74)
    contrast(0.93)
    brightness(1.02);
  /* feather the outer rim so any leftover matte fringe from the source
     cutout fades into the backdrop instead of showing a hard edge */
  mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 76%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 76%, transparent 100%);
}

/* these assets fill most of their frame (little transparent padding), so
   the oval feather mask crops into visible content and the drop-shadow
   renders along that crop line as a dark ring — skip the mask for them */
.d-pizza .distraction__img,
.d-paperwork .distraction__img,
.d-email .distraction__img {
  mask-image: none;
  -webkit-mask-image: none;
  filter:
    drop-shadow(0 8px 14px rgba(40, 62, 50, 0.09))
    saturate(0.74)
    contrast(0.93)
    brightness(1.02);
}

/* soft green "Instagram filter"-style wash — a colored layer masked to
   each object's OWN alpha channel (via --tint-mask, set per image inline
   in the markup), so it follows the exact silhouette with no risk of a
   square/oval edge, and never touches the image's underlying colors */
.distraction__float::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-green-accent);
  opacity: 0.12;
  mix-blend-mode: multiply;
  mask-image: var(--tint-mask, none);
  -webkit-mask-image: var(--tint-mask, none);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  pointer-events: none;
}

@keyframes distraction-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

/* -- desktop-only extras: hidden on mobile/tablet, shown at 1024px+ to
      fill the wide-viewport gaps without crowding the smaller screens -- */

.distraction--desktop-only {
  display: none;
}

/* -- mobile scatter (375–430px baseline): controller/phones/instagram/
      tiktok are desktop-only, so mobile shows 8 items — messages, cloud,
      zzz, coffee, clock, laptop, pills, drink — kept clear of the centered
      pill/copy column (roughly y 20%–90%) by hugging the far edges and
      bleeding some of the larger pieces off the bottom corners -- */

.d-messages

 {
    --size: 78px;
    --rot: 8deg;
    --base-scale: 0.9;
    top: 19%;
    left: 0%;
}
.d-cloud {
    --size: 92px;
    --rot: -10deg;
    --base-scale: 0.9;
    top: 8%;
    left: 7%;
}
    .d-zzz

 {
        --size-lg: clamp(60px, 10vw, 116px);
           top: 14%;
    right: 5%;
    --rot: 10deg;
    }
.d-coffee     { --size: 118px; --rot: 10deg;  --base-scale: 1;    top: 55%; right: -2%; }
.d-email {
    --size: 112px;
    --rot: -8deg;
    --base-scale: 1;
    top: 39%;
    left: -9%;
}
.d-laptop {
    --size: 225px;
    --rot: -4deg;
    --base-scale: 1.25;
    bottom: 6%;
    left: -3%;
}
.d-pizza      { --size: 132px; --rot: -16deg; --base-scale: 1.1;  top: 33%;  right: -13%; }
.d-drink {
    --size: 108px;
    --rot: 8deg;
    --base-scale: 0.95;
    top: 82%;
    right: -7%;
}

/* ==========================================================================
   halo — soft green rings + dots centered on the pill, sitting behind
   both the pill and the copy beneath it
   ========================================================================== */

.hero__halo {
  position: absolute;
  top: var(--pill-top);
  left: 50%;
  z-index: 4;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hero__halo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--hero-green-accent);
  border-radius: 50%;
  opacity: 0.22;
}

/* mobile/tablet: kept tight around the pill instead of reaching the CTA —
   the desktop override further down restores the larger reach on 1024px+ */
.hero__halo-ring--1 {
  width: calc(var(--pill-size) + 50px);
  height: calc(var(--pill-size) + 50px);
  opacity: 0.24;
}

.hero__halo-ring--2 {
  width: calc(var(--pill-size) + 110px);
  height: calc(var(--pill-size) + 110px);
  opacity: 0.18;
}

.hero__halo-ring--3 {
  width: calc(var(--pill-size) + 180px);
  height: calc(var(--pill-size) + 180px);
  opacity: 0.13;
}

.hero__halo-ring--4 {
  width: calc(var(--pill-size) + 260px);
  height: calc(var(--pill-size) + 260px);
  opacity: 0.08;
}

.hero__halo-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hero-green-accent);
  opacity: 0.5;
}

.hero__halo-dot--1 { top: calc(50% - (var(--pill-size) * 0.5));  left: calc(50% + (var(--pill-size) * 0.22)); }
.hero__halo-dot--2 { top: calc(50% - (var(--pill-size) * 0.12)); left: calc(50% + (var(--pill-size) * 0.65)); width: 4px; height: 4px; }
.hero__halo-dot--3 { top: calc(50% + (var(--pill-size) * 0.35)); left: calc(50% - (var(--pill-size) * 0.6)); }
.hero__halo-dot--4 { top: calc(50% + (var(--pill-size) * 0.85)); left: calc(50% + (var(--pill-size) * 0.45)); width: 4px; height: 4px; }
.hero__halo-dot--5 { top: calc(50% + (var(--pill-size) * 1.05)); left: calc(50% - (var(--pill-size) * 0.35)); }
.hero__halo-dot--6 { top: calc(50% + 110px); left: calc(50% + 95px);  width: 4px; height: 4px; }
.hero__halo-dot--7 { top: calc(50% + 140px); left: calc(50% - 120px); }
.hero__halo-dot--8 { top: calc(50% + 165px); left: calc(50% + 15px);  width: 3px; height: 3px; }

/* ==========================================================================
   the M pill
   ========================================================================== */

.hero__pill {
  position: absolute;
  top: var(--pill-top);
  left: 50%;
  z-index: 20;
  width: var(--pill-size);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
}

.hero__pill-inner {
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.hero__pill-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(27, 31, 29, 0.16));
}

/* ==========================================================================
   copy
   ========================================================================== */

.hero__copy {
  position: absolute;
  top: calc(var(--pill-top) + (var(--pill-size) / 2) + 5px);
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(88vw, 310px);
  transform: translateX(-50%);
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hero-eyebrow-green);
}

.hero__headline {
  margin: 0;
  font-family: var(--hero-font);
  font-weight: 500;
  font-size: clamp(2rem, 8.5vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--hero-ink);
}

.hero__headline-accent {
  color: var(--hero-green-accent);
}

.hero__sub {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--hero-body);
  max-width: 310px;
}

.hero__cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 190px;
  height: 50px;
  padding-inline: 1.6em;
  border-radius: 999px;
  background: var(--hero-green);
  color: #ffffff;
  font-family: var(--hero-font);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(40, 104, 71, 0.12);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(40, 104, 71, 0.18);
}

.hero__cta-arrow {
  transition: transform 0.3s ease;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   scroll cue — sits independently near the bottom edge, not tied to the CTA
   ========================================================================== */

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero__scroll-mouse {
  display: block;
  width: 18px;
  height: 30px;
  border-radius: 10px;
  border: 1.5px solid var(--hero-green);
  position: relative;
}

.hero__scroll-mouse span {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--hero-green);
  transform: translateX(-50%);
  animation: scroll-cue-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-dot {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  60% {
    opacity: 0;
    transform: translate(-50%, 9px);
  }
  61% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hero__scroll-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--hero-body);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   pre-entrance state — gated behind .js (set synchronously in <head>) so
   there is no flash of the final composition before the timeline runs.
   No-JS visitors simply see the final hero composition immediately.
   ========================================================================== */

.js .hero__pill-inner {
  opacity: 0;
}

.js .hero__eyebrow,
.js .hero__headline,
.js .hero__sub,
.js .hero__cta,
.js .hero__scroll,
.js .hero__halo {
  opacity: 0;
}

.js .distraction__pop {
  opacity: 0;
  transform: scale(0.4);
}

/* ==========================================================================
   reduced motion — show the settled composition immediately
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .distraction__float,
  .hero__scroll-mouse span {
    animation: none;
  }

  .js .hero__pill-inner,
  .js .hero__eyebrow,
  .js .hero__headline,
  .js .hero__sub,
  .js .hero__cta,
  .js .hero__scroll,
  .js .hero__halo {
    opacity: 1;
  }

  .js .distraction__pop {
    opacity: 1;
    transform: scale(1);
  }

  .distraction {
    filter: blur(var(--reduced-blur, 3px));
    opacity: 0.8;
  }
}

/* ==========================================================================
   compact phones (iPhone SE and similar — narrow AND/OR short) —
   the laptop bled under the copy column and the vertical rhythm was too
   tight for a 667px-tall viewport, so this tightens spacing and pulls the
   laptop fully clear of the text
   ========================================================================== */

@media (max-width: 380px), (max-height: 700px) {
  .hero__stage {
    --pill-size: clamp(122px, 34vw, 145px);
    --pill-top: 30%;
  }

  .hero__headline {
    font-size: clamp(1.6rem, 7.6vw, 1.95rem);
  }

  .hero__eyebrow { margin-bottom: 9px; }
  .hero__sub { margin-top: 14px; }
  .hero__cta { margin-top: 16px; }

  .hero__scroll { bottom: 12px; }
  .hero__scroll-mouse { width: 15px; height: 24px; }
  .hero__scroll-text { font-size: 12px; }

      .d-laptop

 {
        --size: 168px;
        left: -11%;
        bottom: 3%;
    }
}

/* ==========================================================================
   tablet ~ 640px+
   ========================================================================== */

@media (min-width: 640px) {
  .d-messages { top: 2%;  left: 44%; }
  .d-cloud    { top: 6%;  left: 4%; }
  .d-zzz      { top: 8%;  right: 4%; }
  .d-coffee   { top: 76%; right: -4%; }
  .d-email    { top: 58%; left: 0%; }
  .d-laptop   { bottom: -4%; left: 24%; }
  .d-pizza    { top: 32%; right: -2%; }
  .d-drink    { top: 55%; right: 6%; }
}

/* ==========================================================================
   desktop ~ 1024px+ — recomposed, not just stretched
   ========================================================================== */

@media (min-width: 1024px) {
  .hero__stage {
    --pill-size: clamp(195px, 15vw, 235px);
  }

  .distraction { --size: var(--size-lg, var(--size)); }

  /* desktop keeps the halo reaching down toward the CTA — only mobile/
     tablet were pulled in tighter around the pill */
  .hero__halo-ring--1 { width: calc(var(--pill-size) + 90px);  height: calc(var(--pill-size) + 90px); }
  .hero__halo-ring--2 { width: calc(var(--pill-size) + 230px); height: calc(var(--pill-size) + 230px); }
  .hero__halo-ring--3 { width: calc(var(--pill-size) + 380px); height: calc(var(--pill-size) + 380px); }
  .hero__halo-ring--4 { width: calc(var(--pill-size) + 540px); height: calc(var(--pill-size) + 540px); }

  .hero__halo-dot--1 { top: calc(50% - (var(--pill-size) * 0.86)); left: calc(50% + (var(--pill-size) * 0.36)); }
  .hero__halo-dot--2 { top: calc(50% - (var(--pill-size) * 0.2));  left: calc(50% + (var(--pill-size) * 1.15)); }
  .hero__halo-dot--3 { top: calc(50% + (var(--pill-size) * 0.62)); left: calc(50% - (var(--pill-size) * 1.05)); }
  .hero__halo-dot--4 { top: calc(50% + (var(--pill-size) * 1.55)); left: calc(50% + (var(--pill-size) * 0.78)); }
  .hero__halo-dot--5 { top: calc(50% + (var(--pill-size) * 1.9));  left: calc(50% - (var(--pill-size) * 0.62)); }
  .hero__halo-dot--6 { top: calc(50% + 210px); left: calc(50% + 195px); }
  .hero__halo-dot--7 { top: calc(50% + 260px); left: calc(50% - 220px); }
  .hero__halo-dot--8 { top: calc(50% + 305px); left: calc(50% + 30px); }

  /* desktop-only extras (controller, phones, instagram, tiktok, paperwork)
     join the 8 mobile items here, for 13 total. Sizes use vw-based clamp()
     so objects scale up continuously from a 13" laptop to an ultra-wide
     monitor instead of staying pinned at a size tuned for one width.

     layout: 5 objects span the open top band, 4 sit in the left/right mid
     columns (clear of the centered pill/copy, which spans roughly x
     23%–77% at the 1024px floor), and 4 large "front" pieces bleed off the
     bottom corners — no more overlap or leftover odd values. */

  .distraction--desktop-only { display: block; }

  /* top band */
  .d-controller { --size-lg: clamp(120px, 8vw, 200px);  top: 4%; left: 6%;  --rot: -14deg; }
      .d-cloud

 {
        --size-lg: clamp(80px, 5.5vw, 120px);
        top: 24%;
        left: 24%;
        --rot: -8deg;
    }
    .d-messages

 {
        --size-lg: clamp(75px, 5vw, 105px);
        top: 4%;
        left: 39%;
        --rot: 8deg;
    }
  .d-phones     { --size-lg: clamp(140px, 9vw, 230px);  top: 4%; right: 6%; --rot: 6deg; }
  .d-zzz        { --size-lg: clamp(60px, 4vw, 90px);    top: 9%; right: 28%; --rot: 10deg; }

  /* left / right mid columns */
  .d-instagram  { --size-lg: clamp(90px, 6vw, 135px);  top: 34%; left: 2%;  --rot: -10deg; }
  .d-coffee     { --size-lg: clamp(120px, 7.5vw, 180px); bottom: -2%; left: 30%; --rot: 8deg; }
  .d-tiktok     { --size-lg: clamp(85px, 5.5vw, 125px); top: 34%; right: 3%; --rot: 16deg; }
    .d-email

 {
        --size-lg: clamp(110px, 7vw, 165px);
        top: 46%;
        --rot: 12deg;
        left: 22%;
    }

  /* bottom band — big pieces bleeding off the edges */
 .d-laptop {
        --size-lg: clamp(260px, 14vw, 400px);
        bottom: 6%;
        left: 4%;
        --rot: -5deg;
    }
     .d-pizza

 {
        --size-lg: clamp(140px, 9.5vw, 200px);
        top: 32%;
        left: 70%;
        --rot: -16deg;
    }
     .d-drink

 {
        --size-lg: clamp(119px, 13vw, 204px);
        bottom: 17%;
        right: 22%;
        --rot: -8deg;
    }
    .d-paperwork

 {
        --size-lg: clamp(220px, 15vw, 320px);
        bottom: 2%;
        right: 9%;
        --rot: 4deg;
    }

  .hero__headline { font-size: clamp(2.2rem, 3.4vw, 3rem); }

  .hero__copy { width: min(70vw, 34rem); }

  .hero__sub { max-width: 28rem; }
}

/* ==========================================================================
   smaller desktops (1024–1700px — 13"/14" laptops, and also covers a
   1920px monitor zoomed to 125%, which reports an effective ~1536px CSS
   width) — the pill, halo and copy were sized for large monitors and
   overwhelmed narrower/zoomed desktop viewports. Everything else on this
   tier (distraction scatter, topbar, etc.) is untouched.
   ========================================================================== */

@media (min-width: 1024px) and (max-width: 1700px) {
  .hero__stage {
    --pill-size: clamp(148px, 12vw, 180px);
  }

  .hero__halo-ring--1 { width: calc(var(--pill-size) + 60px);  height: calc(var(--pill-size) + 60px); }
  .hero__halo-ring--2 { width: calc(var(--pill-size) + 140px); height: calc(var(--pill-size) + 140px); }
  .hero__halo-ring--3 { width: calc(var(--pill-size) + 230px); height: calc(var(--pill-size) + 230px); }
  .hero__halo-ring--4 { width: calc(var(--pill-size) + 330px); height: calc(var(--pill-size) + 330px); }

  .hero__copy { width: min(56vw, 26rem); }

  .hero__headline { font-size: clamp(1.9rem, 2.8vw, 2.4rem); }

  .hero__sub { max-width: 22rem; }
}
