/* ============================================================
   layout.css — scenes, backgrounds, global scaffolding
   ============================================================ */

/* flag stripe (caps top + bottom of the document) ------------- */
.flag-stripe{
  height:var(--stripe);
  background:linear-gradient(
    to bottom,
    var(--red) 0 33.33%,
    var(--white) 33.33% 66.66%,
    var(--blue) 66.66% 100%
  );
  position:relative; z-index:50;
}
.flag-stripe--bottom{ z-index:1; }

/* top progress bar ------------------------------------------- */
.progress{
  position:fixed; top:0; left:0; right:0; height:4px; z-index:120;
  background:transparent; pointer-events:none;
}
.progress__fill{
  height:100%; width:0%;
  background:var(--orange);
  box-shadow:0 0 12px rgba(255,98,0,.6);
  transform-origin:left;
}

/* dot nav ---------------------------------------------------- */
.dotnav{
  position:fixed; right:clamp(10px,2vw,26px); top:50%;
  transform:translateY(-50%); z-index:110;
  display:flex; flex-direction:column; gap:14px;
}
.dotnav button{
  width:11px; height:11px; border-radius:50%; padding:0;
  border:1.5px solid rgba(150,160,180,.7); background:transparent;
  transition:all .3s var(--ease); position:relative;
}
.dotnav button::after{
  content:attr(data-label);
  position:absolute; right:22px; top:50%; transform:translateY(-50%) translateX(6px);
  background:var(--ink); color:#fff; font-size:11px; font-weight:700;
  padding:4px 9px; border-radius:6px; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity .2s var(--ease),transform .2s var(--ease);
}
.dotnav button:hover::after{ opacity:1; transform:translateY(-50%) translateX(0); }
.dotnav button[aria-current="true"]{
  background:var(--orange); border-color:var(--orange); transform:scale(1.25);
}
@media(max-width:760px){ .dotnav{ display:none; } }

/* scenes ----------------------------------------------------- */
.scene{
  position:relative;
  min-height:100vh;
  display:flex; flex-direction:column; justify-content:center;
  padding:clamp(64px,10vh,120px) var(--pad);
  overflow:hidden;
}
.scene__inner{ width:100%; max-width:var(--maxw); margin:0 auto; }

.scene[data-bg="navy"]{ background:var(--navy); color:#D6DEEC; }
.scene[data-bg="navy"] .h2{ color:#fff; }
.scene[data-bg="paper"]{ background:var(--paper); color:var(--body); }
.scene[data-bg="white"]{ background:var(--white); color:var(--body); }

/* hero ------------------------------------------------------- */
.hero{ text-align:left; }
.hero__bg{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  display:flex; align-items:flex-end; justify-content:center;
  opacity:.5;
}
.hero__bg svg{ width:min(140%,1400px); height:auto; }
.hero__inner{ position:relative; z-index:2; }

.hero__title{
  font-size:var(--fs-hero); font-weight:800; line-height:.96;
  letter-spacing:-.02em; color:#fff; text-transform:uppercase;
  margin:0 0 .35em;
}
.hero__title .word{ display:inline-block; }
.hero__title .line{ display:block; overflow:hidden; }
.hero__title .accent{ color:var(--orange); }
.hero__sub{ max-width:46ch; font-size:clamp(18px,2.4vw,24px); color:#AEBAD2; }
.hero__meta{ margin-top:.8em; font-size:14px; color:#8593B0; letter-spacing:.02em; }

.cast{ margin-top:clamp(30px,5vh,56px); }
.cast__label{
  font-size:12px; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:#7C8AAA; margin-bottom:14px;
}
.cast__row{ display:flex; flex-wrap:wrap; gap:9px; }

.scrollcue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  z-index:3; color:#8593B0; display:flex; flex-direction:column;
  align-items:center; gap:6px; font-size:11px; letter-spacing:.18em;
  text-transform:uppercase;
}
.scrollcue svg{ width:22px; height:22px; }

/* generic scene header --------------------------------------- */
.scene__head{ margin-bottom:clamp(28px,5vh,52px); max-width:64ch; }
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%;
  font-weight:800; font-size:17px; color:#fff;
  margin-bottom:18px;
}
.scene__head .h2{ margin-top:.1em; }
.scene__head .lead{ margin-top:.7em; }

/* utility */
.grid{ display:grid; gap:clamp(14px,2vw,22px); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }
@media(max-width:760px){
  .cols-3,.cols-4{ grid-template-columns:1fr; }
}
