@font-face {
  font-family: "Play";
  font-weight: 400;
  src: url("assets/fonts/play-400.woff2") format("woff2");
}
@font-face {
  font-family: "Play";
  font-weight: 700;
  src: url("assets/fonts/play-700.woff2") format("woff2");
}
@font-face {
  font-family: "Maven Pro";
  font-weight: 400 900;
  src: url("assets/fonts/maven-pro-latin.woff2") format("woff2");
}

/* Brand tokens, taken from mycrogrid-5/src/styles/global.css */
:root {
  --blue-deep: #061c31;
  --brand-blue: #015beb;
  --orange: #ff6800;
  --orange-soft: #f3924a;
  --white: #ffffff;
  --white-muted: rgba(255, 255, 255, 0.78);
  --white-faint: rgba(255, 255, 255, 0.5);
  --font-display: "Play", "Maven Pro", sans-serif;
  --font-body: "Maven Pro", sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--blue-deep);
  cursor: none;
}

/* Everything is laid out on a fixed 1920x1080 stage and scaled to fit, so the
   layout is identical whether the display's browser reports 1080p or 4K. */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  overflow: hidden;
  color: var(--white);
  font-family: var(--font-body);
}

.bg, .veil, .grid { position: absolute; inset: 0; }

.bg {
  background: url("assets/hero-poster.jpg") center / cover no-repeat;
}
.bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Fallback when the display can't decode two videos at once: slow drift on the still. */
.bg.is-still video { display: none; }
.bg.is-still { animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.08) translateX(-1.5%); }
}

.veil {
  background:
    linear-gradient(90deg, rgba(6, 28, 49, 0.6) 0%, rgba(6, 28, 49, 0.72) 34%, rgba(6, 28, 49, 0.9) 60%, rgba(6, 28, 49, 0.94) 100%);
}

/* Orange cell grid, the same motif as the site's hero */
.grid {
  background-image:
    linear-gradient(90deg, rgba(255, 104, 0, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 104, 0, 0.09) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
}

/* Vertical ad slot */
.ad {
  position: absolute;
  left: 120px;
  top: 72px;
  width: 506px;
}
.ad-frame {
  width: 506px;
  height: 900px;
  border: 1px solid rgba(255, 104, 0, 0.55);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 80px -10px rgba(255, 104, 0, 0.28), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.ad-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.ad-frame video.is-swapping { opacity: 0; }

.ad-progress {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.ad-progress span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.ad-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}
.ad-progress span.is-done i { width: 100%; }

/* Message panel */
.panel {
  position: absolute;
  left: 740px;
  right: 100px;
  top: 92px;
  bottom: 72px;
  display: flex;
  flex-direction: column;
}

.wordmark {
  height: 62px;
  width: auto;
  align-self: flex-start;
}

.message {
  flex: 1;
  min-height: 0;
  margin-top: 120px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.message.is-out {
  opacity: 0;
  transform: translateY(14px);
}

.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.headline {
  margin-top: 26px;
  max-width: 1000px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 70px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.headline sup,
.cta-title sup {
  font-size: 0.4em;
  vertical-align: 1.3em;
  line-height: 0;
}

.body {
  margin-top: 30px;
  max-width: 880px;
  font-size: 32px;
  line-height: 1.4;
  color: var(--white-muted);
}

.proof {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-bottom: 44px;
  font-family: var(--font-display);
  font-size: 22px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  color: var(--white-muted);
}
.proof li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 14px;
  vertical-align: 3px;
  background: var(--orange);
  border-radius: 1px;
}

.cta {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.qr {
  flex: none;
  width: 176px;
  height: 176px;
  padding: 14px;
  background: var(--white);
  border-radius: 6px;
}
.qr img { display: block; width: 100%; height: 100%; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.1;
}
.cta-sub {
  margin-top: 12px;
  font-size: 29px;
  color: var(--white-muted);
}
.phone {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.03em;
}
.fine {
  margin-top: 16px;
  font-size: 19px;
  color: var(--white-faint);
}

.debug {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  font: 16px/1.4 ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.75);
  color: #9f9;
  white-space: pre;
}
