:root {
  --ink: #0b0b14;
  --grad: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  --text: #f5f3ff;
}
* {
  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;
}
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.track {
  height: 680vh;
  position: relative;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#scene {
  display: block;
  width: 100%;
  height: 100%;
}

.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;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.icon-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: rgba(11, 11, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.icon-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.icon-btn[aria-pressed="true"] .ico-on,
.icon-btn[aria-pressed="false"] .ico-off {
  display: none;
}

.hud {
  position: absolute;
  inset-inline: 0;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
}
.intro {
  top: 15%;
}
.intro h1 {
  font-size: clamp(48px, 14vw, 104px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.intro .grad {
  filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.55));
}
.hint {
  margin: 14px auto 0;
  max-width: 22em;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(245, 243, 255, 0.85);
}
.chev {
  display: block;
  width: 14px;
  height: 14px;
  margin: 22px auto 0;
  border-inline-end: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  opacity: 0.7;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(6px) rotate(-45deg);
  }
}

.counter {
  bottom: max(24px, env(safe-area-inset-bottom));
  inset-inline: 0;
  margin-inline: auto;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(11, 11, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
}

.end {
  bottom: 0;
  padding: 120px 24px max(48px, calc(env(safe-area-inset-bottom) + 32px));
  background: linear-gradient(
    to top,
    rgba(11, 11, 20, 0.92) 35%,
    rgba(11, 11, 20, 0)
  );
  opacity: 0;
  visibility: hidden;
}
.end h2 {
  font-size: clamp(34px, 9.5vw, 64px);
  max-width: 12em;
  margin: 0 auto 24px;
}
.end.on {
  pointer-events: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font:
    700 18px Rubik,
    sans-serif;
  color: #fff;
  text-decoration: none;
  background: var(--grad);
  box-shadow:
    0 0 28px rgba(6, 182, 212, 0.35),
    0 8px 24px rgba(124, 58, 237, 0.35);
}
.ghost {
  min-height: 48px;
  padding: 0 20px;
  margin-top: 10px;
  background: none;
  border: 0;
  color: rgba(245, 243, 255, 0.8);
  font:
    500 16px Rubik,
    sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 11, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.overlay[hidden] {
  display: none;
}
.ov-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ov-brand {
  margin: 0 0 8px;
  font-family: "Secular One", sans-serif;
  opacity: 0.8;
}
.ov-card h2 {
  font-size: clamp(44px, 13vw, 80px);
  margin-bottom: 10px;
}
.ov-sub {
  margin: 0 0 28px;
  color: rgba(245, 243, 255, 0.8);
  font-size: 17px;
}

@media (prefers-reduced-motion: reduce) {
  .chev {
    animation: none;
  }
}

/* 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;
}
