/* Custom overrides on top of design system */

/* Extra polish for the expanded transcript */
.wb-video-transcript .caption {
  display: block;
  margin-bottom: var(--space-4);
}
.wb-video-transcript blockquote {
  margin: 0 0 var(--space-5);
  padding: 0;
  border: none;
}
.wb-video-transcript blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
  color: var(--plum-deep);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
.wb-video-transcript blockquote p.closing {
  font-size: clamp(22px, 2vw, 28px);
  color: var(--lilac);
  margin-top: var(--space-5);
  margin-bottom: 0;
}
.wb-video-transcript blockquote p em {
  color: var(--lilac);
  font-style: italic;
}
.wb-video-transcript .sig-line {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum-mid);
  margin: var(--space-2) 0 0;
}
.wb-video-frame .placeholder-caption .muted-hint {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac-soft);
  opacity: 0.9;
}

/* Marquee strip between sections */
.wb-marquee {
  background:
    linear-gradient(90deg, rgba(92,64,104,0.16), transparent 18%, transparent 82%, rgba(92,64,104,0.16)),
    linear-gradient(135deg, var(--plum-mid), var(--lilac) 45%, var(--peach));
  color: var(--ivory);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,252,247,0.18);
  border-bottom: 1px solid rgba(255,252,247,0.18);
  box-shadow: inset 0 1px 0 rgba(255,252,247,0.3), inset 0 -1px 0 rgba(92,64,104,0.12);
}
.wb-marquee::before,
.wb-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 9vw, 130px);
  z-index: 2;
  pointer-events: none;
}
.wb-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(139,110,156,0.9), transparent);
}
.wb-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(244,210,194,0.88), transparent);
}
.wb-marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: wb-marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  text-shadow: 0 2px 16px rgba(92,64,104,0.22);
}
.wb-marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.wb-marquee-track .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ivory);
  opacity: 0.82;
  box-shadow: 0 0 0 8px rgba(255,252,247,0.12);
}
.wb-marquee-track .spark {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex: 0 0 auto;
  background: rgba(255,252,247,0.9);
  -webkit-mask:
    linear-gradient(#000 0 0) center/2px 100% no-repeat,
    linear-gradient(#000 0 0) center/100% 2px no-repeat;
          mask:
    linear-gradient(#000 0 0) center/2px 100% no-repeat,
    linear-gradient(#000 0 0) center/100% 2px no-repeat;
  transform: rotate(45deg);
}
@keyframes wb-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Entrance motion */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity 720ms var(--ease-out),
    transform 720ms var(--ease-out),
    filter 720ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.wb-hero-visual.reveal-on-scroll,
.wb-about-photo.reveal-on-scroll {
  transform: translateY(28px) scale(0.985);
}
.wb-hero-visual.reveal-on-scroll.is-visible,
.wb-about-photo.reveal-on-scroll.is-visible {
  transform: translateY(0) scale(1);
}

/* SEO copy block — small, intentional */
.wb-seo-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.wb-seo-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
.wb-seo-copy strong { color: var(--plum-deep); font-weight: 500; }

/* Slightly tighten hero photo on tablet */
@media (max-width: 900px) {
  .wb-hero-photo { max-width: 100%; }
  .wb-hero-photo .hero-photo-badge { left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .wb-marquee-track { animation: none; }
}

/* Keep the emphasized hero words strong inside the Fraunces title treatment. */
.wb-hero h1 em { color: var(--lilac); font-style: normal; font-weight: 700; }

/* Force noscript hidden visually - we keep it for SEO crawlers */
noscript h1, noscript p { position: absolute; left: -9999px; }
