:root {
  --white: #fafafa;
  --body-intense: #f5f5f5;
  --body-moderate: #d4d4d4;
  --body-subtle: #a3a3a3;
  --muted: #b9b9b9;
  --purple: #e0a52a;
  --gold: #f3c43d;
  --gold-soft: #ffe9a8;
  --gold-deep: #e0a52a;
  --tag-border: rgba(113, 113, 113, 0.41);
  --card-bg: #171717;
  --card-border: rgba(255, 255, 255, 0.18);
  --maxw: 100%;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fira Sans", sans-serif;
  color: var(--white);
  background-color: #050507;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Single fixed backdrop - anchored to the viewport so there is no seam
     between the hero copy and the graphic, and it stays put while scrolling. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      90% 55% at 50% -8%,
      rgba(190, 145, 40, 0.3) 0%,
      rgba(48, 36, 14, 0) 60%
    ),
    radial-gradient(120% 90% at 50% 120%, #0a0805 0%, #050505 70%);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Media can never exceed the viewport width on any device */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.24px;
  cursor: pointer;
  border: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: #473810;
}
.btn-purple {
  background: var(--gold-deep);
  color: #1c1606;
}
.btn-sm {
  height: 28px;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.21px;
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(6, 6, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* Fallback for browsers without backdrop-filter: keep the bar readable */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  nav {
    background: rgba(6, 6, 10, 0.94);
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 120px;
  margin: 0 auto;
  max-width: var(--maxw);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--white);
}
/* Desktop: nav brand logo slightly larger */
.nav-left .logo {
  font-size: 28px;
  letter-spacing: 2px;
}
.nav-left .nav-logo {
  display: block;
  flex: 0 0 104px;
  width: 104px;
}
.nav-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a,
.nav-docs-desktop {
  position: relative;
  font-size: 16px;
  line-height: 24px;
  color: var(--body-intense);
  padding-bottom: 3px;
}
.nav-links a::after,
.nav-docs-desktop::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-deep);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-docs-desktop:hover {
  color: #fff;
}
.nav-links a:hover::after,
.nav-docs-desktop:hover::after {
  transform: scaleX(1);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-docs-mobile {
  display: none;
}
.nav-cta-mobile {
  display: none;
}
.vdiv {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.22);
}
.powered {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.powered .pb {
  display: inline-block;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  max-width: 130px;
  transition:
    opacity 0.25s ease,
    max-width 0.3s ease,
    margin 0.3s ease;
}
.lysto-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
  transform-origin: center;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    filter 0.3s ease;
  filter: saturate(0.5) brightness(0.92);
  will-change: transform;
  position: relative;
  z-index: 1;
}
.lysto-logo img {
  display: block;
}
.lysto-logo .l-typo {
  width: 38px;
  height: 14px;
}
.lysto-logo .l-mark {
  width: 12px;
  height: 12px;
}
/* On hover, scale the Lysto logo and slide it left to sit over the "Powered by" text */
.powered:hover .lysto-logo {
  transform: translateX(-34px) scale(1.85);
  filter: saturate(1.25) brightness(1.12);
}
/* "Powered by" fades to 0 opacity but keeps its box, so the frame size is identical in default and hover */
.powered:hover .pb {
  opacity: 0;
}

/* ---------- Hero / Fold 1 ---------- */
.fold1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px 56px;
  text-align: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 920px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 50px;
  background: radial-gradient(
    120% 200% at 50% 100%,
    #4a3a0e 0%,
    #342708 50%,
    #1c1606 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 8px 30px rgba(212, 175, 55, 0.14);
}
.pill p {
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #e7cf86;
}
.hero-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.hero-head h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 58px;
  line-height: 64px;
  letter-spacing: -1.4px;
  color: var(--white);
}
.hero-head h1 b {
  font-weight: 700;
  background: linear-gradient(
    92deg,
    #ffe9a8 0%,
    #ffcf4d 50%,
    #e0a52a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-head .sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--body-subtle);
  max-width: 600px;
}
.hero-cta {
  height: 50px;
  padding: 0 26px;
  font-size: 17px;
  color: #473810;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.22);
}

/* ---------- Hero video carousel ---------- */
.hero-carousel {
  --hc-gap: 18px;
  --hc-thumb-h: 64px;
  --hc-thumb-strip: 82px; /* thumb height + vertical padding, kept in sync via JS var too */
  width: 100%;
  padding: 24px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hc-gap);
  outline: none;
}
.hc-frame {
  position: relative;
  width: 90%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.28),
    0 24px 48px rgba(0, 0, 0, 0.32),
    0 48px 96px rgba(0, 0, 0, 0.28),
    0 80px 160px rgba(0, 0, 0, 0.22),
    0 0 80px rgba(100, 60, 220, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #000;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.hc-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hc-rail {
  display: flex;
  height: 100%;
  will-change: transform;
}
.hc-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.hc-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}
.hc-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.hc-caption span {
  color: var(--gold);
  font: 500 11px/15px "Fira Mono", monospace;
  white-space: nowrap;
}
.hc-caption strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hc-play-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  color: #fff;
  cursor: pointer;
  font: 500 12px/16px "Fira Mono", monospace;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hc-play-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(5, 5, 5, 0.88);
}
.hc-play-icon {
  display: inline-grid;
  place-items: center;
  width: 12px;
  color: var(--gold);
  font-size: 9px;
}
.hc-grab {
  cursor: grab;
}
.hc-grab.is-dragging {
  cursor: grabbing;
}
.hc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  color: #14110b;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
}
.hc-nav:hover {
  opacity: 1;
  background: #fff;
}
.hc-prev {
  left: 14px;
}
.hc-next {
  right: 14px;
}
.hc-nav:disabled {
  opacity: 0.16;
  cursor: default;
  pointer-events: none;
}
.hc-thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 9px 10px; /* vertical padding so the active outline is not clipped */
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.hc-thumbs::-webkit-scrollbar {
  display: none;
}
.hc-thumbs.is-scroll {
  justify-content: flex-start;
}
.hc-thumb {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 35px;
  height: var(--hc-thumb-h);
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #14110b;
  cursor: pointer;
  opacity: 0.8;
  outline: none;
  transition:
    width 0.3s ease-out,
    box-shadow 0.3s ease-out,
    opacity 0.2s ease;
}
.hc-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hc-thumb:hover {
  opacity: 1;
}
.hc-thumb.is-active {
  width: 120px;
  box-shadow: 0 0 0 2px #fff;
  opacity: 1;
}
.hero-carousel:focus-visible,
.hc-nav:focus-visible,
.hc-thumb:focus-visible,
.hc-play-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .hc-thumbs {
    scroll-behavior: auto;
  }
  .hc-thumb {
    transition: none;
  }
}
/* Keep the desktop demo prominent without making visitors scroll through
   another full viewport before reaching the product explanation. */
@media (min-width: 901px) {
  .hero-carousel {
    height: clamp(460px, 68vh, 760px);
    justify-content: center;
  }
}

/* ---------- Fold 2 / Investors ---------- */
.fold2 {
  background: #e5e2d5;
  color: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 60px 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.fold2 h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
  color: #0a0a0a;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 46px;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
}
.logos img.lg {
  height: 64px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}
.logos img.lg.dg {
  height: 64px;
}

/* ---------- Built-by-experts / logo proof (second-to-last fold) ---------- */
.fold-experts {
  width: 100%;
  background: linear-gradient(180deg, #000000 0%, #05080f 100%);
  display: flex;
  justify-content: center;
  padding: 24px 60px;
}
.experts-card {
  width: 100%;
  max-width: 1180px;
  border-radius: 32px;
  padding: 20px 40px;
  background:
    radial-gradient(
      120% 140% at 50% 0%,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(242, 236, 216, 0.05) 45%,
      rgba(229, 226, 213, 0) 100%
    ),
    linear-gradient(180deg, #1a1712 0%, #0c0d10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}
.experts-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: #fff;
  max-width: 760px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 25px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 50px -34px rgba(0, 0, 0, 0.7);
}
.logo-card {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 132px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  box-shadow: 0 4px 12px -8px rgba(0, 0, 0, 0.5);
}
.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.experts-note {
  display: inline-block;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 14px 26px;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.6);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-moderate);
  max-width: none;
  white-space: nowrap;
}
.experts-note .rc {
  color: var(--gold-deep);
  font-weight: 600;
}
@media (max-width: 900px) {
  .fold-experts {
    padding: 48px 32px;
  }
  .experts-card {
    padding: 40px 28px;
    border-radius: 26px;
    gap: 28px;
  }
  .experts-card h2 {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  .fold-experts {
    padding: 40px 16px;
  }
  .experts-card {
    padding: 32px 12px;
  }
  .experts-card h2 {
    font-size: 21px;
  }
  .logo-row {
    padding: 12px;
    gap: 10px;
  }

  .experts-note {
    font-size: 13.5px;
    padding: 12px 18px;
    white-space: normal;
  }
}

/* ---------- Fold 5 / CTA ---------- */
.fold5 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px;
  width: 100%;
  position: relative;
  background: #05080f;
  overflow: hidden;
}
.fold5::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.72) 100%
  );
  z-index: 0;
  pointer-events: none;
}
.fold5 .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.fold5 .cta-box {
  position: relative;
  z-index: 1;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
  max-width: 880px;
  box-shadow: none;
}
.fold5 h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 58px;
  color: #fff;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.9);
}
.fold5 h2 b {
  font-weight: 700;
  color: #fff;
}
.fold5 .cta-box p {
  font-size: 17px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
}
.fold5 .top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Footer ---------- */
footer {
  width: 100%;
  background: #000;
  backdrop-filter: blur(5.85px);
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 115px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.foot-row .logo {
  font-size: 24px;
}
.foot-row .footer-logo {
  display: block;
  flex: 0 0 96px;
  width: 96px;
}
.footer-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.foot-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot-cta a {
  font-size: 16px;
  line-height: 24px;
  color: var(--body-intense);
}
.foot-div {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
}
.foot-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.foot-legal .left {
  display: flex;
  gap: 20px;
}
.foot-legal span,
.foot-legal .left a {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: #8a8a8a;
}
.foot-legal .left a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-inner {
    padding: 14px 40px;
  }

  .foot-inner {
    padding: 20px 48px;
  }
}

@media (max-width: 900px) {
  /* Mobile: no hamburger - About Lysto, Docs, and Get Started stay visible */
  .nav-right {
    display: none;
  }
  .nav-feature {
    display: none;
  }
  .nav-docs-mobile {
    display: inline-block;
  }
  .nav-cta-mobile {
    display: inline-flex;
    margin-left: 14px;
  }
  .nav-left {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
  }
  .nav-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
  }
  .nav-links a {
    font-size: 14px;
  }
  .nav-left .logo {
    font-size: 24px;
  }
  .hero-head h1 {
    font-size: 38px;
    line-height: 44px;
    letter-spacing: -0.8px;
  }
  .hero-head .sub {
    font-size: 16px;
    line-height: 24px;
  }
  /* Mobile: carousel flows naturally, no one-screen sizing, smaller controls */
  .hero-carousel {
    min-height: auto;
    --hc-thumb-h: 48px;
  }
  .hc-frame {
    width: 92%;
  }
  .hc-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .hc-caption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }
  .hc-play-toggle {
    top: 8px;
    right: 8px;
    min-height: 34px;
    padding: 0 10px;
  }
  .hc-prev {
    left: 8px;
  }
  .hc-next {
    right: 8px;
  }
  .hc-thumb.is-active {
    width: 96px;
  }

  .fold2 {
    padding: 48px 32px;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 12px 20px;
  }
  .hero-head h1 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.5px;
  }
  .pill p {
    font-size: 11px;
    letter-spacing: 0.8px;
  }
  .fold1 {
    padding: 48px 20px 40px;
  }
  .hero-copy {
    gap: 22px;
  }
  .fold5 {
    padding: 80px 16px;
  }
  .fold5 .cta-box {
    padding: 0 8px;
  }
  .fold5 h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .foot-inner {
    padding: 20px;
  }
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .foot-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .logos {
    gap: 28px;
  }
  .logos img.lg,
  .logos img.lg.dg {
    height: 44px;
  }
}
/* Small phones (320–400px): keep everything inside the viewport */
@media (max-width: 400px) {
  .nav-inner {
    padding: 10px 14px;
  }
  .nav-left {
    gap: 10px;
  }
  .nav-left .logo {
    font-size: 19px;
    letter-spacing: 1px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 13px;
  }
  .fold1 {
    padding: 40px 16px 32px;
  }
  .hero-head h1 {
    font-size: 26px;
    line-height: 32px;
  }
  .hero-head .sub {
    font-size: 15px;
    line-height: 22px;
  }
  .pill {
    padding: 9px 14px;
  }
  .pill p {
    font-size: 11px;
    letter-spacing: 0.6px;
  }
  .hc-frame {
    width: 100%;
    border-radius: 12px;
  }
  .fold2 {
    padding: 40px 16px;
  }
  .logos {
    gap: 20px;
  }
  .logos img.lg,
  .logos img.lg.dg {
    height: 36px;
  }

  .fold5 {
    padding: 72px 12px;
  }
  .fold5 h2 {
    font-size: 27px;
    line-height: 33px;
  }
  .foot-inner {
    padding: 16px 14px;
  }
}

/* ---------- Feature folds: 01 Understand / 02 Act / 03 Verify ---------- */
:root { --fold-pad: 96px; }

/* Folds 02 & 03 — feature rows (copy + animated scene iframe) */
.frow {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: var(--fold-pad) 120px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.frow.tintA { background: #151311; }
.frow.tintB { background: #090807; }
.frow .media {
  /* percentage cap keeps the scene from starving the copy column */
  width: min(601px, 50.6%);
  flex-shrink: 0;
}
/* fold 03 carries three windows in one frame, so its scene runs wider */
.frow.tintA .media { width: min(837px, 70.6%); }
.frow .copy {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.frow .copy h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: calc(38.4px * var(--ts));
  line-height: calc(44.8px * var(--ts));
  text-wrap: balance;
  font-weight: 300;
  color: #fff;
}
.frow .copy h3 b { display: block; font-weight: 700; }
.frow .copy p {
  font-size: calc(15px * var(--ts));
  line-height: calc(24px * var(--ts));
  color: #fff;
}
.frow .copy .eyebrow,
.mcopy .eyebrow {
  font-family: "Fira Mono", monospace;
  font-size: calc(12px * var(--ts));
  font-weight: 500;
  letter-spacing: calc(1.6px * var(--ts));
  text-transform: uppercase;
  color: #a39367;
}
/* copy runs one notch below base scale so the scenes carry the composition */
.mcopy,
.frow .copy { --ts: 0.9; }

/* each scene is a self-contained animated page that scales itself to its iframe */
.frow .media > .media-embed {
  display: block;
  width: 100%;
  aspect-ratio: var(--embed-ratio);
  border: 0;
  border-radius: 12px;
}

/* Fold 01 — Understand: scene's own frosted frames stand on the section ground */
.mfold {
  position: relative;
  background: #151311;
  padding: var(--fold-pad) 0;
  overflow: hidden;
  scroll-margin-top: 70px;
}
.mfold-inner {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.mgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.mcopy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 546px;
  margin: 0 auto;
}
.mcopy h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: calc(38.4px * var(--ts));
  line-height: calc(44.8px * var(--ts));
  text-wrap: balance;
  font-weight: 300;
  color: var(--muted);
}
.mcopy h3 b { display: block; font-weight: 700; color: #fff; }
.mcopy p {
  font-size: calc(15px * var(--ts));
  line-height: calc(24px * var(--ts));
  color: var(--body-moderate);
}
.mmock {
  position: relative;
  width: 100%;
  max-width: 384px;
  margin: 0 auto;
}
.mmock > .media-embed {
  display: block;
  width: 100%;
  aspect-ratio: 700 / 566;
  border: 0;
}
.mfold-rule {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: 1px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* staggered entrance */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}
.mgrid.in .reveal { opacity: 1; transform: none; }
.mgrid.in .reveal + .reveal { transition-delay: 0.2s; }
.frow.in .reveal { opacity: 1; transform: none; }
.frow.in .copy.reveal { transition-delay: 0.2s; }

/* ---------- Feature folds — responsive ---------- */
@media (max-width: 1100px) {
  .frow { padding: var(--fold-pad) 48px; }
}
@media (min-width: 768px) {
  .mfold-inner { padding: 0 40px; }
  /* 1.5fr : 1fr gives the scene the wider column; mockup left, text right */
  .mgrid { grid-template-columns: 1.5fr 1fr; gap: 32px; }
  .mgrid .mcopy { margin: 0; }
  .mmock { max-width: 740px; }
}
@media (max-width: 900px) {
  :root { --fold-pad: 80px; }
  .frow { flex-direction: column; padding: var(--fold-pad) 32px; }
  .frow + .frow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 64px);
    max-width: 384px;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.14) 50%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  /* scene always on top, text below */
  .frow .media, .frow.tintA .media { width: 80%; max-width: 599px; order: -1; }
  .frow .copy { order: 1; max-width: 100%; align-items: flex-start; }
}
@media (max-width: 600px) {
  :root { --fold-pad: 64px; }
  .frow { padding: var(--fold-pad) 20px; }
  .frow .copy h3 { font-size: calc(22.4px * var(--ts)); line-height: calc(27.2px * var(--ts)); }
  .mfold-inner { padding: 0 20px; }
  .mcopy h3 { font-size: calc(22.4px * var(--ts)); line-height: calc(27.2px * var(--ts)); }
}
@media (max-width: 400px) {
  .frow { padding: var(--fold-pad) 16px; }
  .frow .copy h3 { font-size: calc(20px * var(--ts)); line-height: calc(24.8px * var(--ts)); }
  .mfold-inner { padding: 0 16px; }
  .mcopy h3 { font-size: calc(20px * var(--ts)); line-height: calc(24.8px * var(--ts)); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}

/* ---------- Addressables workflow ---------- */
.addressables-preview {
  padding: 48px 20px;
  background: #090807;
}
.addressables-preview .feature-case-study {
  max-width: 1180px;
  margin: 0 auto;
}

.feature-case-study {
  padding: 18px;
  border: 1px solid rgba(243, 196, 61, 0.24);
  border-radius: 10px;
  background: rgba(243, 196, 61, 0.055);
}

.feature-case-study > span {
  color: var(--gold);
  font: 500 11px/15px "Fira Mono", monospace;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.feature-case-study h4 {
  margin-top: 10px;
  color: #f2f2f2;
  font: 500 17px/23px "Space Grotesk", sans-serif;
}

.feature-case-study p {
  margin-top: 8px;
  color: var(--body-subtle);
  font-size: 14px;
  line-height: 21px;
}

.feature-case-study a {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.feature-case-study a:hover {
  color: var(--gold);
}
