/* Audio-Video page styles. All rules are scoped under .av-page so the
   page-specific design (Manrope/Instrument Serif, cream background,
   editorial typography) doesn't leak into the site header/footer
   rendered by app/inc/header.php and app/inc/footer.php. */

.av-page {
  --bg: #faf8f5;
  --bg-alt: #f0ece5;
  --paper: #ffffff;
  --ink: #161614;
  --ink-soft: #4a4a47;
  --ink-mute: #87857f;
  --line: rgba(22, 22, 20, 0.08);
  --line-strong: rgba(22, 22, 20, 0.18);
  --content-w: 740px;
  --wide-w: 1320px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);

  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.av-page *, .av-page *::before, .av-page *::after { box-sizing: border-box; }
.av-page img, .av-page video { max-width: 100%; display: block; }
.av-page a { color: inherit; text-decoration: none; }
.av-page button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.av-page ::selection { background: var(--ink); color: var(--bg); }

/* ============ ARTICLE HEADER ============ */
.av-page .hero-meta {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 88px 32px 36px;
  text-align: center;
}
.av-page .hero-meta__kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.av-page .hero-meta__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.av-page .hero-meta__title em { font-style: italic; }
.av-page .hero-meta__byline {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.av-page .hero-meta__byline span::after {
  content: "·";
  margin-left: 18px;
  color: var(--ink-mute);
}
.av-page .hero-meta__byline span:last-child::after { content: ""; margin: 0; }

/* ============ ARTICLE BODY ============ */
.av-page .article {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 0 32px 80px;
}
.av-page .article__intro {
  max-width: var(--content-w);
  margin: 0 auto 80px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.av-page .article__intro p + p { margin-top: 1em; }
.av-page .article__intro strong { color: var(--ink); font-weight: 600; }
.av-page .article__intro h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 1.4em;
  line-height: 1.35;
}

/* ============ CHAPTER ============ */
.av-page .chapter {
  max-width: var(--wide-w);
  margin: 0 auto 100px;
  padding: 0 32px;
}
.av-page .chapter__head {
  max-width: var(--content-w);
  margin: 0 auto 40px;
}
.av-page .chapter__num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: inline-block;
}
.av-page .chapter__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 22px;
}
.av-page .chapter__lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.av-page .chapter__lead p + p { margin-top: 0.8em; }
.av-page .chapter__lead strong { color: var(--ink); font-weight: 600; }
.av-page .chapter__lead ul { list-style: none; margin-top: 1em; padding: 0; }
.av-page .chapter__lead li { padding: 6px 0 6px 18px; position: relative; }
.av-page .chapter__lead li::before {
  content: "";
  width: 6px; height: 1px;
  background: var(--ink);
  position: absolute;
  left: 0; top: 18px;
}
.av-page .chapter__post {
  max-width: var(--content-w);
  margin: 36px auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.av-page .chapter__post p + p { margin-top: 0.8em; }
.av-page .chapter__post strong { color: var(--ink); font-weight: 600; }
.av-page .chapter__post em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.08em;
}

/* ============ SLIDESHOW ============ */
.av-page .slider {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16 / 9;
}
.av-page .slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .85s var(--ease);
  will-change: transform;
}
.av-page .slider__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.av-page .slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s linear;
}
.av-page .slider__slide.is-active img { transform: scale(1.04); }

.av-page .slider__nav {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  pointer-events: none;
}
.av-page .slider__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: background .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}
.av-page .slider__btn:hover { background: #fff; transform: scale(1.06); }
.av-page .slider__btn svg { width: 18px; height: 18px; }
.av-page .slider__dots {
  display: flex; gap: 8px;
  pointer-events: auto;
  background: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}
.av-page .slider__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(22,22,20,0.25);
  transition: width .35s var(--ease), background .25s var(--ease);
}
.av-page .slider__dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--ink);
}
.av-page .slider__counter {
  position: absolute;
  top: 18px; right: 22px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(22,22,20,0.55);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ============ VIDEO BLOCK ============ */
.av-page .video-wrap {
  max-width: var(--wide-w);
  margin: 0 auto;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-alt);
}
.av-page .video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ============ INLINE FIGURE ============ */
.av-page .figure {
  max-width: var(--wide-w);
  margin: 0 auto;
  border-radius: var(--r-md);
  overflow: hidden;
}
.av-page .figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ============ DIVIDER ============ */
.av-page .rule {
  max-width: var(--content-w);
  margin: 0 auto 100px;
  height: 1px;
  background: var(--line);
}

/* ============ USP STRIP ============ */
.av-page .usp {
  background: var(--bg-alt);
  padding: 76px 32px;
  border-top: 1px solid var(--line);
}
.av-page .usp__inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .av-page .usp__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 540px) { .av-page .usp__inner { grid-template-columns: 1fr; } }
.av-page .usp__card { display: flex; gap: 18px; align-items: flex-start; }
.av-page .usp__icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
}
.av-page .usp__icon svg { width: 20px; height: 20px; stroke: var(--ink); }
.av-page .usp__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.av-page .usp__text { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* ============ CTA / CONTACT ============ */
.av-page .av-cta {
  background: var(--ink);
  color: #fff;
  padding: 100px 32px;
}
.av-page .av-cta__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.av-page .av-cta__kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.av-page .av-cta__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
  color: #fff;
}
.av-page .av-cta__title em { font-style: italic; }
.av-page .av-cta__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.av-page .form { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; text-align: left; }
.av-page .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .av-page .form__row { grid-template-columns: 1fr; } }
.av-page .form__field { position: relative; }
.av-page .form__field label {
  position: absolute;
  top: 14px; left: 18px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
  transition: all .25s var(--ease);
  background: transparent;
  padding: 0 6px;
}
.av-page .form__field input,
.av-page .form__field textarea {
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.av-page .form__field textarea { resize: vertical; min-height: 120px; padding-top: 16px; }
.av-page .form__field input:focus,
.av-page .form__field textarea:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
}
.av-page .form__field input:focus + label,
.av-page .form__field textarea:focus + label,
.av-page .form__field input:not(:placeholder-shown) + label,
.av-page .form__field textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  background: var(--ink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.av-page .av-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  margin-top: 8px;
  justify-self: start;
  text-decoration: none;
}
.av-page .av-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.av-page .av-btn svg { width: 16px; height: 16px; }

/* ============ ANIMATIONS ============ */
@keyframes av-rise {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.av-page .reveal { opacity: 0; }
.av-page .reveal.is-visible { animation: av-rise .9s var(--ease) forwards; }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .av-page .hero-meta { padding: 52px 24px 28px; }
  .av-page .article, .av-page .chapter { padding-left: 22px; padding-right: 22px; }
  .av-page .slider__btn { width: 38px; height: 38px; }
  .av-page .slider__nav { padding: 0 14px; bottom: 12px; }
  .av-page .av-cta { padding: 64px 22px; }
  .av-page .usp { padding: 56px 22px; }
}
