/**
 * Manifesto page. Markup and behavior live in the Synapser Site plugin.
 */

.entry-content > .syn-manifesto-page,
.front-page-content > .entry-content > .syn-manifesto-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.entry-content > .syn-manifesto-page + .syn-manifesto-page {
  margin-block-start: 0;
}

.syn-manifesto-page {
  --manifesto-bg: #121114;
  background: var(--manifesto-bg);
  color: var(--color-text-inverse);
}

.syn-manifesto-page-hero__inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--width-wide));
  margin-inline: auto;
  padding-block: clamp(3rem, 5vw, 5rem) clamp(1rem, 2vw, 2rem);
}

.syn-manifesto-page-hero__heading {
  text-align: center;
}

.syn-manifesto-page__eyebrow {
  margin: 0;
  color: var(--color-orange);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
}

.syn-manifesto-page-hero h2 {
  margin: var(--space-xs) 0 0;
  color: var(--color-bone);
  font-family: var(--font-family-heading);
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  font-weight: var(--font-weight-medium);
  line-height: 1.05;
  letter-spacing: var(--letter-spacing-tight);
}

.syn-manifesto-page-video__inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--width-wide));
  margin-inline: auto;
  padding-block: clamp(1rem, 2vw, 2rem) clamp(2rem, 4vw, 4rem);
}

.syn-manifesto-video {
  position: relative;
  width: min(100%, 63rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: clamp(1.25rem, 2.6vw, 2.25rem);
  background: var(--color-surface-dark-raised);
  box-shadow: 0 2rem 3.2rem rgb(0 0 0 / 55%);
  isolation: isolate;
}

.syn-manifesto-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.syn-manifesto-video__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-xl);
  margin: 0;
  color: var(--color-text-inverse-muted);
  text-align: center;
}

.syn-manifesto-page__body {
  width: min(calc(100% - (var(--page-gutter) * 2)), 47rem);
  margin-inline: auto;
}

.syn-manifesto-page-text {
  padding-block: clamp(0.65rem, 1.3vw, 1.15rem);
}

.syn-manifesto-page-video + .syn-manifesto-page-text {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.syn-manifesto-page-text h3 {
  margin: 0 0 clamp(1.8rem, 3vw, 2.75rem);
  color: var(--color-orange);
  font-family: var(--font-family-heading);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.34;
}

.syn-manifesto-page-text p {
  margin: 0;
  color: var(--color-text-inverse-muted);
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  line-height: 1.6;
}

.syn-manifesto-page-text p strong {
  color: var(--color-bone);
  font-weight: var(--font-weight-semibold);
}

.syn-manifesto-page-statement {
  padding-block: clamp(1.5rem, 3vw, 2.7rem);
}

.syn-manifesto-page-statement__text {
  margin: 0;
  color: var(--color-bone);
  font-family: var(--font-family-heading);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}

.syn-manifesto-page-statement__text strong {
  color: var(--color-orange);
  font-weight: inherit;
}

.syn-manifesto-pulses {
  display: flex;
  min-height: 1rem;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--space-md);
}

.syn-manifesto-pulses:first-child {
  margin-top: 0;
}

.syn-manifesto-pulses span {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-copper);
  animation: manifesto-pulse 3.8s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0.78;
  transform: scale(0.96);
}

.syn-manifesto-pulses span:nth-child(2) {
  width: 0.7rem;
  height: 0.7rem;
  animation-delay: 260ms;
  background: var(--color-light-copper);
}

.syn-manifesto-pulses span:nth-child(3) {
  width: 0.88rem;
  height: 0.88rem;
  animation-delay: 520ms;
  background: var(--color-orange);
}

.syn-manifesto-page-closing {
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(5rem, 9vw, 8rem);
}

.syn-manifesto-page-closing__rule {
  height: 1px;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
  background: linear-gradient(90deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 4%));
}

.syn-manifesto-page-closing h3 {
  margin: 0;
  color: var(--color-bone);
  font-family: var(--font-family-heading);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}

.syn-manifesto-page-closing h3 span,
.syn-manifesto-page-closing h3 strong {
  display: block;
}

.syn-manifesto-page-closing h3 strong,
.syn-manifesto-page-closing__signature strong {
  color: var(--color-orange);
  font-weight: inherit;
}

.syn-manifesto-page-closing__signature {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: var(--color-text-inverse-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.55;
}

.syn-manifesto-page-closing__source {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  color: rgb(200 127 74 / 58%);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.syn-manifesto-motion-ready [data-manifesto-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.35rem, 0);
  transition:
    opacity 760ms var(--ease-emphasized),
    transform 760ms var(--ease-emphasized);
  transition-delay: var(--manifesto-delay, 0ms);
}

.syn-manifesto-motion-ready .syn-manifesto-video[data-manifesto-reveal] {
  transform: translate3d(0, 1.35rem, 0) scale(0.985);
}

.syn-manifesto-motion-ready [data-manifesto-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.syn-manifesto-motion-ready [data-manifesto-reveal].is-visible .syn-manifesto-pulses span {
  animation-play-state: running;
}

@keyframes manifesto-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.035); }
}

/* Gutenberg editor preview */
.editor-styles-wrapper [class*="syn-block-editor-preview--manifesto-page-"] {
  padding: var(--space-xl);
  background: #121114;
  color: var(--color-bone);
}

.editor-styles-wrapper [class*="syn-block-editor-preview--manifesto-page-"] strong {
  color: var(--color-orange);
}

@media (max-width: 760px) {
  .syn-manifesto-page-hero__inner {
    width: 100%;
    padding: 2.75rem var(--page-gutter-mobile) 1rem;
  }

  .syn-manifesto-page-hero h2 {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
  }

  .syn-manifesto-page-video__inner {
    width: 100%;
    padding: 1.25rem var(--page-gutter-mobile) 2.25rem;
  }

  .syn-manifesto-video {
    border-radius: 1.25rem;
    box-shadow: 0 1.4rem 2.25rem rgb(0 0 0 / 50%);
  }

  .syn-manifesto-page__body {
    width: 100%;
    padding-inline: var(--page-gutter-mobile);
  }

  .syn-manifesto-page-video + .syn-manifesto-page-text {
    padding-top: 2.75rem;
  }

  .syn-manifesto-page-text h3 {
    margin-bottom: 2rem;
    font-size: 1.3rem;
  }

  .syn-manifesto-page-text p {
    font-size: 1rem;
  }

  .syn-manifesto-page-statement {
    padding-block: 1.5rem;
  }

  .syn-manifesto-page-closing {
    padding-block: 2rem 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .syn-manifesto-motion-ready [data-manifesto-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .syn-manifesto-pulses span {
    animation: none;
  }
}
