/* Visual media enhancements — cinematic graphics & motion panels */

.ken-burns {
  animation: kenBurns 22s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

@keyframes kenBurns {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Cinematic motion cards (video-like loops without MP4) */
.media-showcase {
  background: #050505;
  color: #fff;
  border-top: 4px solid var(--gold, #1a6fd4);
  border-bottom: 4px solid var(--gold, #1a6fd4);
}

.media-showcase .section-head h2,
.media-showcase .eyebrow {
  color: var(--gold, #1a6fd4);
}

.media-sub {
  color: rgba(255, 255, 255, 0.75) !important;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

.cine-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 10;
  background: #111;
}

.cine-card:last-child .cine-frame {
  aspect-ratio: 4 / 5;
}

.cine-ken {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  animation: cineZoom 14s ease-in-out infinite alternate;
  will-change: transform;
}

.cine-ken-slow {
  animation-duration: 18s;
  background-size: cover;
}

.cine-frame.is-paused .cine-ken {
  animation-play-state: paused;
}

@keyframes cineZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12) translate(1%, -1%); }
}

.cine-ui {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.cine-badge {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(26, 111, 212, 0.6);
  color: #1a6fd4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 3px;
}

.cine-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #1a6fd4;
  background: rgba(0, 0, 0, 0.55);
  color: #1a6fd4;
  font-size: 0.75rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cine-play:hover {
  background: #1a6fd4;
  color: #000;
  transform: scale(1.06);
}

.cine-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.5rem 1.1rem 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

.cine-caption h3 {
  margin: 0 0 0.25rem;
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.cine-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.media-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.media-note code {
  color: #1a6fd4;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* Horizontal visual strip */
.visual-strip {
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid #222;
  padding: 0.75rem 0;
}

.visual-strip-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: stripScroll 40s linear infinite;
  padding: 0 0.75rem;
}

.visual-strip:hover .visual-strip-track {
  animation-play-state: paused;
}

@keyframes stripScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.visual-tile {
  margin: 0;
  position: relative;
  width: 260px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #222;
  flex-shrink: 0;
}

.visual-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.visual-tile:hover img {
  transform: scale(1.08);
}

.visual-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #1a6fd4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Results with art background */
.results-with-art {
  position: relative;
  overflow: hidden;
}

.results-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: grayscale(0.2) contrast(1.1);
  animation: kenBurns 28s ease-in-out infinite alternate;
}

.results-with-art .results-meter-inner {
  position: relative;
  z-index: 1;
}

/* Visual practice cards */
.practice-visual {
  background: #0a0a0a;
  color: #fff;
}

.practice-visual .section-head h2 {
  color: #fff;
}

.practice-visual .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

.visual-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.vcard {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #222;
  min-height: 240px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vcard:hover {
  transform: translateY(-4px);
  border-color: #1a6fd4;
}

.vcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.vcard:hover img {
  transform: scale(1.07);
}

.vcard-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.1rem 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

.vcard-body h3 {
  margin: 0 0 0.35rem;
  font-family: "Oswald", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: #1a6fd4;
}

.vcard-body p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

/* About dual image */
.about-grid-visual {
  align-items: center;
}

.about-media-stack {
  position: relative;
}

.about-media-stack .about-main {
  width: 100%;
  border-radius: 8px;
  border: 3px solid #111;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.about-media-stack .about-float {
  position: absolute;
  width: 48%;
  right: -6%;
  bottom: -8%;
  border-radius: 8px;
  border: 3px solid #1a6fd4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

@media (max-width: 960px) {
  .media-grid,
  .visual-practice-grid {
    grid-template-columns: 1fr;
  }

  .cine-card:last-child .cine-frame {
    aspect-ratio: 16 / 10;
  }

  .about-media-stack .about-float {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ken-burns,
  .cine-ken,
  .visual-strip-track,
  .results-art {
    animation: none !important;
  }
}
