/* The problem scene is tall by design. Clip painting without creating a scroll container. */
.problem {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #0c1a24;
  scroll-margin-top: 64px;
}
.problem-matrix {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: min(100%, 100dvh);
  opacity: .9;
  pointer-events: none;
}
.problem-heading { padding: 112px clamp(20px, 2.25vw, 32px) 0; }
.problem-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(3.5rem, 13vw, 10rem);
  line-height: .85;
  letter-spacing: -.025em;
}
.problem-heading i {
  font: italic 400 1em/.85 "Instrument Serif", serif;
  letter-spacing: -.025em;
}
.problem-stack {
  display: grid;
  gap: 18px;
  width: min(100% - 40px, 560px);
  margin: 3rem auto 4rem;
}
.problem-card {
  padding: 28px;
  border: 2px solid #120c08;
  background: #e9e4d8;
  color: #120c08;
  box-shadow: 10px 10px 0 #120c08;
}
.problem-card-label { display: flex; justify-content: space-between; font: 12px/1.3 var(--mono); }
.problem-card h3 { margin-top: 40px; font-size: 36px; line-height: .95; text-transform: uppercase; }
.problem-card p { margin-top: 16px; color: #3a2e24; font-size: 14px; line-height: 1.625; }
/* Reserve the runway before the module runs so native fragments land on the right section. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 340px) and (min-height: 570px) {
  .problem[data-stacked] .problem-scroll { height: 340dvh; }
  .problem[data-stacked] .problem-sticky {
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    height: 100dvh;
    overflow: hidden;
  }
  .problem[data-stacked] .problem-stack {
    position: relative;
    display: block;
    width: min(92vw, 560px);
    min-height: 380px;
    margin: 0;
    --stack-x: 26px;
    --stack-y: 22px;
  }
  .problem[data-stacked] .problem-card {
    position: absolute;
    top: calc(var(--card-index) * var(--stack-y));
    left: calc(var(--card-index) * var(--stack-x));
    width: calc(100% - 3 * var(--stack-x));
    opacity: var(--card-opacity, 0);
    transform: translateY(var(--card-y, 600px)) rotate(var(--card-angle, 8deg));
  }
  .problem[data-stacked] .problem-card:first-child { opacity: 1; }
}

@media (max-width: 600px) {
  .problem { scroll-margin-top: 57px; }
  .problem-heading { padding-top: 84px; }
  .problem-heading h2 { font-size: clamp(3.25rem, 13vw, 6rem); }
  .problem-card { padding: 18px; box-shadow: 6px 6px 0 #120c08; }
  .problem-card h3 { margin-top: 26px; font-size: clamp(1.625rem, 7.3vw, 2.25rem); }
  .problem-card p { margin-top: 12px; }
  .problem[data-stacked] .problem-stack {
    width: min(100% - 36px, 440px);
    min-height: 300px;
    --stack-x: 11px;
    --stack-y: 14px;
  }
}

/* The original marquee uses warm edges, a dark center and a moving repeated line. */
.ticker {
  position: relative;
  padding-block: 12px;
  overflow: clip;
  background: linear-gradient(90deg, #ff5a1f 0%, #803719 17%, #3b1b11 50%, #803719 83%, #ff5a1f 100%);
  border-block: 1px solid #874026;
  color: #e9e4d8;
}
.ticker div { animation-duration: 30s; }
.ticker span { letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) {
  .ticker div { animation: none; }
}
#contracts > .wrap { width: auto; max-width: none; margin-inline: clamp(20px, 2.25vw, 32px); }
#contracts .data-header { scroll-margin-top: 66px; }
#contracts h2 { max-width: 13ch; font-size: clamp(3.1rem, 10vw, 9.25rem); line-height: .86; }
@media (max-width: 640px) {
  #contracts .data-header { scroll-margin-top: 57px; }
}

/* The badge fills with molten color before the two halves of the mould part. */
html[data-intro-active] { overflow: hidden; }
.intro {
  --pour-progress: 0%;
  z-index: 100;
  display: block;
  padding: 0;
  background: transparent;
  animation: none;
}
.intro-plate { position: absolute; inset-inline: 0; height: 50%; background: #050404; transition: transform 800ms cubic-bezier(.7, 0, .2, 1); }
.intro-plate-top { top: 0; }
.intro-plate-bottom { bottom: 0; }
.intro[data-opening] { pointer-events: none; }
.intro[data-opening] .intro-plate-top { transform: translateY(-100%); }
.intro[data-opening] .intro-plate-bottom { transform: translateY(100%); }
.intro-seam {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: #d9a441;
  box-shadow: 0 0 18px 2px #ff5a1f;
  transform: scaleX(var(--pour-scale, 0));
  transition: opacity .3s;
}
.intro-cast {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #b9b6b0;
  transition: opacity .3s;
}
.intro-cast > span { margin-bottom: 24px; font-size: 11px; letter-spacing: .2em; }
.intro .intro-cast strong {
  font-size: clamp(4.25rem, 17vw, 16.25rem);
  line-height: .8;
  font-weight: 900;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1px #5a4a40;
  background: linear-gradient(to top, #ff5a1f 0, #ff5a1f calc(var(--pour-progress) - 6%), #d9a441 var(--pour-progress), transparent calc(var(--pour-progress) + .5%));
  background-clip: text;
}
.intro-progress { width: min(640px, 90vw); margin-top: 32px; font-size: 11px; text-align: left; text-transform: uppercase; }
.intro-progress > div:first-child { display: flex; justify-content: space-between; }
#intro-percent { color: var(--orange); font-variant-numeric: tabular-nums; }
.intro .intro-bar { width: 100%; height: 1px; margin-top: 8px; }
.intro .intro-bar span { width: var(--pour-progress); animation: none; }
.intro button {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #b9b6b0;
  border: 0;
  padding: 8px;
  font-size: 10px;
  letter-spacing: .14em;
  white-space: nowrap;
  transition: opacity .3s;
}
.intro[data-opening] .intro-cast,
.intro[data-opening] .intro-seam,
.intro[data-opening] button { opacity: 0; }
