:root {
  --ink: #0b0b14;
  --grad: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  --text: #f5f3ff;
  --cyan: #06b6d4;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Rubik, system-ui, sans-serif;
}
h1,
h2 {
  font-family: "Secular One", Rubik, sans-serif;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.35)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.track {
  height: 500vh;
  position: relative;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#scene {
  display: block;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(11, 11, 20, 0.55),
      transparent 18%,
      transparent 70%,
      rgba(11, 11, 20, 0.7)
    ),
    radial-gradient(
      120% 80% at 50% 55%,
      transparent 55%,
      rgba(11, 11, 20, 0.45)
    );
}

.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  pointer-events: none;
}
.brand {
  font-family: "Secular One", sans-serif;
  font-size: 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.icon-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(11, 11, 20, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.icon-btn .ico-on,
.icon-btn[aria-pressed="true"] .ico-off {
  display: none;
}
.icon-btn[aria-pressed="true"] .ico-on {
  display: block;
}

/* HUD */
.hud {
  position: absolute;
  inset-inline: 0;
  text-align: center;
  padding-inline: 22px;
  transition: opacity 0.4s;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.intro {
  top: 16%;
}
.intro h1 {
  font-size: clamp(48px, 14vw, 96px);
}
.hint {
  font-size: 17px;
  margin: 14px auto 0;
  max-width: 320px;
  text-wrap: balance;
  line-height: 1.45;
}
.chev {
  display: block;
  width: 18px;
  height: 18px;
  margin: 22px auto 0;
  border-right: 2px solid #fff; /* physical: an arrow, not text flow */
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  50% {
    translate: 0 6px;
  }
}
.counter {
  top: calc(max(10px, env(safe-area-inset-top)) + 64px);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  opacity: 0;
}
.counter b {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px var(--cyan);
}
.end {
  bottom: max(9%, calc(env(safe-area-inset-bottom) + 40px));
  opacity: 0;
  pointer-events: none;
}
.end.on {
  pointer-events: auto;
}
.end h2 {
  font-size: clamp(34px, 9.5vw, 64px);
  max-width: 13ch;
  margin-inline: auto;
}
.cta {
  display: inline-block;
  margin-top: 22px;
  padding: 15px 28px;
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  background: var(--grad);
  color: #fff;
  font:
    700 17px Rubik,
    sans-serif;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(124, 58, 237, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* shop labels + phone "site" cards. Physical left/right on purpose: they follow the
   video's sides, which do not mirror in RTL. */
.shops {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.shop {
  position: absolute;
  top: var(--y);
  opacity: 0;
  transition:
    opacity 0.35s ease,
    scale 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
  scale: 0.6;
}
.shop.l {
  left: 6%;
  transform-origin: left bottom;
}
.shop.r {
  right: 6%;
  transform-origin: right bottom;
}
.shop.on {
  opacity: 1;
  scale: 1;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 11, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.phone {
  width: 96px;
  height: 168px;
  margin-bottom: 8px;
  border-radius: 20px;
  padding: 6px;
  background: var(--grad);
  box-shadow:
    0 16px 40px rgba(124, 58, 237, 0.5),
    0 0 24px rgba(6, 182, 212, 0.25);
}
.phone .scr {
  height: 100%;
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone .hero {
  height: 44%;
  background: linear-gradient(160deg, #312e81, #7c3aed 55%, #ec4899);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  font:
    400 17px "Secular One",
    sans-serif;
}
.phone .ln {
  height: 6px;
  border-radius: 3px;
  background: #e5e1f5;
  margin: 8px 8px 0;
}
.phone .ln.s {
  width: 55%;
}
.phone .btn {
  margin: auto 8px 9px;
  padding: 5px 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

/* loader */
.loader {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  transition: opacity 0.6s;
  text-shadow: 0 1px 6px #000;
}
.loader .bar {
  width: 120px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.loader i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
}
.loader.done {
  opacity: 0;
}

/* start overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(
    90% 60% at 50% 40%,
    rgba(79, 70, 229, 0.35),
    rgba(11, 11, 20, 0.92) 70%
  );
  backdrop-filter: blur(4px);
}
.overlay[hidden] {
  display: none;
}
.ov-card {
  text-align: center;
  max-width: 320px;
}
.ov-brand {
  font-family: "Secular One", sans-serif;
  margin: 0 0 8px;
  opacity: 0.8;
}
.ov-card h2 {
  font-size: 54px;
}
.ov-sub {
  margin: 12px 0 6px;
  line-height: 1.5;
}
.ghost {
  display: block;
  margin: 14px auto 0;
  min-height: 44px;
  padding: 10px 18px;
  background: none;
  border: 0;
  color: var(--text);
  font:
    500 15px Rubik,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* reduced motion: stacked stills */
.still {
  padding: 96px 16px 64px;
  text-align: center;
}
.still h1 {
  font-size: 52px;
  margin-bottom: 24px;
}
.still figure {
  margin: 0 auto 28px;
  max-width: 480px;
}
.still img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}
.still figcaption {
  margin-top: 10px;
  font-size: 17px;
}
.end-static h2 {
  font-size: 40px;
}

[hidden] {
  display: none !important;
}

/* film grain overlay (kept out of the JPEGs: baked grain inflated the frame payload ~60%) */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: overlay;
  background-size: 192px 192px;
}

/* accessibility statement link under the end CTA (published at takeoff.first-site.co.il) */
.a11y-link {
  display: block;
  margin-block-start: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}
