/* ==========================================================================
   SLIDE 11 — AKT 3 — THE AD (vertical video)
   A 9:16 spot in a wide stage. Instead of letting it float in black pillarbox,
   we make the wide space deliberate: LEFT = reasoning (the spot, format, who),
   RIGHT = the reel in a phone/terminal shell on a brand-dark plate with a
   contained red glow. Asymmetric, composed — the vertical frame is the focal
   object, the copy is its caption.
   ========================================================================== */

.nc-ad__slide { justify-content: center; }

.nc-ad__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4xl);
  align-items: center;
}

/* --- left: reasoning ------------------------------------------------------- */
.nc-ad__copy { max-width: 42ch; }
.nc-ad__copy .nc-eyebrow { margin-bottom: var(--space-lg); }

.reveal .nc-ad__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-lg);
}

.nc-ad__lead {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 var(--space-2xl);
}

/* spec rows — quiet mono key/value, the build receipt */
.nc-ad__specs { display: flex; flex-direction: column; gap: var(--space-md); }
.nc-ad__spec {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-lg);
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--fs-body-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}
.nc-ad__specs .nc-ad__spec:last-child { border-bottom: none; padding-bottom: 0; }
.nc-ad__spec-k { color: var(--text-muted); letter-spacing: 0.08em; }
.nc-ad__spec-k::after { content: ":"; }
.nc-ad__spec-v { color: var(--text-primary); letter-spacing: 0.02em; }

/* --- right: the reel ------------------------------------------------------- */
.nc-ad__reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* the phone/terminal shell — a brand-dark plate with a contained red glow
   behind the vertical frame so it sits in light, not black void. */
.nc-ad__phone {
  position: relative;
  height: 760px;          /* fills the stage height inside the safe-area */
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--elev-3);
  overflow: hidden;       /* clip the play overlay to the device radius */
}
/* the contained brand glow behind the device — disciplined, near-black, not a
   slop neon bloom (matches the hero-reveal halo). */
.nc-ad__phone::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(50% 50% at 50% 45%, rgba(214,52,43,0.20), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.nc-ad__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #000;
}

.nc-ad__reel-tag {
  font-size: var(--fs-label-sm);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: none;
}

/* --- the reel video + play overlay ---------------------------------------
   Same motif as the cold-open (slide 00): no muted autoplay loop — the spot
   arms on PLAY and goes fullscreen WITH SOUND. On navigating to this slide we
   ALSO attempt the same start() (auto-trigger); where the browser blocks it
   for lack of a user gesture, the overlay simply stays as the reliable
   control. State is driven by [data-ad-state] on .nc-ad__phone. */

/* the video sits under the overlay; the poster is its calm idle frame */
.nc-ad__video { transition: opacity var(--dur-base) var(--ease-out); }

/* overlay: a vignette dark enough that the play target reads on ANY poster
   frame (the spot's poster is a busy lit desk — a faint scrim isn't enough).
   The poster stays legible underneath but recedes; the disc owns the focus. */
.nc-ad__play-wrap {
  position: absolute;
  inset: 10px;                       /* match the phone padding -> over the video */
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  text-align: center;
  background:
    radial-gradient(58% 46% at 50% 44%, rgba(8,7,7,0.62), rgba(8,7,7,0.86) 100%);
  transition: opacity var(--dur-base) var(--ease-out);
  z-index: 2;
}

/* the play target is a real <button>: idle = calm red ring; hover/focus =
   it powers up (brighter, lifts); active = a quick press. One motif — a power
   button, no neon slop. Sized down vs. the cold-open (the 9:16 frame is
   narrow, so a 104px disc would crowd it). */
.nc-ad__play {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  width: 88px; height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  /* solid near-black disc so the target reads on ANY poster frame, ringed in
     brand red with a contained glow — a real power button, not a faint outline */
  border: 1px solid rgba(214,52,43,0.7);
  background: rgba(10,9,9,0.78);
  box-shadow: 0 0 36px -8px rgba(214,52,43,0.5), inset 0 0 0 1px rgba(214,52,43,0.12);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition:
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.nc-ad__play-icon { margin-left: 5px; }  /* optical-centre the triangle */

/* a faint outer ring that pulses — the "armed / ready" heartbeat */
.nc-ad__play-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(214,52,43,0.28);
  pointer-events: none;
  animation: nc-ad-ring 2.6s var(--ease-out) infinite;
}
@keyframes nc-ad-ring {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.18); opacity: 0;   }
  100% { transform: scale(1.18); opacity: 0;   }
}

.nc-ad__play:hover,
.nc-ad__play:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: rgba(40,12,11,0.86);   /* powers up: warmer, still a solid disc */
  box-shadow: 0 0 52px -6px rgba(214,52,43,0.65), 0 0 0 1px rgba(214,52,43,0.4);
  transform: scale(1.04);
  outline: none;
}
.nc-ad__play:focus-visible { box-shadow: 0 0 52px -8px rgba(214,52,43,0.6), 0 0 0 3px var(--focus-ring); }
.nc-ad__play:active { transform: scale(0.97); }

/* the label under the disc — quiet mono, the PLAY cue carries the accent.
   A soft text-shadow keeps it legible over the lit poster underneath. */
.nc-ad__play-cue {
  font-size: var(--fs-label-sm);
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: none;
  position: relative; z-index: 1;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0,0,0,0.85);
}
.nc-ad__cue { color: var(--accent-text); font-weight: 600; }

/* file-missing flag — only shown in the missing state (state-driven, NOT the
   [hidden] attribute: reveal.css forces display on slide children and would
   beat UA [hidden], so we gate visibility with this specific selector). */
.nc-ad__missing {
  position: relative; z-index: 1;
  margin: 0;
  font-size: var(--fs-label-sm);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: none;
  font-family: var(--font-mono);
  display: none;
}
.nc-ad__phone[data-ad-state="missing"] .nc-ad__missing { display: inline-flex; }

/* ---- state machine driven by [data-ad-state] on .nc-ad__phone ------------ */
/* idle / missing: overlay shown over the poster frame */
.nc-ad__phone[data-ad-state="playing"] .nc-ad__play-wrap {
  opacity: 0;
  pointer-events: none;
}
/* missing: dim the play target so it doesn't look clickable */
.nc-ad__phone[data-ad-state="missing"] .nc-ad__play {
  color: var(--text-muted);
  border-color: var(--border-strong);
  background: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.nc-ad__phone[data-ad-state="missing"] .nc-ad__play-ring { animation: none; opacity: 0; }

/* when the phone shell is the fullscreen element, fill the screen on
   BRAND-DARK (not raw black) and letterbox the 9:16 frame inside it — the
   surround stays the deck's near-black, never hard black bars. */
.nc-ad__phone:fullscreen,
.nc-ad__phone:-webkit-full-screen {
  height: 100%;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  /* a 9:16 spot in a 16:9 screen has wide sides — make them a DELIBERATE
     brand stage, not dead black bars: deep near-black with a disciplined warm
     red halo behind the centred reel (the same restrained hero-reveal glow). */
  background:
    radial-gradient(46% 62% at 50% 50%, rgba(214,52,43,0.10), transparent 72%),
    radial-gradient(120% 120% at 50% 50%, #0c0b0b 0%, #080707 100%);
}
.nc-ad__phone:fullscreen::before,
.nc-ad__phone:-webkit-full-screen::before { display: none; }
.nc-ad__phone:fullscreen .nc-ad__video,
.nc-ad__phone:-webkit-full-screen .nc-ad__video {
  object-fit: contain;             /* show the whole 9:16, no crop */
  border-radius: 0;
}
.nc-ad__phone:fullscreen .nc-ad__play-wrap,
.nc-ad__phone:-webkit-full-screen .nc-ad__play-wrap { inset: 0; border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .nc-ad__play-ring { animation: none !important; }
  .nc-ad__video, .nc-ad__play-wrap { transition: none !important; }
}
