:root {
  --bg: #f4f1ea;
  --bg-strong: #efebe2;
  --paper: rgba(255, 255, 255, 0.8);
  --paper-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(19, 24, 33, 0.08);
  --line-strong: rgba(19, 24, 33, 0.14);
  --text: #17191d;
  --muted: #636b78;
  --accent: #3f5efb;
  --accent-soft: rgba(63, 94, 251, 0.09);
  --accent-glow: rgba(63, 94, 251, 0.18);
  --shadow-soft: 0 28px 72px rgba(24, 30, 39, 0.08);
  --shadow-card: 0 16px 42px rgba(24, 30, 39, 0.07);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width: 1240px;
  --hero-x: 0px;
  --hero-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(63, 94, 251, 0.08), transparent 24%),
    radial-gradient(circle at 88% 26%, rgba(106, 135, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfaf6 0%, #f4f1ea 45%, #eeeadf 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 46px,
      rgba(63, 94, 251, 0.035) 46px,
      rgba(63, 94, 251, 0.035) 47px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 72%);
  pointer-events: none;
  z-index: -4;
}

img {
  display: block;
  max-width: 100%;
}

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

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  margin-top: -170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(63, 94, 251, 0.12), transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 260ms ease;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 40;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #181a20 0%, #3f5efb 65%, #86a1ff 100%);
  box-shadow: 0 3px 16px rgba(63, 94, 251, 0.24);
}

.page-shell {
  position: relative;
  overflow: clip;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: -3;
  opacity: 0.22;
}

.ambient-a {
  width: 26rem;
  height: 26rem;
  top: -8rem;
  left: -6rem;
  background: rgba(100, 126, 255, 0.24);
  animation: drift 16s ease-in-out infinite;
}

.ambient-b {
  width: 24rem;
  height: 24rem;
  top: 30rem;
  right: -6rem;
  background: rgba(182, 196, 255, 0.24);
  animation: drift 18s ease-in-out infinite reverse;
}

.ambient-c {
  width: 20rem;
  height: 20rem;
  bottom: 14rem;
  left: 10%;
  background: rgba(255, 255, 255, 0.38);
  animation: drift 20s ease-in-out infinite;
}

.site-header,
.hero,
.section,
.marquee-section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 10px;
  position: sticky;
  top: 0;
  z-index: 24;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 10px -18px auto;
  height: 72px;
  background: rgba(250, 249, 245, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(24, 30, 39, 0.05);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(24, 30, 39, 0.12);
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.04rem;
  letter-spacing: -0.03em;
}

.brand-copy span {
  font-size: 0.88rem;
  color: var(--muted);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(24, 30, 39, 0.08);
  cursor: pointer;
  position: relative;
  z-index: 30;
}

.mobile-nav-toggle span {
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #17191d;
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}

.mobile-nav-toggle span:nth-child(1) {
  top: 19px;
}

.mobile-nav-toggle span:nth-child(2) {
  top: 26px;
}

.mobile-nav-toggle span:nth-child(3) {
  top: 33px;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 24, 0.22);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 20;
}

.site-nav a {
  position: relative;
  padding: 12px 16px;
  color: var(--muted);
  border-radius: 999px;
  transition: transform 220ms ease, color 220ms ease, background-color 220ms ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.48);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(63, 94, 251, 0.32);
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 70px 0 36px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(24, 30, 39, 0.05);
  color: #455065;
  font-size: 0.86rem;
}

.hero h1,
.section-heading h2,
.intro-panel h2,
.install-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.headline-line {
  display: block;
}

.headline-line-accent {
  color: #1d212a;
  position: relative;
}

.headline-line-accent::after {
  content: "";
  display: block;
  width: min(260px, 48%);
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(63, 94, 251, 0.2), rgba(63, 94, 251, 0.02));
  animation: underlineBreath 4.5s ease-in-out infinite;
}

.hero-lead,
.section-heading p,
.intro-copy,
.story-step p,
.system-card p,
.mosaic-copy p,
.install-copy p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.74;
}

.hero-actions,
.install-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
  transform: translate3d(var(--shift-x), var(--shift-y), 0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28), transparent 80%);
  transform: translateX(-140%);
  transition: transform 620ms ease;
}

.button:hover::before {
  transform: translateX(140%);
}

.button:hover {
  transform: translate3d(var(--shift-x), calc(-4px + var(--shift-y)), 0);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #17191d, #232736);
  box-shadow: 0 18px 42px rgba(17, 22, 32, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(19, 24, 33, 0.08);
  box-shadow: 0 12px 28px rgba(24, 30, 39, 0.06);
}

.button-store {
  justify-content: flex-start;
  padding: 10px 18px 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(19, 24, 33, 0.08);
  box-shadow: 0 18px 34px rgba(24, 30, 39, 0.08);
}

.button-store img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.button-store span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.button-store strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.button-store small {
  font-size: 0.8rem;
  color: var(--muted);
}

.button-store-large {
  min-height: 72px;
  padding-inline: 16px 24px;
}

.button-store-large img {
  width: 44px;
  height: 44px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.locale-band {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.locale-band-label {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.locale-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.locale-flags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 24, 33, 0.08);
  box-shadow: 0 10px 24px rgba(24, 30, 39, 0.05);
  color: #353d4b;
  font-size: 0.95rem;
}

.hero-fact {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(24, 30, 39, 0.05);
  overflow: hidden;
}

.hero-fact::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(63, 94, 251, 0), rgba(63, 94, 251, 0.45), rgba(63, 94, 251, 0));
}

.hero-fact strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-fact span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-stage {
  position: relative;
  min-height: 760px;
  isolation: isolate;
}

.hero-stage-grid {
  position: absolute;
  inset: 38px 0 38px;
  border-radius: 32px;
  background:
    linear-gradient(rgba(63, 94, 251, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 94, 251, 0.03) 1px, transparent 1px),
    rgba(255, 255, 255, 0.22);
  background-size: 44px 44px, 44px 44px, auto;
  border: 1px solid rgba(255, 255, 255, 0.52);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.38));
}

.hero-chip,
.hero-card,
.story-screen,
.story-stage-caption,
.system-card,
.mosaic-card,
.story-step,
.intro-panel,
.install-panel {
  box-shadow: var(--shadow-card);
}

.hero-chip {
  position: absolute;
  z-index: 6;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  color: #4a5467;
  animation: bob 6s ease-in-out infinite;
  box-shadow: 0 14px 28px rgba(24, 30, 39, 0.06);
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 360ms ease;
  transform:
    translate3d(calc(var(--hero-x) * var(--depth-x, 0.1)), calc(var(--hero-y) * var(--depth-y, 0.1)), 0)
    rotate(var(--base-rotate, 0deg));
}

.hero-card::after,
.story-screen::after,
.system-card::after,
.mosaic-card::after,
.story-step::after,
.intro-panel::after,
.install-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.38), transparent 80%);
  transform: translateX(-140%);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-card:hover::after,
.story-screen:hover::after,
.system-card:hover::after,
.mosaic-card:hover::after,
.story-step:hover::after,
.intro-panel:hover::after,
.install-panel:hover::after {
  transform: translateX(140%);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #f6f5f0;
}

.hero-card-library {
  --depth-x: 0.06;
  --depth-y: 0.06;
  --base-rotate: -3deg;
  width: 82%;
  aspect-ratio: 1.6 / 1;
  left: 34px;
  top: 74px;
  z-index: 4;
  box-shadow: 0 26px 70px rgba(24, 30, 39, 0.12);
}

.marquee-section {
  padding: 18px 0 0;
  overflow: clip;
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 14px 0;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: #4f5870;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-track span::after {
  content: "•";
  color: rgba(63, 94, 251, 0.48);
}

.section {
  padding: 100px 0 0;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.intro-panel h2,
.install-copy h2 {
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
}

.intro-panel,
.install-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
}

.intro-kicker,
.story-stage-caption span,
.system-tag,
.mosaic-copy span,
.story-index {
  display: inline-flex;
  color: #5b6782;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  margin-top: 34px;
}

.story-copy {
  display: grid;
  gap: 18px;
}

.story-step {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translate3d(var(--shift-x), var(--shift-y), 0);
  transition:
    transform 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease,
    background-color 300ms ease;
}

.story-step h3,
.system-card h3,
.mosaic-copy h3 {
  margin: 12px 0 0;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.story-step.is-active {
  border-color: rgba(63, 94, 251, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 52px rgba(24, 30, 39, 0.08);
}

.story-stage-wrap {
  position: sticky;
  top: 96px;
}

.story-stage {
  position: relative;
  min-height: 640px;
  border-radius: 40px;
  padding: 30px;
  background:
    linear-gradient(rgba(63, 94, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 94, 251, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.34);
  background-size: 42px 42px, 42px 42px, auto;
  border: 1px solid rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.story-screen {
  position: absolute;
  inset: 30px;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(30px) scale(0.96) rotate(-2deg);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #f5f5f2;
}

.story-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  z-index: 2;
}

.story-stage-caption {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 3;
  width: 290px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.story-stage-caption p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.system-card {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translate3d(var(--shift-x), var(--shift-y), 0);
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.system-card:hover,
.mosaic-card:hover,
.story-step:hover {
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translate3d(var(--shift-x), calc(-7px + var(--shift-y)), 0);
  border-color: rgba(63, 94, 251, 0.16);
  box-shadow: 0 26px 52px rgba(24, 30, 39, 0.09);
}

.system-card-large {
  grid-column: span 8;
  min-height: 260px;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.mosaic-card {
  position: relative;
  overflow: hidden;
  grid-column: span 6;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translate3d(var(--shift-x), var(--shift-y), 0);
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.mosaic-card img {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: contain;
  object-position: center center;
  background: #f6f5f0;
}

.mosaic-card-wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
}

.mosaic-card-wide img {
  height: 100%;
  aspect-ratio: auto;
}

.mosaic-copy {
  padding: 24px;
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 90px;
}

.install-copy {
  grid-column: 1 / -1;
}

.install-copy h2 {
  max-width: none;
}

.install-copy p {
  max-width: 760px;
}

.install-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 720ms ease var(--delay, 0ms),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(26px, -18px, 0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes underlineBreath {
  0%,
  100% {
    opacity: 0.44;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 0.96;
    transform: scaleX(1.04);
  }
}

@media (max-width: 1160px) {
  .hero,
  .story-layout,
  .install-panel,
  .mosaic-card-wide {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 780px;
  }

  .story-stage-wrap {
    position: relative;
    top: 0;
  }

  .story-stage {
    min-height: 640px;
  }

  .system-card,
  .system-card-large,
  .mosaic-card,
  .mosaic-card-wide {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .section,
  .marquee-section {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    flex-direction: row;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
  }

  .site-header::before {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 18px;
    background: rgba(248, 246, 240, 0.96);
    border: 1px solid rgba(19, 24, 33, 0.08);
    box-shadow: 0 24px 54px rgba(24, 30, 39, 0.12);
    backdrop-filter: blur(18px);
    display: grid;
    gap: 6px;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 25;
  }

  .site-nav a {
    padding: 14px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
  }

  .site-nav a::after {
    display: none;
  }

  body.mobile-menu-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-menu-open .site-nav {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  body.mobile-menu-open .mobile-nav-toggle span:nth-child(1) {
    top: 26px;
    transform: rotate(45deg);
  }

  body.mobile-menu-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-nav-toggle span:nth-child(3) {
    top: 26px;
    transform: rotate(-45deg);
  }

  .hero {
    padding-top: 32px;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .hero-lead,
  .section-heading p,
  .intro-copy,
  .story-step p,
  .system-card p,
  .mosaic-copy p,
  .install-copy p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .locale-band {
    align-items: flex-start;
  }

  .hero-stage {
    min-height: 500px;
    margin-top: 8px;
  }

  .hero-card-library {
    width: 80%;
    left: 18px;
    top: 54px;
  }

  .story-stage {
    min-height: 430px;
    padding: 18px;
  }

  .story-screen {
    inset: 18px;
  }

  .story-stage-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .install-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .install-actions .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .marquee-section {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .hero-stage {
    min-height: 300px;
    border-radius: 18px;
  }

  .hero-card-library {
    width: 84%;
    left: 8px;
    top: 20px;
    border-radius: 14px;
  }

  .hero-chip {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
  }

  .marquee-track {
    gap: 18px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .marquee-track span {
    font-size: 0.8rem;
    gap: 18px;
  }

  .locale-flags span {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .section {
    padding-top: 74px;
  }

  .section::before {
    font-size: clamp(3rem, 18vw, 4.6rem);
    top: 12px;
  }

  .section-heading h2,
  .intro-panel h2,
  .install-copy h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 0.96;
  }

  .story-layout,
  .gallery-mosaic,
  .system-grid {
    gap: 14px;
  }

  .story-copy {
    gap: 12px;
  }

  .story-step h3,
  .system-card h3,
  .mosaic-copy h3 {
    font-size: 1.2rem;
  }

  .story-stage {
    min-height: 280px;
    padding: 10px;
    border-radius: 16px;
  }

  .story-screen {
    inset: 10px;
    border-radius: 12px;
  }

  .story-stage-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px 12px 14px;
    border-radius: 10px;
  }

  .story-stage-caption p {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .mosaic-card {
    border-radius: 16px;
  }

  .mosaic-card img {
    aspect-ratio: 1.72 / 1;
  }

  .mosaic-card-wide {
    grid-template-columns: 1fr;
  }

  .mosaic-copy {
    padding: 16px;
  }

  .intro-panel,
  .install-panel,
  .story-step,
  .system-card,
  .mosaic-copy {
    padding: 22px;
  }

  .install-panel {
    margin-bottom: 64px;
    gap: 18px;
  }

  .button-store span small {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 12px;
  }

  .site-header::before {
    display: none;
  }

  .brand-copy span {
    font-size: 0.8rem;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .mobile-nav-toggle {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .site-nav {
    width: min(260px, calc(100vw - 18px));
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .headline-line-accent::after {
    width: min(170px, 54%);
    height: 8px;
    margin-top: 14px;
  }

  .hero-fact {
    padding: 14px;
  }

  .hero-fact strong {
    font-size: 1.65rem;
  }

  .button {
    min-height: 52px;
    padding-inline: 16px;
  }

  .button-store {
    padding: 10px 14px 10px 10px;
  }

  .button-store img {
    width: 34px;
    height: 34px;
  }

  .hero-stage {
    min-height: 292px;
  }

  .hero-card-library {
    width: 86%;
    left: 0;
    top: 12px;
  }

  .story-stage-caption {
    display: none;
  }

  .intro-panel,
  .install-panel,
  .story-step,
  .system-card,
  .mosaic-copy {
    padding: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scroll-progress,
  .cursor-glow {
    display: none;
  }
}
