:root {
  --ink: #0b0b14;
  --grad: linear-gradient(90deg, #4f46e5, #7c3aed 50%, #ec4899);
  --sky: linear-gradient(#0b0b14, #1d1846 55%, #3a2470);
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  background: var(--ink);
  color: #fff;
  font-family: Rubik, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body.locked {
  overflow: hidden;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.track {
  height: 600vh;
  position: relative;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--sky);
}
#c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ui {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  padding: max(16px, env(safe-area-inset-top)) 20px
    max(20px, env(safe-area-inset-bottom));
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #cfcaf5;
  padding-inline-end: 52px;
}
.brand {
  font-family: "Secular One", sans-serif;
  font-size: 16px;
  color: #fff;
}
.alt {
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.4s;
}
.alt b {
  font-weight: 700;
  color: #fff;
  display: inline-block;
  min-width: 3ch;
  text-align: center;
}

.intro {
  position: absolute;
  inset-inline: 0;
  top: 13%;
  text-align: center;
}
.intro h1 {
  font-family: "Secular One", sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 22vw, 140px);
  line-height: 1;
}
.hint {
  position: fixed;
  inset-inline: 0;
  bottom: max(28px, env(safe-area-inset-bottom));
  font-size: 17px;
  color: #e4e0ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.chev {
  width: 14px;
  height: 14px;
  border-inline-start: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  50% {
    translate: 0 6px;
  }
}

.count {
  position: absolute;
  inset-inline: 0;
  top: 9%;
  text-align: center;
  opacity: 0;
}
.count-k {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #cfcaf5;
}
.nums {
  position: relative;
  height: clamp(120px, 34vw, 200px);
}
.nums span {
  position: absolute;
  inset: 0;
  font-family: "Secular One", sans-serif;
  font-size: clamp(120px, 34vw, 200px);
  line-height: 1;
  opacity: 0;
  text-shadow:
    0 0 40px rgba(124, 58, 237, 0.8),
    0 0 90px rgba(236, 72, 153, 0.45);
}

.log {
  list-style: none;
  padding: 0;
  position: absolute;
  inset-inline: 20px;
  bottom: max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.log li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  padding-block: 10px; padding-inline: 16px 18px;
  border-radius: 999px;
  background: rgba(16, 14, 40, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.5s,
    transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.log li.on {
  opacity: 1;
  transform: none;
}
.chk {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
  position: relative;
}
.chk::after {
  content: "";
  position: absolute;
  inset-inline-end: 8px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.final {
  position: absolute;
  inset-inline: 20px;
  bottom: max(36px, env(safe-area-inset-bottom));
  text-align: center;
  opacity: 0;
}
.final h2 {
  font-family: "Secular One", sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 10vw, 60px);
  text-shadow: 0 2px 24px rgba(11, 11, 20, 0.85);
  line-height: 1.1;
  margin-bottom: 22px;
  text-wrap: balance;
}
.final.on {
  pointer-events: auto;
}

.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font:
    700 18px Rubik,
    sans-serif;
  color: #fff;
  text-decoration: none;
  background: var(--grad);
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.7);
}
.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  font-weight: 500;
}
:is(.cta, .btn, .mute):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.mute {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  inset-inline-end: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(16, 14, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.mute .x {
  display: none;
}
.mute[aria-pressed="true"] .x {
  display: inline;
}
.mute[aria-pressed="true"] .w {
  display: none;
}

.start {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(
    120% 80% at 50% 100%,
    rgba(58, 36, 112, 0.85),
    rgba(11, 11, 20, 0.92)
  );
  transition: opacity 0.5s;
}
.start.gone {
  opacity: 0;
  pointer-events: none;
}
.start-card {
  text-align: center;
  display: grid;
  gap: 14px;
  max-width: 340px;
}
.start-card h2 {
  font-family: "Secular One", sans-serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1;
}
.start-card p {
  color: #d9d5f7;
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 10px;
}

@media (min-width: 900px) {
  .log {
    inset-inline-start: 48px;
    bottom: 56px;
  }
  .log li {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chev {
    animation: none;
  }
  .log li {
    transition: opacity 0.3s;
    transform: none;
  }
}
.mute[hidden] { display: none; }
.flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 70%), #fff 0, rgba(255, 238, 246, 0.9) 14%, rgba(255, 170, 215, 0.4) 38%, rgba(124, 58, 237, 0) 75%);
}

/* ?name / ?shot: a client's reel. Our CTA makes way for the credit line. */
.credit {
  display: none;
  font-size: 15px;
  color: #d9d5f7;
  text-shadow: 0 1px 12px rgba(11, 11, 20, 0.9);
}
.client .credit {
  display: block;
}
.client .cta {
  display: none;
}
.client .final h2 {
  margin-bottom: 10px;
}

/* ?reel: 9:16 preset. A short page (the launch fits ~11 s of recorder scroll) and copy kept clear
   of Instagram's UI: the top bar, the action rail on the right, the caption in the bottom 20%. */
.reel .track {
  height: 300vh;
}
.reel .hud {
  display: none;
}
.reel .count {
  top: 13%;
}
.reel .log {
  top: 13%;
  bottom: auto;
}
/* end line at the top, on dark space: the phone (?shot) takes the middle, and in a reel the
   bottom is IG's caption zone and the planet's bright rim */
.reel .final,
.has-shot .final {
  top: 11.5%;
  bottom: auto;
}
.reel .final h2,
.has-shot .final h2 {
  font-size: clamp(28px, 8vw, 44px);
  margin-bottom: 10px;
}

/* 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;
}
/* reel recordings and client launch videos show only our credit */
.reel .a11y-link,
.client .a11y-link {
  display: none;
}
