@font-face {
  font-family: "Moon Inter";
  src: url("assets/fonts/Inter-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Moon Inter";
  src: url("assets/fonts/Inter-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Moon Inter Display";
  src: url("assets/fonts/InterDisplay-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Moon Inter Display";
  src: url("assets/fonts/InterDisplay-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   MOON KIDS SAFETY PADDING
========================================================================== */

:root {
  /* Brand */
  --purple: #412d78;
  --purple-deep: #2a1c52;
  --purple-lift: #6a51b8;
  --gold: #f4ab33;
  --gold-soft: #fbda9a;

  /* Surfaces */
  --paper: #faf7f0;
  --paper-2: #f1ebdd;
  --paper-3: #e6dece;
  --ink: #191231;
  --muted: #6f6885;
  --rule: rgba(25, 18, 49, 0.12);
  --white: #fff;

  /* Typepo */
  --display: "Moon Inter Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Moon Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --raleway: "Moon Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --jost: "Moon Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion + elevation */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 10px rgba(25, 18, 49, 0.06);
  --shadow-md: 0 14px 40px -12px rgba(25, 18, 49, 0.18);
  --shadow-lg: 0 34px 70px -24px rgba(42, 28, 82, 0.4);

  /* Rhythm */
  --gutter: 1.25rem;
  --section-y: 4.5rem;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jost);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul {
  list-style: none;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   TYPE SCALE
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.85rem, 6vw, 3rem);
}
h3 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  letter-spacing: -0.02em;
}
h4 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--purple);
  margin-bottom: 1rem;
}
/* .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
} */
.eyebrow-gold {
  color: var(--gold);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 2.75rem;
}
.section-lede {
  color: var(--muted);
  font-size: 1.02rem;
  margin-top: 1rem;
  max-width: 58ch;
}
.section-head-center {
  margin-inline: auto;
  text-align: center;
}
.section-head-center .section-lede {
  margin-inline: auto;
}
.section-head-dark,
.section-head-dark h2 {
  color: var(--white);
}
.section-head-dark .section-lede {
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--jost);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition:
    transform 0.35s var(--ease),
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn-sm {
  padding: 0.7rem 1.15rem;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(65, 45, 120, 0.9);
}
.btn-primary:hover {
  background: var(--purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(65, 45, 120, 0.95);
}
.btn-ghost {
  border-color: var(--rule);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--purple);
  color: var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.985);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: var(--jost);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--purple);
}
.link-arrow::after {
  content: "→";
  transition: transform 0.4s var(--ease);
}

/* ==========================================================================
   SCROLL PROGRESS
   ========================================================================== */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--purple-lift));
  z-index: 120;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition:
    padding 0.4s var(--ease),
    background-color 0.4s,
    box-shadow 0.4s,
    border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  padding: 0.6rem 0;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 30px -20px rgba(25, 18, 49, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-logo {
  width: 132px;
  height: auto;
  transition: width 0.4s var(--ease);
}
.site-header.is-stuck .brand-logo {
  width: 116px;
}

.primary-nav {
  display: none;
}
.primary-nav ul {
  display: flex;
  gap: 2rem;
}
.primary-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.25rem 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-cta {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: rgba(255, 255, 255, 0.7);
}
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 20px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.4s var(--ease),
    opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(25, 18, 49, 0.48);
  /* Keep the page behind the drawer visually stable on mobile.
     The previous backdrop filter could create compositing artifacts
     with transformed hero content. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  isolation: isolate;
}
.nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1101;
  width: min(88vw, 400px);
  height: 100dvh;
  padding: 6rem 1.75rem 2rem;
  background: var(--purple-deep);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.55s var(--ease);
  overflow-y: auto;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.mobile-nav.is-open .mobile-nav-close {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav.is-open {
  transform: translate3d(0, 0, 0);
}
.mobile-nav ul {
  display: grid;
  gap: 0.25rem;
}
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  font-family: var(--jost);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateX(24px);
}
.mobile-nav.is-open a {
  animation: drawer-in 0.6s var(--ease) forwards;
}
.mobile-nav.is-open li:nth-child(1) a {
  animation-delay: 0.08s;
}
.mobile-nav.is-open li:nth-child(2) a {
  animation-delay: 0.14s;
}
.mobile-nav.is-open li:nth-child(3) a {
  animation-delay: 0.2s;
}
.mobile-nav.is-open li:nth-child(4) a {
  animation-delay: 0.26s;
}
.mobile-nav.is-open li:nth-child(5) a {
  animation-delay: 0.32s;
}
@keyframes drawer-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.mn-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
}
.mobile-nav-foot {
  padding-top: 2rem;
}
.mobile-nav-foot p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.mobile-nav-foot .btn-primary {
  background: var(--gold);
  color: var(--purple-deep);
}

body.nav-open {
  overflow: hidden;
}

/* Keep the entire header behind the mobile drawer. This prevents the
   fixed logo from visually crossing into the drawer panel. */
body.nav-open .site-header {
  z-index: 1000;
}

/* Do not let desktop hero 3D/parallax compositing leak into the mobile
   drawer/scrim while the menu is open. */
@media (max-width: 899px) {
  body.nav-open .hero-visual-frame {
    transform: none !important;
  }
  body.nav-open .hero-visual-img {
    transform: none !important;
  }
  body.nav-open .hero-tick {
    transform: none !important;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 7.5rem 0 3.5rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -22%;
  right: -30%;
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(244, 171, 51, 0.28), rgba(244, 171, 51, 0) 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 12vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 1.4rem;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  color: var(--purple);
}
.hero-title .accent > span {
  color: var(--gold);
  font-weight: 500;
}

.hero-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.9rem 0 2.25rem;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.spec dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.spec dd {
  font-family: var(--jost);
  font-size: clamp(1.15rem, 4.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.spec dd .mono {
  font-family: var(--mono);
  color: var(--purple);
}

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-visual-frame {
  position: relative;
  padding: 1.25rem;
  overflow: visible;
  background: linear-gradient(160deg, var(--white), var(--paper-2));
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background-color: #f7f3ed;
}
.hero-visual-frame::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px dashed rgba(65, 45, 120, 0.22);
  border-radius: 14px;
  pointer-events: none;
}
.hero-visual-img {
  mix-blend-mode: normal;
  filter: none;
}
.hero-visual figcaption {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
}
.hero-tick {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.hero-tick-a {
  top: 22%;
  left: -0.5rem;
}
.hero-tick-b {
  top: 46%;
  right: -0.5rem;
}
.hero-tick-c {
  bottom: 16%;
  left: 8%;
}

/* ==========================================================================
   SIGNATURE  MEASURE TO FIT
   ========================================================================== */
.fit {
  padding: 0 0 var(--section-y) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.fit-stage {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  padding: 4.5rem 1rem 1.25rem;
  overflow: hidden;
}
.blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(65, 45, 120, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(65, 45, 120, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
}

.fit-readout {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  background: var(--purple-deep);
  color: var(--white);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  font-size: 0.68rem;
}
.readout-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}
.readout-value {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.78rem;
}
.readout-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

.fit-wall {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.dim-rule {
  position: relative;
  height: 2px;
  background: var(--purple);
  margin-bottom: 1.35rem;
}
.dim-cap {
  position: absolute;
  top: -7px;
  left: 0;
  width: 2px;
  height: 16px;
  background: var(--purple);
}
.dim-cap-end {
  left: auto;
  right: 0;
}

.fit-track {
  display: flex;
  height: clamp(150px, 34vw, 230px);
  border: 1.5px solid var(--purple);
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, var(--paper-3) 0 8px, var(--paper-2) 8px 16px);
  overflow: hidden;
}

.fit-pad {
  position: relative;
  width: 64%;
  flex-shrink: 0;
  box-sizing: border-box;
  background: linear-gradient(150deg, var(--purple-lift), var(--purple));
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    8px 0 24px -10px rgba(25, 18, 49, 0.6);
}
.pad-seam {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.pad-seam:nth-of-type(1) {
  left: 33.33%;
}
.pad-seam:nth-of-type(2) {
  left: 66.66%;
}
.pad-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  white-space: nowrap;
}

.fit-gap {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
}
.gap-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b3452f;
  border: 1px dashed #b3452f;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
  transition: opacity 0.3s;
}
.fit-gap.is-closed .gap-label {
  opacity: 0;
}

.fit-floor {
  height: 14px;
  margin-top: 0.6rem;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--paper-3) 0 14px, var(--paper-2) 14px 28px);
  border: 1px solid var(--rule);
}

.fit-status {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.fit-status.is-fit {
  color: var(--purple);
  font-weight: 500;
}

.fit-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 100px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
}
.seg-btn {
  padding: 0.55rem 1rem;
  border-radius: 100px;
  font-family: var(--jost);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition:
    background-color 0.35s var(--ease),
    color 0.3s;
}
.seg-btn.is-active {
  background: var(--purple);
  color: var(--white);
}
.fit-hint {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fit-notes {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}
.note {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
}
.note h3 {
  margin-bottom: 0.5rem;
}
.note p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products {
  padding: var(--section-y) 0 var(--section-y) 0;
  background: var(--paper-2);
}
.section-head-split {
  max-width: none;
}
.product-grid {
  display: grid;
  gap: 1.25rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.4s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(65, 45, 120, 0.3);
}
.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.product-card:hover .product-media img {
  transform: scale(1.06);
}
.product-index {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(25, 18, 49, 0.72);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 0.66rem;
}
.product-body {
  padding: 1.4rem;
}
.product-body h3 {
  margin-bottom: 0.5rem;
}
.product-body p {
  color: var(--muted);
  font-size: 0.94rem;
}
.product-card:hover .link-arrow::after {
  transform: translateX(5px);
}

/* ==========================================================================
   SECTORS
   ========================================================================== */
.sectors {
  padding: var(--section-y) 0;
  background: var(--purple-deep);
  position: relative;
  overflow: hidden;
}
.sectors::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(106, 81, 184, 0.5), transparent 62%);
  pointer-events: none;
}
.sectors .container {
  position: relative;
}
.sector-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.sector-card {
  background: var(--purple-deep);
  padding: 1.6rem 1.4rem;
  color: var(--white);
  transition: background-color 0.4s var(--ease);
}
.sector-card:hover {
  background: #33235f;
}
.sector-card h4 {
  margin-bottom: 0.4rem;
  color: var(--gold);
}
.sector-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects {
  padding: var(--section-y) 0;
}
.project-grid {
  display: grid;
  gap: 1.25rem;
}
.project {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.project:hover img {
  transform: scale(1.07);
}
.project-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem 1.25rem 1.25rem;
  background: linear-gradient(transparent, rgba(25, 18, 49, 0.9));
  color: var(--white);
}
.project-caption p {
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin-top: 0.2rem;
}
.center-action {
  text-align: center;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Hero: visual column protector beside the "column wraps" callout
   -------------------------------------------------------------------------- */
.hero-column-protector {
  display: none;
  position: absolute;
  z-index: 3;
  left: 76.2%;
  top: 45%;
  width: 5.2%;
  height: 25.5%;
  min-width: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 32, 80, 0.95) 0%, #2367bd 16%, #4b91e3 42%, #1c5ba9 72%, #103e79 100%);
  box-shadow:
    inset 3px 0 5px rgba(255, 255, 255, 0.25),
    inset -4px 0 7px rgba(0, 0, 0, 0.28),
    0 14px 24px rgba(20, 25, 70, 0.28);
  transform: translateZ(0);
  pointer-events: none;
}
.hero-column-core {
  display: none;
  position: absolute;
  inset: 5% 13%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 45%, rgba(0, 0, 0, 0.1));
}
.hero-column-base {
  display: none;
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 132%;
  height: 6%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(16, 38, 80, 0.45);
  filter: blur(2px);
}
@media (max-width: 899px) {
  .hero-column-protector {
    left: 75%;
    top: 45%;
    width: 6%;
    height: 24%;
  }
}

/* ==========================================================================
   VIDEO
   ========================================================================== */
.video-section {
  padding: 0 0 var(--section-y);
}
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.video-poster-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(25, 18, 49, 0.35);
  transition:
    opacity 0.4s,
    background-color 0.4s;
}
.video-poster-btn[hidden] {
  display: none;
}
.play-glyph {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(244, 171, 51, 0.55);
  animation: pulse 2.6s infinite;
}
.play-glyph::after {
  content: "";
  border-left: 16px solid var(--purple-deep);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 22px rgba(244, 171, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 171, 51, 0);
  }
}
.video-bar {
  display: flex;
  gap: 1.5rem;
  padding: 0.9rem 1.25rem;
  background: rgba(25, 18, 49, 0.94);
}
.video-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s;
}
.video-btn:hover {
  color: var(--gold);
}

/* ==========================================================================
   CTA + FORM
   ========================================================================== */
.cta {
  padding: var(--section-y) 0;
  background: var(--purple);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -45%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(244, 171, 51, 0.22), transparent 62%);
  pointer-events: none;
}
.cta-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
}
.cta-copy h2 {
  color: var(--white);
}
.cta-copy > p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 1rem;
  max-width: 46ch;
}
.cta-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.cta-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.cta-list span {
  color: var(--gold);
  font-weight: 700;
}

.form-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.form-card h3 {
  margin-bottom: 0.35rem;
}
.form-card-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--jost);
  font-size: 1rem; /* 16px avoids iOS zoom-on-focus */
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  transition:
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}
.control::placeholder {
  color: #a49fb2;
}
.control:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(65, 45, 120, 0.12);
}
select.control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--purple) 50%), linear-gradient(135deg, var(--purple) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 55%,
    calc(100% - 14px) 55%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}
textarea.control {
  resize: vertical;
  min-height: 96px;
}
.control.has-error {
  border-color: #b3452f;
}
.field-error {
  display: block;
  min-height: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #b3452f;
  margin-top: 0.35rem;
}
.form-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.66rem;
  color: var(--muted);
}

.form-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--purple-deep);
  font-size: 1.5rem;
  font-weight: 700;
}
.form-success h4 {
  margin-bottom: 0.4rem;
}
.form-success p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   FOOTER + MOBILE CTA BAR
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding: 3.25rem 0 1.75rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer-logo {
  width: 150px;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  max-width: 42ch;
  line-height: 1.65;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s,
    transform 0.35s var(--ease);
}
.footer-social svg {
  width: 17px;
  height: 17px;
  fill: rgba(255, 255, 255, 0.8);
  transition: fill 0.3s;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.footer-social a:hover svg {
  fill: var(--ink);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}
.footer-links a {
  position: relative;
  display: inline-block;
  transition:
    color 0.3s,
    transform 0.35s var(--ease);
}
.footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-contact {
  font-style: normal;
  display: grid;
  gap: 0.85rem;
}
.footer-address {
  line-height: 1.7;
}
.footer-strong {
  font-family: var(--jost);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}
.footer-strong:hover {
  color: var(--gold);
}
.footer-hours {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-base {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Product prices + show more ---------------------------------------- */
.product-price {
  margin-top: 0.9rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--purple);
}
.product-price span {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.product-card[hidden] {
  display: none;
}
.product-more {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.product-more .btn {
  gap: 0.7rem;
}
.more-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.4s var(--ease);
}
#productMoreBtn[aria-expanded="true"] .more-chevron {
  transform: translateY(1px) rotate(-135deg);
}
.product-more-note {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
}

.mobile-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 9990 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.7rem 0.7rem 1.1rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -18px rgba(25, 18, 49, 0.55);
  transform: translateY(140%);
  transition: transform 0.55s var(--ease);
}
.mobile-cta.is-visible {
  transform: translateY(0);
}
.mobile-cta-text {
  display: grid;
  line-height: 1.25;
}
.mobile-cta-text strong {
  font-family: var(--display);
  font-size: 0.92rem;
}
.mobile-cta-text .mono {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ==========================================================================
   REVEAL STATE (JS adds .is-in)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.no-js [data-reveal],
.js-failed [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Hero load-in (CSS-driven, dependency-free) */
[data-load] {
  --delay: 0.1s;
  opacity: 0;
  transform: translateY(20px);
  animation: load-in 0.9s var(--ease) var(--delay) forwards;
}
[data-load="2"] {
  --delay: 0.18s;
}
[data-load="3"] {
  --delay: 0.26s;
}
[data-load="4"] {
  --delay: 0.34s;
}
[data-load="5"] {
  --delay: 0.46s;
}
[data-load="6"] {
  --delay: 0.56s;
}
[data-load="7"] {
  --delay: 0.66s;
}
@keyframes load-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Headline lines rise from behind their own mask instead of fading */
.hero-title .line[data-load] {
  opacity: 1;
  transform: none;
  animation: none;
}
.hero-title .line[data-load] > span {
  opacity: 0;
  transform: translateY(105%);
  animation: load-rise 1s var(--ease) var(--delay) forwards;
}
@keyframes load-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */
@media (min-width: 600px) {
  :root {
    --gutter: 2rem;
  }
  .product-grid,
  .project-grid,
  .fit-notes {
    grid-template-columns: repeat(2, 1fr);
  }
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-base {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fit-stage {
    padding: 4.75rem 2rem 1.75rem;
  }
  .fit-readout {
    font-size: 0.72rem;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (min-width: 900px) {
  :root {
    --section-y: 7rem;
    --gutter: 2.5rem;
  }
  html {
    scroll-padding-top: 100px;
  }
  .primary-nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-cta {
    display: none;
  }
  .brand-logo {
    width: 168px;
  }
  .site-header.is-stuck .brand-logo {
    width: 144px;
  }

  .hero {
    padding: 10rem 0 5rem;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.5rem;
  }
  .hero-lede {
    font-size: 1.12rem;
  }

  .section-head-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
  }
  .section-head-split .section-lede {
    margin-top: 0;
  }

  .product-grid,
  .fit-notes {
    grid-template-columns: repeat(3, 1fr);
  }
  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fit-notes {
    gap: 1.5rem;
  }

  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .form-card {
    padding: 2.25rem;
  }
  .fit-stage {
    padding: 5.5rem 3rem 2.25rem;
  }
  .video-bar {
    padding: 1.1rem 2rem;
  }
}

@media (min-width: 1140px) {
  .hero-title {
    font-size: 4.6rem;
  }
  .hero-tick-a {
    left: -2.5rem;
  }
  .hero-tick-b {
    right: -2.5rem;
  }
}

/* Fine pointers only  avoids sticky hover states on touch */
@media (hover: none) {
  .product-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  [data-load],
  .hero-title .line[data-load] > span {
    opacity: 1 !important;
    transform: none !important;
  }
  .mobile-cta {
    transform: none;
  }
}

/* Three-column footer on desktop */
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.15fr;
    gap: 3.5rem;
  }
  .site-footer {
    padding: 4.5rem 0 2rem;
  }
}

/* ==========================================================================
   PREMIUM EDITORIAL POLISH
   ========================================================================== */
.hero-visual-frame {
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) rotateX(var(--hero-rx, 0deg)) rotateY(var(--hero-ry, 0deg));
  transition:
    box-shadow 0.6s var(--ease),
    border-color 0.6s var(--ease);
  will-change: transform;
}
.hero-visual-frame:hover {
  border-color: rgba(65, 45, 120, 0.24);
  box-shadow: 0 24px 60px -24px rgba(42, 28, 82, 0.34);
}
.hero-tick {
  transition:
    transform 0.7s var(--ease),
    box-shadow 0.4s var(--ease);
}
.hero-tick:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(25, 18, 49, 0.22);
}
.section-head h2 {
  text-wrap: balance;
}
.fit-stage {
  box-shadow: 0 28px 70px -42px rgba(42, 28, 82, 0.45);
}
.product-grid {
  perspective: 1200px;
}
.product-card {
  position: relative;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.project {
  isolation: isolate;
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(25, 18, 49, 0.72) 100%);
  z-index: 0;
}
.project-caption {
  z-index: 1;
}
.cta-copy h2 {
  max-width: 13ch;
}
.form-note a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 900px) {
  .hero-grid {
    min-height: 650px;
  }
  .hero-copy {
    padding-block: 2rem;
  }
  .hero-visual {
    margin-top: -2.4rem;
  }
  .hero-image-stage {
    transform: translateY(-32px);
  }
  .hero-visual-img {
    transform: translate3d(0, calc(var(--hero-img-y, 0) - 18px), 0) scale(1.012);
  }
  .hero-visual-frame {
    box-shadow: 0 32px 80px -34px rgba(42, 28, 82, 0.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual-frame,
  .hero-visual-img {
    transform: none !important;
  }
}

/* ========================================================================== 
   PROOF / TRUST SECTION
   ========================================================================== */
.proof {
  padding: var(--section-y) 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.proof::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 81, 184, 0.12), transparent 68%);
  pointer-events: none;
}
.proof .container {
  position: relative;
}
.proof-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}
.proof-card {
  background: rgba(255, 255, 255, 0.72);
  padding: 1.6rem;
  min-height: 210px;
  transition:
    background-color 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.proof-card:hover {
  background: var(--white);
  transform: translateY(-3px);
}
.proof-number {
  display: inline-block;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  margin-bottom: 2.8rem;
}
.proof-card h3 {
  margin-bottom: 0.55rem;
}
.proof-card p {
  color: var(--muted);
  max-width: 38ch;
  font-size: 0.94rem;
}
@media (min-width: 600px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .proof-card {
    padding: 1.8rem;
  }
}

/* ==========================================================================
   PRODUCT RANGE POLISH
   Keep the 19-product range prominent without a large empty header column.
   ========================================================================== */
.section-head-products {
  display: block;
  max-width: 820px;
  margin-bottom: 2.75rem;
}
.section-head-products .section-lede {
  max-width: 70ch;
  margin-top: 0.9rem;
}

@media (min-width: 900px) {
  .section-head-products {
    max-width: 920px;
    margin-bottom: 3rem;
  }
  .section-head-products h2 {
    max-width: 13ch;
  }
}

/* ==========================================================================
   CONTINUOUS VIDEO
   Scrolling does not alter playback state.
   ========================================================================== */
.video-frame video {
  cursor: default;
}

/* ==========================================================================
   CINEMATIC HERO MOTION
   The hero product image gently floats forever. The motion is intentionally
   slow and restrained so the safety-padding exploded view stays readable.
   ========================================================================== */

.hero-image-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  transform-origin: 50% 50%;
  animation: moonKidsHeroFloat 7.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}

/* A very soft moving light gives the exploded components a premium,
   dimensional feel without adding a distracting glow. */
.hero-image-stage::after {
  content: "";
  position: absolute;
  inset: 8% 10%;
  pointer-events: none;
  border-radius: 18px;
  background: linear-gradient(
    112deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0) 46%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 54%,
    transparent 60%,
    transparent 100%
  );
  background-size: 240% 100%;
  mix-blend-mode: screen;
  opacity: 0.38;
  animation: moonKidsHeroSheen 5.8s ease-in-out infinite;
}

.hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  /* background: transparent !important; */
  transform: translate3d(0, var(--hero-img-y, 0), 0) scale(1.012);
  transition:
    transform 0.8s var(--ease),
    opacity 0.35s ease;
  will-change: transform, opacity;
}
.hero-visual-img.is-ready {
  opacity: 1;
}

/* Slow breathing movement: never snaps, never reverses abruptly. */
@keyframes moonKidsHeroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg) rotateY(0deg) scale(1);
  }
  25% {
    transform: translate3d(0, -8px, 0) rotateZ(-0.35deg) rotateY(0.4deg) scale(1.01);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotateZ(0deg) rotateY(0.55deg) scale(1.018);
  }
  75% {
    transform: translate3d(0, -7px, 0) rotateZ(0.35deg) rotateY(0.2deg) scale(1.011);
  }
}

@keyframes moonKidsHeroSheen {
  0%,
  18% {
    background-position: 125% 0;
  }
  55%,
  72% {
    background-position: 0% 0;
  }
  100% {
    background-position: -125% 0;
  }
}

/* Slightly more cinematic on large screens. */
@media (min-width: 900px) {
  .hero-image-stage {
    animation-duration: 8.4s;
  }
  .hero-image-stage::after {
    opacity: 0.45;
  }
}

/* On small screens keep the motion lighter so the hero stays stable. */
@media (max-width: 899px) {
  .hero-image-stage {
    animation-duration: 9s;
  }
  .hero-image-stage::after {
    opacity: 0.22;
  }
}

/* Accessibility: completely remove continuous motion when requested. */
@media (prefers-reduced-motion: reduce) {
  .hero-image-stage,
  .hero-image-stage::after {
    animation: none !important;
  }
}

/* Desktop-only final positioning fix:
   Lift the hero visual slightly so the bottom of the product image is not clipped.
   Mobile/tablet keeps the existing layout untouched. */
@media (min-width: 901px) {
  .hero-visual-frame {
    transform: translateY(-12px);
  }
}

/* Mobile menu layering fix:
   Keep the mobile header/menu above the page content so the logo never overlaps
   with the opened menu. */
@media (max-width: 900px) {
  header {
    position: relative;
    z-index: 1000;
  }

  .mobile-menu {
    position: absolute;
    z-index: 1001;
    left: 0;
    right: 0;
    top: 100%;
  }
}
