/*
 * Inner pages (every page except the front page), 2026-11-19.
 *
 * 1. Reveal fix. style.css hides every .reveal at opacity 0 and only main.js shows it, so with
 *    scripts off or failing the content stayed blank (found 2026-11-18: /influencers/ lost its
 *    whole feature grid). Base state is now visible; the hidden start state applies only under
 *    html.js-reveal, which an inline script in <head> sets and takes back after 3 s if main.js
 *    never reports in.
 * 2. Shared pieces from the homepage redesign: the film poster/player, the film-still frames,
 *    the robot card and the two-sided closing cards.
 */

/* ------------------------------------------------------------------ */
/* 1. Reveal fix                                                       */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 1;
  transform: none;
}
.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}
.js-reveal .reveal--left:not(.is-visible) {
  transform: translateX(-28px);
}
.js-reveal .reveal--right:not(.is-visible) {
  transform: translateX(28px);
}

/* ------------------------------------------------------------------ */
/* 2a. Film stills in image frames                                     */
/* ------------------------------------------------------------------ */
.img-frame--wide {
  aspect-ratio: 16 / 9;
}
.img-frame--band img {
  object-position: center 38%;
}

/* ------------------------------------------------------------------ */
/* 2b. Film poster that becomes the player                             */
/* ------------------------------------------------------------------ */
.gx-video {
  position: relative;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}
.gx-video::before {
  content: "";
  position: absolute;
  inset: 0.7rem -0.6rem -0.7rem 0.6rem;
  border-radius: 1.4rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  transform: rotate(2deg);
}
.gx-video__link,
.gx-video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 1.4rem;
  overflow: hidden;
  background: #1a1010;
  box-shadow: 0 1px 2px rgb(17 17 17 / 0.06), 0 28px 64px -26px rgb(116 26 26 / 0.55);
}
video.gx-video__frame {
  height: auto;
  object-fit: cover;
}
.gx-video__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gx-video__link::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(10 6 6 / 0.72));
  pointer-events: none;
}
.gx-video__link:hover img {
  transform: scale(1.035);
}
.gx-video__link:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
.gx-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: -2.5rem 0 0 -2.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 0.55rem rgb(255 255 255 / 0.28), 0 14px 32px rgb(0 0 0 / 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.gx-video__play svg {
  width: 2rem;
  height: 2rem;
  margin-left: 0.2rem;
}
.gx-video__link:hover .gx-video__play {
  transform: scale(1.08);
  background: var(--brand-700);
}
.gx-video__label {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}
.gx-video__label small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbe3e3;
}
@media (max-width: 480px) {
  .gx-video__play {
    width: 4rem;
    height: 4rem;
    margin: -2rem 0 0 -2rem;
  }
  .gx-video__label {
    font-size: 1rem;
  }
}

/* ------------------------------------------------------------------ */
/* 2c. The robot on a brand card (A1Ai page)                           */
/* ------------------------------------------------------------------ */
.jv-card {
  background:
    radial-gradient(60% 55% at 50% 62%, rgb(201 42 42 / 0.42), transparent 72%),
    linear-gradient(to bottom right, #171717, #171717 55%, var(--brand-900));
}
.jv-card img {
  object-fit: contain;
  padding: 7% 9% 3%;
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.45));
}

/* ------------------------------------------------------------------ */
/* 2d. Two-sided closing cards                                         */
/* ------------------------------------------------------------------ */
.sides {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}
@media (min-width: 768px) {
  .sides {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}
.side {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  border: 1px solid var(--n200);
  border-radius: 1.3rem;
  background: #fff;
  color: var(--n700);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.side:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}
.side:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.side__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.side__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--n900);
}
.side__body {
  line-height: 1.6;
}
.side__cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 700;
  color: var(--brand-700);
}
.side--creator {
  background: var(--brand);
  border-color: var(--brand);
  color: #fdecec;
}
.side--creator:hover {
  border-color: var(--brand-700);
  box-shadow: var(--shadow-glow);
}
.side--creator .side__kicker,
.side--creator .side__title,
.side--creator .side__cta {
  color: #fff;
}
.side--creator:focus-visible {
  outline-color: var(--n900);
}
