/* Scene 07 overrides. Owned by the scene-07 agent. Base styles live in index.html; rules here win. */
#scene-7 .state-layer.is-on { height: 100%; }

/* ---- State 0: cover, full bleed photo, kicker plus big title only ---- */
#scene-7 .s07-cover { position: relative; width: 100%; height: 100%; overflow: hidden; }
#scene-7 .s07-bg { position: absolute; inset: 0; }
#scene-7 .s07-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 32%;
  display: block;
}
#scene-7 .s07-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7, 9, 14, 0.30) 0%,
    rgba(7, 9, 14, 0.18) 42%,
    rgba(7, 9, 14, 0.72) 78%,
    rgba(7, 9, 14, 0.92) 100%);
}
#scene-7 .s07-cover-copy {
  position: absolute;
  left: 84px;
  right: 84px;
  bottom: 84px;
  max-width: 1180px;
}
#scene-7 .s07-cover-copy .kicker { font-size: 17px; margin-bottom: 16px; }
#scene-7 .s07-cover-copy .headline {
  font-size: 76px;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

/* ---- States 1 and 2: slim banner, header, girder track ---- */
#scene-7 .s07-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px 60px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
#scene-7 .s07-banner {
  flex: 0 0 108px;
  height: 108px;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.16);
}
#scene-7 .s07-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
#scene-7 .s07-head .kicker { font-size: 14px; margin-bottom: 8px; }
#scene-7 .s07-head .headline { font-size: 40px; line-height: 1.1; margin: 0 0 8px; }
#scene-7 .s07-count {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Connected girder track: one steel beam with a fill that draws left to right */
#scene-7 .s07-beam {
  position: relative;
  flex: 0 0 10px;
  height: 10px;
  margin: 18px 0 0;
  background: #1a2130;
  border: 1px solid rgba(244, 240, 232, 0.16);
  overflow: hidden;
}
#scene-7 .s07-beam-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(180deg, #3d4659 0%, #2b3346 60%, #202839 100%);
  animation: s07draw 1.2s ease-out both;
}
#scene-7 .s07-beam::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(244, 240, 232, 0.22);
}
@keyframes s07draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

#scene-7 .s07-track {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  align-items: start;
  flex: 0 0 auto;
}
#scene-7 .s07-track.cols-4 { grid-template-columns: repeat(4, 1fr); }
#scene-7 .s07-track.cols-7 { grid-template-columns: repeat(7, 1fr); }

#scene-7 .s07-node {
  position: relative;
  background: rgba(20, 28, 43, 0.92);
  border: 1px solid rgba(244, 240, 232, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#scene-7 .s07-node-in {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
#scene-7 .s07-node.is-dim .s07-node-in { opacity: 0.4; }

/* Connector stub from the beam to each card: part of one path */
#scene-7 .s07-node::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 50%;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
  background: rgba(244, 240, 232, 0.4);
}
#scene-7 .s07-node::after {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: #2b3346;
  border: 1px solid rgba(244, 240, 232, 0.55);
}

#scene-7 .s07-node .num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 8px;
}
#scene-7 .s07-track.cols-4 .s07-node h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 12px;
}
#scene-7 .s07-track.cols-4 .s07-node p { font-size: 17px; line-height: 1.45; color: var(--muted); margin: 0; }
#scene-7 .s07-track.cols-7 .s07-node h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 10px;
  min-height: 44px;
}
#scene-7 .s07-track.cols-7 .s07-node p { font-size: 14px; line-height: 1.42; color: var(--muted); margin: 0; }
