/* Perslis Defense section pages (defense/defend, offense, robotics, evolution, timeline). */
.sect-video { margin: 0 0 18px; }
.sect-video video { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid #1d2a3d; background: #000; }
.sect-video figcaption { font-size: .92rem; line-height: 1.55; color: #aab6c8; margin-top: 8px; }
.band ol li, .band ul li { margin-bottom: 8px; line-height: 1.65; }
.restab td.pos { color: #6fe3a8; }
.restab td.neg { color: #ff8a8a; }
.band > ol, .band > ul { text-align: left; max-width: 820px; margin: 0 auto 18px; }
/* the live 3D hero: the canvas fills the hero band behind the text */
.d3-hero { position: relative; overflow: hidden; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
.d3-hero > :not(.d3-stage) { position: relative; z-index: 1; }
.d3-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.d3-stage canvas { width: 100%; height: 100%; display: block; }
.d3-stage.d3-off { display: none; }
.d3-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(4,6,11,.25) 0%, rgba(4,6,11,.72) 70%); }
@media (max-width: 700px) { .d3-hero { min-height: 64vh; } }
.sect-video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .sect-video-pair { grid-template-columns: 1fr; } }
/* beat peel-site.css `.peel-site .peel-hero > :not(.peel-hero-fx) { position: relative }`, which otherwise puts
   the canvas in the flow and pushes the hero text below it */
.peel-site .peel-hero.d3-hero > .d3-stage { position: absolute; inset: 0; z-index: 0; }
.peel-site .peel-hero.d3-hero > :not(.d3-stage) { position: relative; z-index: 1; }
/* keep the footage in the first view: a shorter 3D hero (timeline sets its own) */
.peel-site .peel-hero.d3-hero { min-height: 62vh; }
/* wide footage: breaks out of the text column */
.band > .sect-wide { width: min(1400px, calc(100vw - 32px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
/* magnifying glass over recorded consoles (assets/defense3d/magnifier.js) */
.mag-box { position: relative; }
.mag-wrap video[data-magnify] { cursor: zoom-in; }
.mag-lens { position: absolute; left: 0; top: 0; pointer-events: none; border-radius: 12px; opacity: 0; transition: opacity .15s;
  border: 2px solid rgba(125, 255, 178, .85); box-shadow: 0 0 0 6px rgba(4, 6, 11, .55), 0 18px 48px rgba(0, 0, 0, .6), 0 0 28px rgba(125, 255, 178, .25); }
.mag-lens.on { opacity: 1; }
@media (hover: none) { .mag-wrap video[data-magnify] { cursor: default; } }

/* ---- split hero (Defense, Offense, Evolution, Connection): the Timeline layout. The words hold the left
   column, the 3D scene owns the right; nothing is drawn under the text. Stacks on phones. */
.peel-site .peel-hero.d3-hero.d3-split { max-width: none; min-height: min(80vh, 820px);
  padding-left: max(28px, calc((100vw - 1064px) / 2)); padding-right: max(28px, calc((100vw - 1064px) / 2)); }
.peel-site .peel-hero.d3-hero.d3-split::after {
  background: linear-gradient(180deg, transparent 0%, transparent 82%, #04060b 100%); }
@media (min-width: 1001px) {
  .peel-site .peel-hero.d3-hero.d3-split { align-items: flex-start; text-align: left; }
  .peel-site .peel-hero.d3-hero.d3-split > .d3-stage { position: absolute; top: 0; bottom: 0; left: 44%; right: 0; inset: 0 0 0 44%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%); }
  .peel-site .peel-hero.d3-hero.d3-split > :not(.d3-stage) { max-width: 44%; margin-left: 0; margin-right: 0; }
  .peel-site .peel-hero.d3-hero.d3-split h1 { text-align: left; font-size: clamp(2.8rem, 4.6vw, 4.4rem); line-height: 1.03; }
  .peel-site .peel-hero.d3-hero.d3-split .lede { text-align: left; font-size: 1.08rem; }
}
@media (max-width: 1000px) {
  .peel-site .peel-hero.d3-hero.d3-split { min-height: 0; }
  .peel-site .peel-hero.d3-hero.d3-split > .d3-stage { position: relative; inset: auto; order: 99; width: 100%; height: 62vw;
    min-height: 260px; max-height: 460px; margin-top: 18px; -webkit-mask-image: none; mask-image: none; }
}
.band > ol.feed-steps { max-width: 820px; margin: 18px auto; text-align: left; }
.band > ol.feed-steps li { margin-bottom: 12px; line-height: 1.65; }
.band > .sect-legacy { max-width: 960px; margin-left: auto; margin-right: auto; }
.sect-legacy video { image-rendering: auto; }
/* History pages */
.hist-q { font-size: 1.35rem; color: #eef3fb; font-weight: 600; }
.hist-fact { border-left: 3px solid #7dffb2; padding-left: 14px; text-align: left; max-width: 820px; margin: 0 auto; color: #d6deea; }
.band > ul.hist-added { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; }
.band > ul.hist-added li { padding: 6px 12px; border: 1px solid rgba(168, 140, 255, .5); border-radius: 999px; color: #d9ccff; font-size: .9rem; }
.hist-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 26px; }
.band > ol.hist-list { list-style: none; padding: 0; max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.hist-row a, .hist-row .hist-card { display: grid; grid-template-columns: 150px 1fr; gap: 4px 18px; padding: 16px 20px; border: 1px solid rgba(155, 180, 210, .18);
  border-radius: 14px; background: rgba(10, 15, 26, .6); text-align: left; transition: border-color .2s, box-shadow .2s; }
.hist-row .hist-card:hover { border-color: #7dffb2; box-shadow: 0 0 0 1px #7dffb2, 0 0 22px rgba(125, 255, 178, .35); }
.hist-when { grid-row: 1 / 3; font: 600 .78rem ui-monospace, Menlo, monospace; letter-spacing: .1em; color: #63e3ff; padding-top: 3px; }
.hist-title { color: #eef3fb; font-weight: 700; font-size: 1.08rem; }
.hist-sub { color: #aab6c8; font-size: .93rem; }
@media (max-width: 640px) { .hist-row a, .hist-row .hist-card { grid-template-columns: 1fr; } .hist-when { grid-row: auto; } }
