/* Manifesto / the signal relic becomes the section atmosphere */

.manifesto-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(720px, 62vw, 850px);
  padding: clamp(96px, 9vw, 132px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 490px);
  align-items: center;
  background: #090c09;
}

.manifesto-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(var(--manifesto-bg-x, 0), var(--manifesto-bg-y, 0), 0) scale(1.012);
  will-change: transform;
}

.manifesto-background picture,
.manifesto-background img {
  display: block;
  width: 100%;
  height: 100%;
}

.manifesto-background img {
  object-fit: contain;
  object-position: right center;
  filter: saturate(1.015) contrast(1.035) brightness(1.055);
  transform: scaleX(-1);
  transform-origin: center;
}

.manifesto-instrument {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: block;
  opacity: 0;
  filter: saturate(1.015) contrast(1.035) brightness(1.055);
  pointer-events: none;
  mask-image: linear-gradient(90deg, #000 0 82%, transparent 100%);
}

.instrument-ready picture { visibility: hidden; }
.instrument-ready .manifesto-instrument { opacity: 1; }

.manifesto-still *,
.manifesto-still *::before,
.manifesto-still *::after,
.manifesto-sleeping *,
.manifesto-sleeping *::before,
.manifesto-sleeping *::after {
  animation-play-state: paused !important;
}

.manifesto-background::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(9, 12, 9, .015) 0%,
      rgba(9, 12, 9, .04) 28%,
      rgba(9, 12, 9, .18) 43%,
      rgba(9, 12, 9, .64) 55%,
      rgba(9, 12, 9, .94) 65%,
      #0b0e0b 74%,
      #090c09 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 11, 8, .14),
      transparent 16%,
      transparent 72%,
      rgba(8, 11, 8, .4) 100%
    );
}

.manifesto-background::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 22% 50%, transparent 0 31%, rgba(3, 5, 3, .05) 54%, rgba(3, 5, 3, .33) 100%);
  mix-blend-mode: soft-light;
  opacity: .55;
}

.manifesto-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(236, 226, 188, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 226, 188, .02) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent 6%, black 42%, transparent 82%);
}

.manifesto-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.manifesto-copy {
  position: relative;
  z-index: 4;
  grid-column: 2;
  width: 100%;
  justify-self: end;
  max-width: 500px;
}

.manifesto-copy::before {
  content: '';
  position: absolute;
  inset: -70px -58px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(8, 12, 8, .68), transparent 68%);
  filter: blur(10px);
}

.manifesto-copy .section-index {
  color: var(--lime);
}

.manifesto-copy h2 {
  max-width: 500px;
  text-wrap: balance;
}

.manifesto-copy p {
  color: #aeb7aa;
}

.manifesto-data-label {
  position: absolute;
  z-index: 4;
  color: rgba(213, 205, 173, .48);
  font: 7px/1.45 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.manifesto-data-top {
  left: calc(var(--gutter) + 6px);
  top: 84px;
}

.manifesto-data-right {
  left: 55%;
  top: 48%;
  writing-mode: vertical-rl;
}

.manifesto-data-bottom {
  left: 23%;
  bottom: 54px;
  color: rgba(200, 255, 67, .58);
}

.manifesto-scanline {
  position: absolute;
  left: 4%;
  top: 20%;
  z-index: 3;
  width: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 231, 183, .36), transparent);
  box-shadow: 0 0 16px rgba(200, 255, 67, .16);
  opacity: .5;
  animation: manifesto-scanline 8s ease-in-out infinite;
  pointer-events: none;
}

.manifesto-background-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 0 37%, rgba(255, 246, 211, .07) 47%, rgba(200, 255, 67, .035) 51%, transparent 61%);
  transform: translateX(-75%);
  mix-blend-mode: screen;
  animation: manifesto-bg-sweep 11s ease-in-out infinite;
}

.manifesto-coordinate {
  z-index: 4;
}

.manifesto-awaken{position:absolute;z-index:5;left:var(--gutter);bottom:54px;display:inline-flex;align-items:center;gap:12px;min-height:42px;padding:10px 17px;border:1px solid #a9997466;border-radius:3px;background:#11140ed9;color:#e8dfc8;font:11px/1.4 var(--font-sans);cursor:pointer;transition:background .2s,border-color .2s}
.manifesto-awaken:hover{background:#282b20;border-color:#d9c99c}
.manifesto-awaken:focus-visible{outline:2px solid #efe4c5;outline-offset:4px}
.manifesto-data-bottom{bottom:32px}
@media(max-width:1050px){.manifesto-awaken{top:32px;bottom:auto;left:auto;right:var(--gutter)}.manifesto-data-top{max-width:40%;white-space:normal}.manifesto-data-bottom{bottom:36px}}

@keyframes manifesto-bg-sweep {
  0%, 58%, 100% { transform: translateX(-75%); opacity: 0; }
  69% { opacity: .7; }
  84% { transform: translateX(95%); opacity: 0; }
}

@keyframes manifesto-scanline {
  0%, 100% { top: 16%; opacity: 0; }
  18% { opacity: .62; }
  62% { opacity: .28; }
  78% { top: 80%; opacity: 0; }
}

@media (max-width: 1050px) {
  .manifesto-section {
    min-height: 920px;
    padding: 92px var(--gutter) 88px;
    grid-template-columns: 1fr;
    align-items: end;
  }

  .manifesto-background img {
    object-fit: contain;
    object-position: center top;
    opacity: .76;
  }

  .manifesto-instrument {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    mask-image: linear-gradient(180deg, #000 0 82%, transparent 100%);
  }

  .instrument-ready .manifesto-instrument { opacity: .76; }

  .manifesto-background::before {
    background:
      linear-gradient(180deg, rgba(8, 11, 8, .08) 0%, transparent 28%, rgba(8, 11, 8, .32) 48%, rgba(9, 12, 9, .92) 72%, #090c09 100%);
  }

  .manifesto-copy {
    grid-column: 1;
    max-width: 620px;
  }

  .manifesto-data-top {
    top: 36px;
  }

  .manifesto-data-right {
    display: none;
  }

  .manifesto-data-bottom {
    left: auto;
    right: var(--gutter);
    bottom: 36px;
  }

  .manifesto-scanline {
    left: 8%;
    width: 84%;
  }
}

@media (max-width: 520px) {
  .manifesto-section {
    min-height: 880px;
  }

  .manifesto-copy h2 {
    font-size: clamp(37px, 11.5vw, 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto-background img,
  .manifesto-background-scan,
  .manifesto-scanline {
    animation: none !important;
  }
}
