/* CSBYKP Lobby TV Slideshow — black + neon chartreuse */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --neon: #C8FF00;
  --neon-dim: rgba(200, 255, 0, 0.55);
  --neon-glow: rgba(200, 255, 0, 0.35);
  --muted: rgba(255, 255, 255, 0.55);
  --font-display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-script: "Playfair Display", Georgia, serif;
  --slide-pad: clamp(2rem, 6vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

body.interactive { cursor: default; }
body.interactive .chrome { opacity: 1; }

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Ambient background grid / glow */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200, 255, 0, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(200, 255, 0, 0.05), transparent 55%),
    linear-gradient(180deg, #050505 0%, #000 100%);
  pointer-events: none;
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--slide-pad);
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition:
    opacity 0.75s var(--ease),
    transform 0.85s var(--ease);
  will-change: opacity, transform;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.slide.is-exit {
  opacity: 0;
  transform: scale(0.985);
  z-index: 1;
}

.slide-inner {
  width: min(1100px, 100%);
  text-align: center;
  position: relative;
}

/* Typography helpers */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(18px);
}

.price {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 16rem);
  line-height: 0.85;
  color: var(--neon);
  text-shadow: 0 0 40px var(--neon-glow), 0 0 80px rgba(200, 255, 0, 0.15);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
}

.offer {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 5.5rem);
  letter-spacing: 0.06em;
  margin-top: 0.35em;
  opacity: 0;
  transform: translateY(16px);
}

.sub, .tagline, .meta, .lead {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
}

.sub, .tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  margin-top: 1.25rem;
}

.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
}

.meta {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  margin-top: 1.5rem;
  color: var(--neon-dim);
}

/* Active slide stagger-in */
.slide.is-active .eyebrow,
.slide.is-active .headline,
.slide.is-active .price,
.slide.is-active .offer,
.slide.is-active .sub,
.slide.is-active .tagline,
.slide.is-active .meta,
.slide.is-active .lead,
.slide.is-active .kinetic-line,
.slide.is-active .sig-name,
.slide.is-active .sig-prefix,
.slide.is-active .feature-body,
.slide.is-active .feature-cta,
.slide.is-active .domain {
  animation: rise-in 0.9s var(--ease) forwards;
}

.slide.is-active .eyebrow { animation-delay: 0.05s; }
.slide.is-active .lead { animation-delay: 0.08s; }
.slide.is-active .headline { animation-delay: 0.12s; }
.slide.is-active .price { animation-delay: 0.1s; }
.slide.is-active .offer { animation-delay: 0.28s; }
.slide.is-active .sub,
.slide.is-active .tagline { animation-delay: 0.4s; }
.slide.is-active .meta { animation-delay: 0.45s; }

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Accent rule */
.neon-rule {
  width: min(220px, 40%);
  height: 3px;
  background: var(--neon);
  margin: 1.5rem auto;
  box-shadow: 0 0 18px var(--neon-glow);
  opacity: 0;
  transform: scaleX(0.4);
}

.slide.is-active .neon-rule {
  animation: rule-in 0.7s var(--ease) 0.25s forwards;
}

@keyframes rule-in {
  to { opacity: 1; transform: scaleX(1); }
}

/* Layout: offer-hook */
.layout-offer-hook .price-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.75rem;
  gap: 0.15rem;
}

.layout-offer-hook .price {
  font-size: clamp(4.5rem, 14vw, 10rem);
}

/* Layout: price-hero */
.layout-price-hero .price {
  font-size: clamp(7rem, 24vw, 18rem);
}

/* Layout: offer-stack */
.layout-offer-stack .price {
  font-size: clamp(5.5rem, 18vw, 13rem);
}

/* Layout: brand-center */
.layout-brand-center .title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0;
  transform: translateY(16px);
}

.layout-brand-center .byline {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 4rem);
  color: var(--neon);
  margin-top: 0.4rem;
  text-shadow: 0 0 30px var(--neon-glow);
  opacity: 0;
  transform: translateY(16px);
}

.slide.is-active .layout-brand-center .title { animation: rise-in 0.9s var(--ease) 0.1s forwards; }
.slide.is-active .layout-brand-center .byline { animation: rise-in 0.9s var(--ease) 0.28s forwards; }

/* Layout: kinetic collage */
.layout-kinetic .kinetic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
}

.kinetic-line {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(28px);
}

.kinetic-line:nth-child(1) { color: var(--fg); }
.kinetic-line:nth-child(2) {
  color: var(--neon);
  font-size: clamp(4rem, 14vw, 11rem);
  text-shadow: 0 0 40px var(--neon-glow);
}
.kinetic-line:nth-child(3),
.kinetic-line:nth-child(4) {
  font-size: clamp(1.4rem, 3.5vw, 2.75rem);
  letter-spacing: 0.28em;
  color: var(--muted);
}

.slide.is-active .kinetic-line:nth-child(1) { animation-delay: 0.05s; }
.slide.is-active .kinetic-line:nth-child(2) { animation-delay: 0.18s; }
.slide.is-active .kinetic-line:nth-child(3) { animation-delay: 0.32s; }
.slide.is-active .kinetic-line:nth-child(4) { animation-delay: 0.42s; }

/* subtle floating motion while active */
.slide.is-active .kinetic {
  animation: float-soft 8s ease-in-out infinite;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Layout: domain-blast */
.domain {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 11rem);
  letter-spacing: 0.06em;
  color: var(--neon);
  text-shadow:
    0 0 20px var(--neon-glow),
    0 0 60px rgba(200, 255, 0, 0.25),
    0 0 120px rgba(200, 255, 0, 0.12);
  opacity: 0;
  transform: scale(0.92);
}

.slide.is-active .feature-body,
.slide.is-active .feature-cta,
.slide.is-active .domain {
  animation: domain-in 1s var(--ease) 0.08s forwards, pulse-glow 3.5s ease-in-out 1.1s infinite;
}

@keyframes domain-in {
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px var(--neon-glow), 0 0 60px rgba(200, 255, 0, 0.25); }
  50% { text-shadow: 0 0 30px var(--neon-glow), 0 0 90px rgba(200, 255, 0, 0.4); }
}

/* Layout: signature */
.sig-prefix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 0.22em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(12px);
}

.sig-name {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 9rem);
  color: var(--neon);
  line-height: 1.05;
  margin-top: 0.15em;
  text-shadow: 0 0 40px var(--neon-glow);
  opacity: 0;
  transform: translateY(20px);
}

.slide.is-active .sig-prefix { animation: rise-in 0.85s var(--ease) 0.1s forwards; }
.slide.is-active .sig-name { animation: rise-in 0.95s var(--ease) 0.25s forwards; }

/* Chrome / HUD */
.chrome {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon), #e8ff66);
  box-shadow: 0 0 12px var(--neon-glow);
  transform-origin: left center;
}

.dots {
  position: absolute;
  bottom: clamp(1rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  pointer-events: auto;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.dot.is-active {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 10px var(--neon-glow);
  transform: scale(1.15);
}

.brand-chip {
  position: absolute;
  bottom: clamp(1rem, 3vh, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
}

.pause-badge {
  position: absolute;
  top: clamp(1rem, 3vh, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #000;
  background: var(--neon);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
}

.pause-badge.hidden { display: none; }

/* Corner accents */
.corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--neon-dim);
  border-style: solid;
  opacity: 0.45;
  pointer-events: none;
}
.corner-tl { top: 1.25rem; left: 1.25rem; border-width: 2px 0 0 2px; }
.corner-br { bottom: 1.25rem; right: 1.25rem; border-width: 0 2px 2px 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slide, .slide * { animation: none !important; transition: opacity 0.3s ease !important; }
  .slide.is-active .eyebrow,
  .slide.is-active .headline,
  .slide.is-active .price,
  .slide.is-active .offer,
  .slide.is-active .sub,
  .slide.is-active .tagline,
  .slide.is-active .meta,
  .slide.is-active .lead,
  .slide.is-active .kinetic-line,
  .slide.is-active .sig-name,
  .slide.is-active .sig-prefix,
  .slide.is-active .domain,
  .slide.is-active .title,
  .slide.is-active .byline,
  .slide.is-active .neon-rule {
    opacity: 1;
    transform: none;
  }
}

/* Error state */
.error-panel {
  color: var(--neon);
  font-family: var(--font-body);
  text-align: center;
  padding: 2rem;
  max-width: 36rem;
  margin: auto;
}
.error-panel code {
  color: #fff;
  background: #111;
  padding: 0.15em 0.4em;
}


/* Layout: feature (remote IT / services pitch) */
.layout-feature .feature-headline {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  color: var(--fg);
}
.layout-feature .feature-body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(14px);
}
.layout-feature .feature-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon);
  margin-top: 1.75rem;
  text-shadow: 0 0 20px var(--neon-glow);
  opacity: 0;
  transform: translateY(12px);
}
.slide.is-active .feature-body { animation: rise-in 0.9s var(--ease) 0.35s forwards; }
.slide.is-active .feature-cta { animation: rise-in 0.9s var(--ease) 0.5s forwards; }

/* Slightly richer ambient pulse on active stage */
.app::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(200,255,0,0.03) 60deg, transparent 120deg);
  animation: drift 28s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
@keyframes drift {
  to { transform: rotate(360deg); }
}
