/* 需求简报滚动故事 */
.viewport { position: relative; }
.brief-rail { position: absolute; z-index: 1; pointer-events: none; --sn-red: #961e20; }
.brief-desk { position: sticky; }
.brief-canvas {
  --sheet: 1;
  --wire: 0;
  --junction: 0;
  --seal: 0;
  container-type: inline-size;
  isolation: isolate;
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 78;
  overflow: hidden;
  border: 1px solid #68534448;
  border-radius: 3px;
  background: radial-gradient(ellipse at 40% 25%,#f7efdf 0%,transparent 70%),#e6dbc9;
  color: #3e3329;
}
.brief-register { position: absolute; top: 3%; left: 4%; right: 4%; display: flex; justify-content: space-between; font: 600 clamp(10px,1.6cqw,14px)/1.3 "Be Vietnam Pro",sans-serif; letter-spacing: .08em; color: #6e5749; }
.brief-register > :last-child { font-variant-numeric: tabular-nums; }
.brief-paper {
  position: absolute; inset: 11% 17% 7.8%; border: 1px solid #b7a68c;
  border-top: 3px solid #842120; background: #fffaf0;
  box-shadow: 4px 4px 0 -1px #f5ecde,4px 4px 0 0 #b7a68c,0 16px 30px #60452a20;
  opacity: var(--sheet);
  transform: translateY(calc((1 - var(--sheet)) * -2.5%)) scaleX(calc(.97 + .03 * var(--sheet)));
}
.brief-heading { position: absolute; top: 0; left: 0; width: 48%; transform: translate(26cqw,13.6cqw); z-index: 1; }
.brief-heading strong { display: block; color: #4d2020; font-weight: 700; font-size: clamp(16px,4.6cqw,49px); line-height: 1.12; letter-spacing: -.04em; }
.brief-heading i { display: block; width: 85%; height: 1px; margin-top: 2cqw; background: #b58573; }
.brief-pieces { display: contents; }
.brief-piece {
  display: flex; align-items: center; gap: 1.4cqw; padding: 0 2.2cqw; position: absolute; top: 0; left: 0;
  width: 36%; height: 8cqw; border: 1px solid #ac9780; background: #fff9eb; color: #392821;
  font-size: clamp(13px,2.5cqw,25px); line-height: 1.15; font-weight: 600; white-space: nowrap;
}
.brief-piece > i { width: .8cqw; height: .8cqw; background: var(--sn-red); border-radius: 100%; flex: none; }
.brief-piece > b { flex: 1; height: 1px; background: #dacbb8; min-width: 1cqw; }
.brief-piece:nth-child(1) { transform: translate(28cqw,26cqw); }
.brief-piece:nth-child(2) { transform: translate(28cqw,35cqw); }
.brief-piece:nth-child(3) { transform: translate(28cqw,44cqw); }
.brief-piece:nth-child(4) { transform: translate(28cqw,53cqw); }
.brief-canvas:is([data-state="0"],[data-state="4"]) .brief-piece { background: transparent; border-color: transparent transparent #bead97; }
.brief-canvas[data-state="0"] .brief-piece > i { border: 1px solid #9a7466; width: 1.2cqw; height: 1.2cqw; background: transparent; border-radius: 0; }
.brief-canvas[data-state="1"] .brief-piece { box-shadow: 2px 4px 0 #b19b7f38; }
.brief-canvas[data-state="3"] .brief-piece:nth-child(-n+2) { border-color: #7d2b29; background: #7d2b29; color: #fff8e9; }
.brief-canvas[data-state="3"] .brief-piece:nth-child(-n+2) > i { background: #edc8a2; }
.brief-canvas[data-state="3"] .brief-piece:nth-child(-n+2) > b { opacity: .45; }
.brief-canvas[data-state="4"] .brief-piece > i { width: 1.5cqw; height: 2px; border-radius: 0; }
.brief-wires { position: absolute; opacity: var(--wire); width: 100%; height: 100%; inset: 0; overflow: visible; pointer-events: none; }
.brief-wires path { stroke: #952324; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.brief-junction {
  position: absolute; left: 41%; top: 48%; width: 18%; height: 6cqw; display: grid; place-items: center;
  color: #fff9eb; background: var(--sn-red); border-radius: 1px;
  opacity: var(--junction); font-size: clamp(10px,1.85cqw,17px); line-height: 1; white-space: nowrap;
}
.brief-signature { position: absolute; bottom: 12%; right: 24%; color: var(--sn-red); font-size: clamp(10px,1.65cqw,18px); border-bottom: 1px solid #a34043; letter-spacing: .06em; opacity: var(--seal); }

.brief-text { position: absolute; left: 933px; width: 407px; z-index: 3; }
.brief-steps { margin: 0; padding: 0; list-style: none; }
.brief-steps > li { display: flex; align-items: center; height: 340px; border-top: 1px solid #73544042; }
.brief-text .brief-steps > li:first-child, .brief-text .brief-steps > li:last-child { height: 578px; }
.brief-phase { --m-red: #961e20; display: flex; align-items: center; gap: 13px; margin: 0; color: var(--m-red); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .035em; }
.brief-phase span:first-child { font-variant-numeric: tabular-nums; padding-right: 13px; border-right: 1px solid #98756580; }
.brief-caption h3 { margin: 15px 0 0; font-size: 40px; line-height: 1.2; letter-spacing: -.045em; }
.brief-caption > p:last-child { max-width: 23em; margin: 15px 0 0; color: #65584d; font-size: 19px; line-height: 1.65; }
.brief-text .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* English & Vietnamese typography sizing inside NEX Brain storyboard canvas */
html[data-lang="en"] .brief-heading,
html[data-lang="vn"] .brief-heading { width: 52%; }
html[data-lang="en"] .brief-heading strong,
html[data-lang="vn"] .brief-heading strong { font-size: clamp(14px, 3.2cqw, 34px); letter-spacing: -.025em; }
html[data-lang="en"] .brief-piece,
html[data-lang="vn"] .brief-piece { width: 37%; font-size: clamp(10px, 1.65cqw, 16px); padding: 0 1.4cqw; gap: .9cqw; }
html[data-lang="en"] .brief-caption h3,
html[data-lang="vn"] .brief-caption h3 { font-size: 32px; letter-spacing: -.03em; }
html[data-lang="en"] .brief-caption > p:last-child,
html[data-lang="vn"] .brief-caption > p:last-child { font-size: 16.5px; line-height: 1.6; }
