/* The original title and newspaper montage, revealed by manual deck steps. */
.news-opening {
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 168, 142, .12), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(224, 106, 80, .08), transparent 30%),
    var(--bg);
}

.news-opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  pointer-events: none;
  background: radial-gradient(rgba(242, 245, 247, .18) .65px, transparent .65px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.news-opening .news-shell {
  position: relative;
  width: min(96vw, 1280px);
  height: min(76vh, 650px);
  max-height: 100%;
  display: grid;
  place-items: center;
}

.news-opening .news-title {
  position: relative;
  z-index: 0;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(38px, 6.5vw, 92px);
  font-weight: 830;
  line-height: .98;
  letter-spacing: -.058em;
  white-space: nowrap;
  text-wrap: nowrap;
  text-align: center;
  text-shadow: 0 18px 55px rgba(0, 0, 0, .55);
}

.news-opening .headline-stack {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.news-opening .headline-card {
  --tilt: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(76vw, 760px);
  min-height: 105px;
  margin: 0;
  padding: 17px 26px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  text-align: left;
  color: #101417;
  background:
    repeating-linear-gradient(0deg, rgba(20, 25, 27, .025) 0, rgba(20, 25, 27, .025) 1px, transparent 1px, transparent 4px),
    linear-gradient(100deg, #f3eee2, #fffdf6 48%, #e9e1d1);
  clip-path: polygon(1% 4%, 12% 1%, 23% 3%, 37% 0, 52% 2%, 68% 0, 81% 3%, 99% 1%, 100% 94%, 91% 98%, 77% 96%, 63% 100%, 47% 97%, 31% 100%, 17% 96%, 0 99%);
  box-shadow: 0 22px 45px rgba(0, 0, 0, .34);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 20px)) rotate(var(--tilt)) scale(.93);
  transition: opacity .38s ease, transform .55s cubic-bezier(.16, .8, .2, 1), visibility .38s;
}

.news-opening .headline-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--accent, var(--green));
}

.news-opening .headline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 750 clamp(9px, .85vw, 12px)/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #566066;
}

.news-opening .headline-meta::after {
  content: "";
  width: 42px;
  height: 1px;
  flex-shrink: 0;
  background: currentColor;
  opacity: .5;
}

.news-opening .headline-card h2 {
  margin: 0;
  color: #101417;
  font: 700 clamp(17px, 2vw, 28px)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.news-opening .headline-one {
  --tilt: -4.5deg;
  --accent: #d84a3f;
  top: 27%;
  left: 47%;
  z-index: 1;
}

.news-opening .headline-two {
  --tilt: 3deg;
  --accent: #f5b642;
  top: 41%;
  left: 53%;
  z-index: 2;
  width: min(72vw, 700px);
}

.news-opening .headline-three {
  --tilt: -2deg;
  --accent: var(--green);
  top: 56%;
  left: 46%;
  z-index: 3;
  width: min(74vw, 735px);
}

.news-opening .headline-four {
  --tilt: 4deg;
  --accent: #cf4d8f;
  top: 69%;
  left: 52%;
  z-index: 4;
  width: min(70vw, 680px);
}

.news-opening[data-step="1"] .headline-one,
.news-opening[data-step="2"] .headline-one,
.news-opening[data-step="2"] .headline-two,
.news-opening[data-step="3"] .headline-one,
.news-opening[data-step="3"] .headline-two,
.news-opening[data-step="3"] .headline-three,
.news-opening[data-step="4"] .headline-one,
.news-opening[data-step="4"] .headline-two,
.news-opening[data-step="4"] .headline-three,
.news-opening[data-step="4"] .headline-four {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1);
}

@media (max-width: 760px) {
  .news-opening .news-shell { height: min(78vh, 610px); }
  .news-opening .news-title {
    width: 90vw;
    white-space: normal;
    text-wrap: balance;
  }
  .news-opening .headline-card {
    width: min(88vw, 640px);
    min-height: 96px;
    padding: 14px 20px;
  }
  .news-opening .headline-one { top: 25%; left: 48%; }
  .news-opening .headline-two { top: 40%; left: 52%; }
  .news-opening .headline-three { top: 56%; left: 47%; }
  .news-opening .headline-four { top: 71%; left: 51%; }
}

@media (max-height: 650px) {
  .news-opening .news-shell { height: 82vh; }
  .news-opening .headline-card {
    min-height: 88px;
    padding-top: 12px;
    padding-bottom: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-opening .headline-card { transition: none; }
}
