
@font-face {
  font-family:'MavenPro';
  src:url('../fonts/MavenPro.ttf') format('truetype');
  font-weight:100 900;
  font-style:normal;
}

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

:root {
  --navy:   #12223E;
  --dark:   #0D1829;
  --card:   #18181B;
  --gold:   #F8C520;
  --steel:  #428BCA;
  --text:   #F8F8F8;
  --muted:  #777;
  --border: rgba(255,255,255,0.08);
}

html { scroll-snap-type: y mandatory; overflow-y: scroll; scroll-behavior: smooth; }
body { background: var(--navy); color: var(--text); font-family: 'Lato', sans-serif; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
  background: rgba(18,34,62,0.97);
  border-bottom: 0.5px solid var(--border);
}
/* Logo pinned to exact center, nudged up to optically align with text items */
.nav-logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  display: flex;
  align-items: center;
  height: 60px;
  pointer-events: all;
}
.nav-logo-link img { height: 32px; width: auto; display: block; }
/* Back link and counter: full nav height so they center naturally */
.nav-back {
  display: flex; align-items: center; gap: 6px;
  height: 60px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--gold); }
.nav-counter {
  display: flex; align-items: center;
  height: 60px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ── CARDS ── */
.cards-wrap { padding-top: 60px; }

.card {
  height: 100vh;
  min-height: 600px;
  scroll-snap-align: start;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Left text panel */
.card-text {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 64px 48px;
  position: relative;
  z-index: 2;
}
.card-text::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,24,41,0.95) 70%, transparent 100%);
  z-index: -1;
}

.client-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.client-bar {
  width: 28px; height: 2px;
  border-radius: 1px;
}
.client-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-title {
  font-family: 'MavenPro', 'Lato', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: white;
}

.card-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 340px;
  margin-bottom: 28px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  font-weight: 600;
  border: 0.5px solid;
}

/* Right visual panel */
.card-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.card-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card-logo-badge {
  position: absolute;
  top: 32px;
  right: 32px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.card-num {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-size: 96px;
  font-weight: 900;
  font-family: 'MavenPro', 'Lato', sans-serif;
  opacity: 0.06;
  color: white;
  line-height: 1;
  user-select: none;
}

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  background: rgba(13,24,41,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 0.5px solid rgba(255,255,255,0.1);
  opacity: 0;              /* hidden by default — JS shows it */
  pointer-events: none;
  transition: opacity 0.25s ease;
}
/* On pages 1–4 reposition to seam via JS inline style */
.progress-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}
.progress-dot.active {
  background: var(--gold);
  transform: scale(1.35);
  box-shadow: 0 0 6px rgba(248,197,32,0.6);
}
.progress-dot:hover { background: rgba(255,255,255,0.55); }

/* ── INTRO SECTION ── */
.intro-section {
  height: 100vh;
  min-height: 600px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 40px;
  position: relative;
  overflow: hidden;
}
.intro-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(66,139,202,0.12) 0%, transparent 70%);
}
.intro-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 700;
}
.intro-title {
  font-family: 'MavenPro', 'Lato', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
}
.intro-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-hint svg { opacity: 0.4; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Entry animations */
.card { opacity: 1; }
.intro-section { opacity: 1; }

/* Elements start hidden */
.client-eyebrow,
.card-title,
.card-desc,
.card-tags,
.card-text .cta-btn,
.card-visual {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.card-visual {
  transform: translateX(40px);
}

/* On mobile: visual slides up — kept for desktop only */
@media (max-width: 768px) {
  /* Kill ALL transforms on mobile card elements — opacity fade only, no translate bleed */
  .card-visual,
  .client-eyebrow,
  .card-title,
  .card-desc,
  .card-tags,
  .card-text .cta-btn {
    transform: none !important;
    transition: opacity 0.5s ease !important;
  }
}

/* Stagger delays */
.card.in-view .client-eyebrow { opacity:1; transform:none; transition-delay: 0ms; }
.card.in-view .card-title      { opacity:1; transform:none; transition-delay: 100ms; }
.card.in-view .card-desc       { opacity:1; transform:none; transition-delay: 200ms; }
.card.in-view .card-tags       { opacity:1; transform:none; transition-delay: 300ms; }
.card.in-view .card-text .cta-btn { opacity:1; transform:none; transition-delay: 400ms; }
.card.in-view .card-visual     { opacity:1; transform:none; transition-delay: 150ms; }

/* Intro section elements */
.intro-eyebrow,
.intro-title,
.intro-sub,
.scroll-hint {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.intro-section.in-view .intro-eyebrow { opacity:1; transform:none; transition-delay: 0ms; }
.intro-section.in-view .intro-title   { opacity:1; transform:none; transition-delay: 120ms; }
.intro-section.in-view .intro-sub     { opacity:1; transform:none; transition-delay: 240ms; }
.intro-section.in-view .scroll-hint   { opacity:1; transform:none; transition-delay: 380ms; }

/* Footer */
.work-footer > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.work-footer.in-view > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
.work-footer.in-view > *:nth-child(2) { opacity:1; transform:none; transition-delay: 120ms; }
.work-footer.in-view > *:nth-child(3) { opacity:1; transform:none; transition-delay: 240ms; }
.work-footer.in-view > *:nth-child(4) { opacity:1; transform:none; transition-delay: 360ms; }
.work-footer.in-view > *:nth-child(5) { opacity:1; transform:none; transition-delay: 480ms; }

/* Card number count-up pulse */
.card-num {
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}
.card.in-view .card-num { opacity: 0.06; }

/* Client bar width animation */
.client-bar {
  width: 0 !important;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1) 0ms;
}
.card.in-view .client-bar { width: 28px !important; }

/* ── FOOTER ── */
.work-footer {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  border-top: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.work-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(248,197,32,0.06) 0%, transparent 70%);
}
.footer-cta-title {
  font-family: 'MavenPro', 'Lato', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}
.footer-cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  max-width: 400px;
  line-height: 1.7;
}
.cta-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  .nav {
    padding: 0 16px;
    background: var(--navy) !important;
    z-index: 200;
  }
  .nav-logo-link img {
    height: 18px !important;
    width: auto !important;
  }
  .nav-back {
    font-size: 0;        /* hide "Home" text */
    gap: 4px;
    white-space: nowrap;
  }
  .nav-back svg { width: 16px; height: 16px; }  /* keep arrow icon */
  .nav-counter {
    display: none !important;   /* hide "OUR WORK" label */
  }
  html { scroll-snap-type: y mandatory; overflow-y: scroll; }
  .cards-wrap { display: block; height: auto; padding-top: 60px; }
  .intro-section, .work-footer { min-height: 100vh; }

  /* Card: full viewport, flex column so visual fills remainder */
  .card {
    height: 100vh !important;
    min-height: 500px;
    flex-direction: column !important;
    display: flex !important;
    overflow: visible !important;
    scroll-snap-align: start;
  }

  /* Text panel: sticky, solid, tall enough for pager */
  .card-text {
    position: sticky !important;
    top: 60px !important;
    z-index: 150 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 180px !important;
    padding: 16px 56px 16px 16px !important;
    background: var(--navy) !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  .card-text::before { display: none !important; }

  /* Text sizing — compact for mobile */
  .client-eyebrow { margin-bottom: 10px; }
  .card-title { font-size: clamp(16px, 3.5vw, 22px) !important; line-height: 1.2; margin-bottom: 10px; }
  .card-desc { font-size: 12px !important; line-height: 1.6; margin-bottom: 12px !important; max-width: none !important; display: block !important; }
  .card-tags { gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
  .tag { font-size: 10px; padding: 3px 10px; }
  .card-text .cta-btn { display: none !important; }

  /* Visual: fills remaining height */
  .card-visual {
    position: relative !important;
    flex: 1 1 0 !important;
    height: 0 !important;
    min-height: 200px !important;
    max-height: none !important;
    overflow: hidden !important;
    transform: none !important;
    z-index: 1;
  }
  /* Fix bottom-right logo overlays — keep inside visual bounds */
  .nfl-logos, .client-logo-overlay, [class*="-logo-badge"] {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 40% !important;
  }
  .nfl-logos img, .nfl-logo-img {
    height: 20px !important;
    width: auto !important;
  }

  /* Pager: fixed right edge, below nav, never moves */
  .progress-bar {
    display: flex !important;
    position: fixed !important;
    right: 12px !important;
    left: auto !important;
    top: 80px !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 7px !important;
    background: rgba(13,24,41,0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px !important;
    border: 0.5px solid rgba(255,255,255,0.12) !important;
    z-index: 190 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }
  .progress-bar.mob-on {
    opacity: 1 !important;
    pointer-events: all !important;
  }
  .progress-dot { width: 7px !important; height: 7px !important; }
  .mobile-pager { display: none !important; }
}

/* NFL card pan — exact pixel waypoints on 3840x2160 source */
.nfl-bg-pan {
  position: absolute;
  inset: 0;
  background-image: url('../images/ow-nfl-bg.jpg');
  background-repeat: no-repeat;
  /* Natural image size so pixels map 1:1 */
  background-size: 3840px 2160px;
  /* Start at centre 2100,1600 → panel 700x800 → pos -1750px -1200px */
  background-position: -1750px -900px;
  animation: nflBgPan 96s linear infinite;
  animation-play-state: paused;
  will-change: background-position;
}
@keyframes nflBgPan {
  /* A: centre 2100,1300 */
  0%   { background-position: -1750px -900px; }
  /* B: centre 1100,700 */
  25%  { background-position: -750px  -300px; }
  /* C: centre 1600,200 */
  50%  { background-position: -1250px  0px; }
  /* D: centre 2500,500 */
  75%  { background-position: -2150px -100px; }
  /* Back to A */
  100% { background-position: -1750px -900px; }
}
.nfl-pan-overlay {
  position: absolute;
  inset: 0;
  /* Darken left edge (behind text) and right edge slightly */
  background:
    linear-gradient(to right,
      rgba(2,8,30,0.65) 0%,
      rgba(2,8,30,0.12) 35%,
      rgba(2,8,30,0.0) 55%,
      rgba(0,20,60,0.15) 80%,
      rgba(0,20,80,0.45) 100%
    );
  pointer-events: none;
}

/* Right-side visual effects layer */
.nfl-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Animated glow orb — top right */
.nfl-orb-1 {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,80,255,0.28) 0%, rgba(0,50,200,0.10) 40%, transparent 70%);
  animation: orbPulse1 6s ease-in-out infinite;
  animation-play-state: paused;
}
@keyframes orbPulse1 {
  0%,100% { transform: scale(1) translate(0,0); opacity: 0.8; }
  50%     { transform: scale(1.15) translate(-10px, 10px); opacity: 1; }
}

/* Animated glow orb — bottom right */
.nfl-orb-2 {
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,60,220,0.22) 0%, rgba(0,40,180,0.08) 40%, transparent 70%);
  animation: orbPulse2 8s ease-in-out infinite;
  animation-delay: -3s;
  animation-play-state: paused;
}
@keyframes orbPulse2 {
  0%,100% { transform: scale(1) translate(0,0); opacity: 0.6; }
  50%     { transform: scale(1.2) translate(-8px,-8px); opacity: 1; }
}

  100% { transform: translateY(100%); }
}

/* Right edge grid lines */
.nfl-grid {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 40%;
  background-image:
    linear-gradient(rgba(0,70,240,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,70,240,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.nfl-logos {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  padding: 8px 12px;
  backdrop-filter: blur(6px);
  border: 0.5px solid rgba(255,255,255,0.1);
}
.nfl-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}



/* Coke card background pan */
.coke-bg-pan {
  position: absolute;
  inset: 0;
  background-image: url('../images/ow-coke-bg.jpg');
  background-repeat: no-repeat;
  background-size: 3840px 2160px;
  background-position: -1600px -400px;
  animation: cokePan 96s linear infinite;
  animation-play-state: paused;
  will-change: background-position;
}
@keyframes cokePan {
  0%   { background-position: -1600px -400px; }
  33%  { background-position: -800px  -200px; }
  66%  { background-position: -1200px -600px; }
  100% { background-position: -1600px -400px; }
}
.coke-pan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(20,2,2,0.65) 0%,
    rgba(20,2,2,0.12) 35%,
    rgba(20,2,2,0.0) 55%,
    rgba(10,2,2,0.15) 80%,
    rgba(10,2,2,0.4) 100%
  );
  pointer-events: none;
}
.coke-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.coke-orb-1 {
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,28,36,0.22) 0%, rgba(180,10,10,0.08) 40%, transparent 70%);
  animation: orbPulse1 6s ease-in-out infinite;
  animation-play-state: paused;
}
.coke-orb-2 {
  position: absolute;
  bottom: -60px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,20,20,0.18) 0%, rgba(150,10,10,0.06) 40%, transparent 70%);
  animation: orbPulse2 8s ease-in-out infinite;
  animation-delay: -3s;
  animation-play-state: paused;
}
.coke-grid {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 40%;
  background-image:
    linear-gradient(rgba(230,28,36,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,28,36,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* DirecTV card image pan */
.dtv-bg-pan {
  position: absolute;
  inset: 0;
  background-image: url('../images/ow-dtv-bg.jpg');
  background-repeat: no-repeat;
  background-size: 1325px 1547px;
  background-position: center -20px;
  animation: dtvBgPan 80s linear infinite;
  animation-play-state: paused;
  will-change: background-position;
}
@keyframes dtvBgPan {
  0%   { background-position: center      -20px; }
  25%  { background-position: calc(50% + 40px) 30px; }
  50%  { background-position: calc(50% - 30px) -60px; }
  75%  { background-position: calc(50% + 20px) 10px; }
  100% { background-position: center      -20px; }
}
.dtv-pan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0,15,40,0.72) 0%,
    rgba(0,15,40,0.18) 38%,
    rgba(0,15,40,0.0) 58%,
    rgba(0,10,30,0.18) 80%,
    rgba(0,10,30,0.5) 100%
  );
  pointer-events: none;
}

/* ── DTV fx layer (matches NFL pattern, DTV blue #0073CF) ── */
.dtv-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dtv-orb-1 {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,115,207,0.28) 0%, rgba(0,80,160,0.10) 40%, transparent 70%);
  animation: orbPulse1 6s ease-in-out infinite;
  animation-play-state: paused;
}
.dtv-orb-2 {
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,100,190,0.22) 0%, rgba(0,70,150,0.08) 40%, transparent 70%);
  animation: orbPulse2 8s ease-in-out infinite;
  animation-delay: -3s;
  animation-play-state: paused;
}
.dtv-grid {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 40%;
  background-image:
    linear-gradient(rgba(0,115,207,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,115,207,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* ── Verizon overlay vignette ── */
.vz-pan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.08) 30%,
    rgba(0,0,0,0.0)  50%,
    rgba(0,0,0,0.08) 70%,
    rgba(0,0,0,0.30) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* ── Verizon fx layer (matches NFL pattern, Verizon red #CD040B) ── */
.vz-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.vz-orb-1 {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,0,20,0.32) 0%, rgba(100,0,20,0.12) 40%, transparent 70%);
  animation: orbPulse1 6s ease-in-out infinite;
  animation-play-state: paused;
}
.vz-orb-2 {
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,0,20,0.26) 0%, rgba(80,0,20,0.08) 40%, transparent 70%);
  animation: orbPulse2 8s ease-in-out infinite;
  animation-delay: -3s;
  animation-play-state: paused;
}
.vz-grid {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 40%;
  background-image:
    linear-gradient(rgba(240,0,20,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,0,20,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}



.vz-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ── VZ Cloud 3D flip carousel ── */
.vz-flip-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  overflow: hidden;
}
.vz-flip-track {
  position: relative;
  width: 275px;
  height: 520px;
  transform-style: preserve-3d;
}
.vz-flip-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.vz-flip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.vz-flip-card { opacity: 0; transform: rotateY(90deg); transition: none; }
.vz-flip-card.vz-active {
  opacity: 1;
  transform: rotateY(0deg);
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1), opacity 0.1s;
  z-index: 2;
}
.vz-flip-card.vz-exit {
  opacity: 0;
  transform: rotateY(-90deg);
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1), opacity 0.1s 0.6s;
  z-index: 1;
}


/* ═══════════════════════════════════════════════════════
   ASTROLAB CARD
═══════════════════════════════════════════════════════ */
.astrolab-visual {
  position: relative;
  background: #000;
  overflow: hidden;
}

/* Deep space starfield background */
.astrolab-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, #0a1628 0%, #000408 60%, #000 100%);
  z-index: 0;
}

/* Animated stars layer */
.astrolab-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 8%,  rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 30%, rgba(0,194,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 22%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 45%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 65%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 78%, rgba(0,194,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 33% 88%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 78%, rgba(255,255,255,0.4) 0%, transparent 100%);
  animation: alStarDrift 60s linear infinite;
}
@keyframes alStarDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* Card flip stage — full bleed */
.astrolab-flip-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
.astrolab-flip-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.astrolab-flip-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  transform: rotateY(90deg);
  transition: none;
}
.astrolab-flip-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 24px;
  box-sizing: border-box;
}
.astrolab-flip-card.astrolab-active {
  opacity: 1;
  transform: rotateY(0deg);
  transition: transform 0.75s cubic-bezier(0.4,0,0.2,1), opacity 0.1s;
  z-index: 2;
}
.astrolab-flip-card.astrolab-exit {
  opacity: 0;
  transform: rotateY(-90deg);
  transition: transform 0.75s cubic-bezier(0.4,0,0.2,1), opacity 0.1s 0.65s;
  z-index: 1;
}

/* HUD strip at bottom */
.astrolab-hud {
  position: absolute;
  bottom: 52px;
  left: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}
.astrolab-hud-line {
  flex: 1;
  height: 1px;
  background: rgba(0,194,255,0.45);
}
.astrolab-hud-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,194,255,0.75);
  font-weight: 600;
  white-space: nowrap;
}

/* Corner bracket decorations */
.astrolab-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 10;
  opacity: 0.6;
}
.astrolab-corner-tl { top: 16px;    left: 16px;  border-top: 1.5px solid #00C2FF; border-left: 1.5px solid #00C2FF; }
.astrolab-corner-tr { top: 16px;    right: 16px; border-top: 1.5px solid #00C2FF; border-right: 1.5px solid #00C2FF; }
.astrolab-corner-bl { bottom: 16px; left: 16px;  border-bottom: 1.5px solid #00C2FF; border-left: 1.5px solid #00C2FF; }
.astrolab-corner-br { bottom: 16px; right: 16px; border-bottom: 1.5px solid #00C2FF; border-right: 1.5px solid #00C2FF; }


/* ═══════════════════════════════════════════════════════
   WIZARD / STYLUST CARD
═══════════════════════════════════════════════════════ */
.wizard-visual {
  position: relative;
  background: #08060f;
  overflow: hidden;
}
.wizard-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 55% 45%, #1a0d35 0%, #0e0620 55%, #08060f 100%);
}
.wizard-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.wizard-orb-1 {
  position: absolute;
  top: -60px; right: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.30) 0%, rgba(124,58,237,0.10) 45%, transparent 70%);
  animation: orbPulse1 6s ease-in-out infinite;
  animation-play-state: paused;
}
.wizard-orb-2 {
  position: absolute;
  bottom: -60px; right: 40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.22) 0%, rgba(109,40,217,0.08) 45%, transparent 70%);
  animation: orbPulse2 8s ease-in-out infinite;
  animation-delay: -3s;
  animation-play-state: paused;
}
.wizard-grid {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 60%;
  background-image:
    linear-gradient(rgba(168,85,247,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
}

/* Single device stage */
.wizard-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 32px 52px;
  z-index: 5;
}

/* The device frame — fills available width, constrained by height */
.wizard-device {
  /* Fill width of the visual panel with breathing room */
  width: 100%;
  /* Constrain height so it never overflows the card */
  max-height: calc(100vh - 120px);
  /* Start landscape: roladex 1280x674 */
  aspect-ratio: 1280 / 674;
  border-radius: 14px;
  border: 1.5px solid rgba(168,85,247,0.40);
  box-shadow:
    0 0 0 1px rgba(168,85,247,0.12),
    0 20px 60px rgba(0,0,0,0.75),
    0 0 50px rgba(168,85,247,0.20);
  background: #000;
  overflow: hidden;
  position: relative;
  transition: aspect-ratio 0.7s cubic-bezier(0.4,0,0.2,1),
              border-radius 0.7s cubic-bezier(0.4,0,0.2,1);
}
.wizard-device.is-scanner {
  aspect-ratio: 1036 / 720;
  border-radius: 18px;
}

/* Screen holds both videos stacked */
.wizard-screen {
  position: absolute;
  inset: 0;
}
.wizard-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.wizard-vid.wiz-active { opacity: 1; }

/* Label below device */
.wizard-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168,85,247,0.75);
  font-weight: 600;
  transition: opacity 0.4s ease;
}
.wizard-label.wiz-fade { opacity: 0; }
