/* =============================================================
   HZL Microsite — Strategic Priorities · full-screen details drawer
   Dark-mode variant for the Cinematic home page.

   This is a 1:1 port of the Energy-Saver drawer (index1.html) — same
   fonts, sizes, spacing and layout — re-skinned dark. To keep parity
   it re-declares the Energy-Saver type tokens locally so the drawer
   renders identically regardless of the cinematic page's own fonts.
   ============================================================= */

.sp-cine-drawer {
  /* Energy-Saver type tokens — scoped to the drawer only */
  --sp-sans:    'proxima-nova', 'Mulish', system-ui, sans-serif;
  --sp-display: 'League Gothic', 'proxima-nova', sans-serif;
}

/* ── Drawer shell ───────────────────────────────────────────── */
.sp-cine-drawer {
  position: fixed; inset: 0; z-index: 3000;
  background: #040214;
  color: var(--on-dark, #eef2f6);
  transform: translateY(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.72s cubic-bezier(0.16,1,0.3,1),
              opacity 0.45s ease,
              visibility 0s linear 0.72s;
}
.sp-cine-drawer.is-open {
  transform: translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform 0.72s cubic-bezier(0.16,1,0.3,1),
              opacity 0.45s ease,
              visibility 0s;
}

/* Brand gradient hairline along the top edge */
.sp-cine-drawer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #0060a3 0%, #4fe0cf 35%, #7fb942 70%, #c9a24b 100%);
  z-index: 2;
}

/* Scroll container — native overflow scroll, exactly like Energy-Saver.
   data-lenis-prevent (on the element) stops Lenis from hijacking wheel. */
.sp-cine-drawer .perf-drawer-scroll {
  position: relative; z-index: 1;
  height: 100%; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.sp-cine-drawer .pd-inner {
  max-width: 1320px; margin: 0 auto;
  padding: clamp(64px,9vh,108px) clamp(22px,6vw,80px) clamp(96px,14vh,150px);
}

/* ── Header ─────────────────────────────────────────────────── */
.sp-cine-drawer .pd-eyebrow {
  font-family: var(--sp-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #7fb942; margin: 0 0 clamp(22px,3vh,32px);
}
.sp-cine-drawer .pd-title {
  font-family: var(--sp-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px,4.4vw,60px); line-height: 1.02; letter-spacing: 0.01em;
  margin: 0 0 18px;
  background: linear-gradient(100deg, #4fe0cf 0%, #1fa6de 46%, #7fb942 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sp-cine-drawer .pd-intro {
  font-family: var(--sp-display); font-weight: 400;   /* League Gothic — condensed */
  font-size: 30px; line-height: 1.3; letter-spacing: 0.01em;
  color: #fff; text-transform: uppercase;
  width: 100vw; position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw; margin-top: 0;
  margin-bottom: clamp(40px,6vh,68px); max-width: none;
  background: linear-gradient(100deg, #0060a3 0%, #16a89a 40%, #4a7d23 72%, #2f529f 100%);
  padding: clamp(30px,4.5vh,50px) max(clamp(22px,6vw,80px), calc((100vw - 1320px) / 2 + clamp(22px,6vw,80px)));
}

/* ── Per-priority block ─────────────────────────────────────── */
.sp-cine-drawer .pd-block {
  padding: clamp(28px,4vh,44px) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.sp-cine-drawer .id-block-head {
  display: flex; align-items: center; gap: clamp(14px,1.6vw,26px);
  margin-bottom: clamp(16px,2.4vh,28px);
}
.sp-cine-drawer .id-numwrap {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(7px,0.9vh,11px);
}
/* S# circle badge — glass on dark (Energy-Saver uses a solid circle) */
.sp-cine-drawer .id-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(50px,4vw,68px); height: clamp(50px,4vw,68px); border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(79,224,207,0.45);
  -webkit-text-fill-color: #4fe0cf; color: #4fe0cf;
  font-family: var(--sp-sans); font-weight: 700;
  font-size: clamp(19px,1.7vw,27px); letter-spacing: 0.02em;
}
.sp-cine-drawer .id-bar { display: none; }
.sp-cine-drawer .id-block-title {
  margin: 0; font-family: var(--sp-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px,2.5vw,42px); line-height: 0.95; letter-spacing: 0.01em;
  color: rgba(238,242,246,0.95);
}

.sp-cine-drawer .sp-divider {
  height: 3px; border-radius: 2px;
  margin: clamp(12px,1.8vh,20px) 0 clamp(18px,2.6vh,28px);
  background: linear-gradient(90deg, rgba(79,224,207,0.7), rgba(31,166,222,0.6) 45%, rgba(127,185,66,0.55));
}

/* ── Two-column body: actions (left) + info box (right) ─────── */
.sp-cine-drawer .sp-cols {
  display: grid;
  grid-template-columns: minmax(0,1fr) clamp(280px,33%,380px);
  gap: clamp(20px,2.8vw,46px); align-items: start;
}
.sp-cine-drawer .sp-col-main { min-width: 0; }
.sp-cine-drawer .sp-col-main .id-sub:first-of-type { margin-top: 0; }

.sp-cine-drawer .id-lead {
  margin: 0 0 clamp(10px,1.6vh,20px); font-family: var(--sp-sans);
  font-size: clamp(14px,1vw,16px); line-height: 1.55; color: rgba(238,242,246,0.82);
}
.sp-cine-drawer .id-lead .sym { font-family: system-ui, sans-serif; }

.sp-cine-drawer .id-sub { margin-top: clamp(16px,2.4vh,28px); }
.sp-cine-drawer .id-sub:first-of-type { margin-top: 0; }
.sp-cine-drawer .id-sub-head {
  margin: 0 0 clamp(10px,1.4vh,15px); font-family: var(--sp-sans); font-weight: 700;
  font-size: clamp(15px,1.2vw,19px); line-height: 1.25; color: #7fb942; letter-spacing: 0.005em;
}

.sp-cine-drawer .id-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: clamp(8px,1.2vh,13px);
}
.sp-cine-drawer .id-list > li {
  position: relative; padding-left: 20px;
  font-family: var(--sp-sans); font-size: clamp(13.5px,1vw,15.5px);
  line-height: 1.5; color: rgba(238,242,246,0.78);
}
.sp-cine-drawer .id-list > li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; background: #4fe0cf;
}
.sp-cine-drawer .id-list ul {
  list-style: none; margin: clamp(7px,1vh,11px) 0 2px; padding: 0;
  display: flex; flex-direction: column; gap: clamp(6px,0.9vh,10px);
}
.sp-cine-drawer .id-list ul > li {
  position: relative; padding-left: 18px;
  font-family: var(--sp-sans); font-size: clamp(13px,0.95vw,14.5px);
  line-height: 1.48; color: rgba(238,242,246,0.62);
}
.sp-cine-drawer .id-list ul > li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; background: #7fb942;
}

/* ── Info box: related risks / capitals / KPIs ─────────────── */
.sp-cine-drawer .sp-infobox {
  border: 1px solid rgba(255,255,255,0.16); border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.sp-cine-drawer .sp-infosec { padding: clamp(14px,1.5vw,20px); }
.sp-cine-drawer .sp-infosec + .sp-infosec { border-top: 1px solid rgba(255,255,255,0.12); }
.sp-cine-drawer .sp-infohead {
  margin: 0 0 clamp(10px,1.4vh,14px); font-family: var(--sp-sans); font-weight: 700;
  font-size: clamp(13px,1vw,15px); color: #4fe0cf;
}
.sp-cine-drawer .sp-risks { display: flex; flex-wrap: wrap; gap: clamp(8px,1vw,13px); }
.sp-cine-drawer .sp-risk {
  position: relative; display: inline-flex; align-items: flex-end; justify-content: center;
  width: clamp(42px,3.4vw,52px); height: clamp(37px,3vw,46px); padding-bottom: clamp(5px,0.7vh,8px);
  font-family: var(--sp-sans); font-weight: 700; font-size: clamp(11px,0.9vw,13px); color: #fff;
  background: linear-gradient(160deg, #F8A930, #ED8A1C);
  clip-path: polygon(50% 4%, 97% 97%, 3% 97%);
}
.sp-cine-drawer .sp-caps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px,1.5vw,20px); align-items: center; justify-items: center;
}
.sp-cine-drawer .sp-caps img {
  height: clamp(38px,3.2vw,48px); width: auto; display: block;
  /* green icons sit directly on the dark bg — no chip, like Energy-Saver mode */
}
.sp-cine-drawer .sp-infosec .id-list { gap: clamp(6px,0.9vh,10px); }
.sp-cine-drawer .sp-infosec .id-list > li { font-size: clamp(13px,0.95vw,14.5px); }

/* ── Way forward — full width timeline ─────────────────────── */
.sp-cine-drawer .sp-wf { margin-top: clamp(26px,3.6vh,46px); }
.sp-cine-drawer .sp-wf-head {
  margin: 0 0 clamp(14px,2vh,22px); font-family: var(--sp-display); font-weight: 400;
  text-transform: uppercase; font-size: clamp(18px,1.7vw,28px); letter-spacing: 0.02em; color: #4fe0cf;
}
.sp-cine-drawer .id-tl { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,34px); }
.sp-cine-drawer .id-tl-head { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(8px,1.2vh,12px); }
.sp-cine-drawer .id-tl-year {
  display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 6px;
  background: linear-gradient(110deg, #8CC63F 0%, #45B85C 38%, #1FA6DE 100%);
  color: #fff; font-family: var(--sp-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.03em;
}
.sp-cine-drawer .id-tl-head::after { content: ''; flex: 1; height: 2px; background: rgba(240,140,31,0.7); border-radius: 1px; }
.sp-cine-drawer .id-tl-theme {
  margin: 0 0 clamp(8px,1.2vh,12px); font-family: var(--sp-sans); font-weight: 700;
  font-size: clamp(15px,1.25vw,20px); line-height: 1.1; color: #7fb942;
}
.sp-cine-drawer .id-tl .id-list { gap: clamp(6px,0.9vh,10px); }
.sp-cine-drawer .id-tl .id-list > li { font-size: clamp(12.5px,0.92vw,14px); line-height: 1.45; color: rgba(238,242,246,0.74); }
.sp-cine-drawer .id-tl .id-list > li::before { top: 0.5em; width: 6px; height: 6px; }

/* ── Floating close pill ────────────────────────────────────── */
.sp-cine-close-pill {
  position: fixed; z-index: 3100; left: 50%; bottom: clamp(20px,4vh,40px);
  transform: translateX(-50%) translateY(22px);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sp-sans, 'proxima-nova', sans-serif); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(7,25,44,0.92); border-radius: 100px; cursor: pointer;
  padding: 13px 24px; box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease 0.15s, transform 0.55s cubic-bezier(0.16,1,0.3,1) 0.15s, background 0.2s ease, border-color 0.2s ease;
}
.sp-cine-close-pill.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.sp-cine-close-pill:hover { background: rgba(16,49,85,0.95); border-color: rgba(79,224,207,0.5); }
.sp-cine-close-pill:focus-visible { outline: 2px solid #4fe0cf; outline-offset: 3px; }
.sp-cine-close-pill .pill-x { font-size: 17px; line-height: 1; margin-top: -1px; }

/* ── Responsive (mirrors Energy-Saver breakpoints) ──────────── */
@media (max-width: 860px) { .sp-cine-drawer .sp-cols { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sp-cine-drawer .id-tl { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .sp-cine-drawer { transition: opacity 0.2s ease, visibility 0s; transform: none; }
  .sp-cine-drawer:not(.is-open) { transform: none; }
  .sp-cine-close-pill { transition: opacity 0.2s ease; transform: translateX(-50%); }
  .sp-cine-close-pill.is-visible { transform: translateX(-50%); }
}
