/* ============================================================
   XO8 MEDIA - pulse.css   (PULSE OF GAIA case study)
   Page-specific sections for the Pulse of Gaia case. Built on the
   shared design tokens in base.css (warm black + cream + red,
   Anton / Archivo). Loaded only by pulse-of-gaia.html.
   ============================================================ */

/* ---- Pulse of Gaia brand fonts (per brand guidelines) - self-hosted ---- */
@font-face { font-family: 'Nebula';        src: url('../fonts/Nebula.ttf') format('truetype');       font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nebula Hollow'; src: url('../fonts/NebulaHollow.ttf') format('truetype'); font-weight: 400; font-display: swap; }

/* Brand typography applies to the festival content only (scoped to .pog), so the
   XO8 site chrome (nav logo) keeps Anton. Display = Nebula (primary brand font),
   body = Futura (brand secondary) with Jost as the free stand-in. */
.pog {
  --display: 'Nebula', 'Anton', sans-serif;
  --body: 'Jost', 'Archivo', sans-serif;
  font-family: var(--body);
}

/* local keyframes */
@keyframes pogGlow { 0%,100% { opacity:.45; } 50% { opacity:.85; } }
@keyframes pogEcg  { to { stroke-dashoffset:0; } }
@keyframes pogBlip { 0%,100% { transform:scale(1); opacity:.6; } 50% { transform:scale(1.9); opacity:1; } }
@keyframes pogCue  { 0% { transform:translateX(-50%) translateY(0); opacity:.2; } 50% { transform:translateX(-50%) translateY(9px); opacity:1; } 100% { transform:translateX(-50%) translateY(0); opacity:.2; } }

/* shared editorial image tone - keeps the warm Gaia stills cohesive with the site */
.pog img,
.pog .pog-bg { filter: saturate(0.92) contrast(1.04) brightness(0.9); }

/* ============================================================
   Hero - full-bleed reveal film + watch CTA
   ============================================================ */
.pog-hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 110px var(--pad) clamp(56px, 9vh, 96px);
  background: #080706;
}
.pog-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; z-index: 0; }
.pog-hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,11,10,0.55) 0%, rgba(12,11,10,0.12) 30%, rgba(12,11,10,0.20) 58%, rgba(12,11,10,0.90) 100%); }
.pog-hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 36%, rgba(168,52,43,0.16), rgba(168,52,43,0) 60%);
  mix-blend-mode: screen; animation: pogGlow 5s ease-in-out infinite; }

.pog-hero-corner { position: absolute; top: 96px; z-index: 3; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.28em; line-height: 1.7; }
.pog-hero-corner.left  { left: var(--pad); color: var(--red); }
.pog-hero-corner.right { right: var(--pad); text-align: right; color: var(--muted-2); }

.pog-hero-block { position: relative; z-index: 3; max-width: min(92vw, 1100px); }
.pog-hero-logo-wrap { margin: 0; }
.pog-hero-logo { display: block; width: min(680px, 82vw); height: auto; margin: 0 auto; }
.pog img.pog-hero-logo { filter: drop-shadow(0 8px 44px rgba(0,0,0,0.55)); }
.pog-hero-sub { margin-top: 18px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(16px, 2.4vw, 28px); letter-spacing: 0.04em; color: var(--muted-2); text-shadow: 0 2px 30px rgba(0,0,0,0.6); }

.pog-hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.pog-watch { display: inline-flex; align-items: center; gap: 13px; cursor: pointer; border: none;
  background: var(--red); color: var(--text);
  font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 999px; transition: background 0.3s, color 0.3s; }
.pog-watch:hover { background: var(--text); color: var(--bg); }
.pog-watch-ico { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); align-items: center; justify-content: center; }
.pog-watch-ico::before { content: ''; width: 0; height: 0; border-left: 7px solid var(--red); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.pog-hero-filmtag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; color: var(--muted-2); }

.pog-hero-foot { position: absolute; bottom: 30px; z-index: 3; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; color: var(--muted-2); }
.pog-hero-foot.left  { left: var(--pad); }
.pog-hero-foot.right { right: var(--pad); }
.pog-cue { position: absolute; bottom: 26px; left: 50%; z-index: 3; width: 1px; height: 34px; background: linear-gradient(var(--red), transparent); animation: pogCue 2.4s ease-in-out infinite; }

/* ============================================================
   Film lightbox
   ============================================================ */
.pog-film-modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vh, 48px); background: rgba(8,7,6,0.93); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.45s ease; }
.pog-film-close { position: absolute; top: clamp(16px, 4vh, 40px); right: clamp(16px, 5vw, 48px); width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(237,232,224,0.3); background: rgba(12,11,10,0.6); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.pog-film-frame { position: relative; height: min(86svh, 860px); aspect-ratio: 9 / 16; max-width: 92vw; overflow: hidden;
  background: var(--panel); box-shadow: 0 50px 140px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(168,52,43,0.30); }
.pog-film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pog-film-cap { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; color: rgba(237,232,224,0.85); text-shadow: 0 1px 6px rgba(0,0,0,0.8); pointer-events: none; }

/* poster image lightbox */
.pog-img-modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 5vh, 56px); background: rgba(8,7,6,0.94); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s ease; }
.pog-img-frame { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pog-img-frame img { max-height: 86vh; max-width: 94vw; width: auto; display: block; border-radius: 4px; filter: none;
  box-shadow: 0 50px 140px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(168,52,43,0.25); }
.pog-img-cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--muted-2); }

/* ============================================================
   Meta bar
   ============================================================ */
.pog-meta { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--panel); }
.pog-meta-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.pog-meta-cell { padding: 30px clamp(18px, 3vw, 40px); border-right: 1px solid var(--line); }
.pog-meta-cell:last-child { border-right: none; }
.pog-meta-key { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.26em; color: var(--red); }
.pog-meta-val { margin-top: 10px; font-size: 13px; letter-spacing: 0.06em; color: var(--text); }

/* ============================================================
   Brief
   ============================================================ */
.pog-brief { padding: clamp(80px, 14vh, 170px) var(--pad); }
.pog-brief-inner { max-width: 1180px; margin: 0 auto; }
.pog-brief .eyebrow { display: block; }
.pog-brief-title { margin-top: 26px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 6vw, 82px); line-height: 1.0; color: var(--text); max-width: 18ch; }
.pog-brief-cols { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px; max-width: 900px; }
.pog-brief-cols p { font-size: 14.5px; font-weight: 300; line-height: 1.9; color: var(--muted); }
.pog-brief-cols em { color: var(--red); font-style: normal; }
.pog-brief .pill-row { margin-top: 44px; }
.pog-brief .pill--accent { color: var(--red); border-color: rgba(168,52,43,0.4); }

/* ECG heartbeat divider */
.pog-ecg { background: var(--bg); display: flex; justify-content: center; padding: 8px 0 40px; }
.pog-ecg path { animation: pogEcg 2.6s ease-out forwards; }
.pog-ecg circle { transform-origin: 106px 20px; animation: pogBlip 1.6s ease-in-out infinite; }

/* ============================================================
   Title card - full-bleed concept poster
   ============================================================ */
.pog-titlecard { position: relative; height: 100svh; overflow: hidden; background: #080706; }
.pog-titlecard .pog-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.pog-titlecard-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,10,0.25), rgba(12,11,10,0) 30%, rgba(12,11,10,0) 68%, rgba(12,11,10,0.65)); }
.pog-titlecard-body { position: absolute; left: clamp(20px, 6vw, 90px); bottom: clamp(40px, 7vh, 90px); max-width: 760px; }
.pog-titlecard-body .eyebrow { display: block; margin-bottom: 18px; }
.pog-titlecard-line { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 5vw, 70px); line-height: 1.0; color: var(--text); text-shadow: 0 2px 40px rgba(0,0,0,0.6); }

/* ============================================================
   Narrative - alternating reveal beats
   ============================================================ */
.pog-narrative { background: var(--bg); padding: clamp(70px, 12vh, 150px) 0 0; }
.pog-narrative-head { text-align: center; padding: 0 24px; }
.pog-narrative-head .eyebrow { display: block; }
.pog-narrative-title { margin-top: 22px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 6vw, 80px); line-height: 1; color: var(--text); }
.pog-narrative-intro { margin: 22px auto 0; max-width: 60ch; font-size: 14px; line-height: 1.85; color: var(--muted); font-weight: 300; }
/* scroll-driven pinned sequence: images cross-fade one after another */
.pog-seq { position: relative; margin-top: clamp(50px, 8vh, 90px); height: 520vh; }
.pog-seq-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }
.pog-seq-slide { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity 0.8s ease; }
.pog-seq-slide.is-active { opacity: 1; z-index: 2; }
.pog-seq-slide .pog-bg { position: absolute; inset: 0; background-size: cover; transform: scale(1.04); transition: transform 7s linear; }
.pog-seq-slide.is-active .pog-bg { transform: scale(1.13); }
.pog-seq-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,10,0.88) 0%, rgba(12,11,10,0.45) 42%, rgba(12,11,10,0.12) 78%, rgba(12,11,10,0) 100%); }
.pog-seq-body { position: absolute; left: var(--pad); top: 50%; max-width: 560px; transform: translateY(calc(-50% + 26px)); opacity: 0; transition: transform 0.9s var(--expo), opacity 0.9s ease; transition-delay: 0.12s; }
.pog-seq-slide.is-active .pog-seq-body { transform: translateY(-50%); opacity: 1; }
.pog-seq-dots { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 12px; }
.pog-seq-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(237,232,224,0.25); transition: background 0.35s, transform 0.35s; }
.pog-seq-dot.is-active { background: var(--red); transform: scale(1.35); }
@media (max-width: 760px) {
  .pog-seq-body { max-width: none; right: var(--pad); }
  .pog-seq-dots { display: none; }
}
.pog-beat-no { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--red); opacity: 0.9; }
.pog-beat-rule { margin-top: 16px; width: 34px; height: 2px; background: var(--red); }
.pog-beat-text { margin-top: 22px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 4vw, 52px); line-height: 1.08; color: var(--text); text-shadow: 0 2px 40px rgba(0,0,0,0.7); }
.pog-beat-sub { margin-top: 18px; font-size: 13px; letter-spacing: 0.02em; line-height: 1.8; color: var(--muted-2); max-width: 42ch; font-weight: 300; }

/* vanish */
.pog-vanish { background: var(--bg); text-align: center; padding: clamp(90px, 16vh, 200px) 24px; }
.pog-vanish-italic { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(18px, 3vw, 32px); color: var(--muted); }
.pog-vanish-main { margin-top: 10px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 4.4vw, 58px); line-height: 1.05; color: var(--text); }
.pog-vanish-tag { margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: var(--red); }

/* ============================================================
   Moodboard - 4 launch keys over cycling Gaia portraits
   ============================================================ */
.pog-mood { position: relative; overflow: hidden; background: var(--bg); padding: clamp(80px, 14vh, 170px) clamp(20px, 6vw, 90px); }
.pog-mood-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pog-mood-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.9s ease-in-out; will-change: opacity; }
.pog-mood-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; will-change: transform; }
.pog-mood-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,11,10,0.9), rgba(12,11,10,0.74) 44%, rgba(12,11,10,0.93)); }
.pog-mood-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; background: rgba(237,232,224,0.1); }
.pog-mood-progress > div { height: 100%; width: 0; background: var(--red); }
.pog-mood-head { position: relative; z-index: 2; text-align: center; }
.pog-mood-head .eyebrow { display: block; }
.pog-mood-title { margin-top: 20px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 6vw, 82px); line-height: 1; color: var(--text); }
.pog-mood-lead { margin: 20px auto 0; max-width: 58ch; font-size: 14px; line-height: 1.8; color: var(--muted); font-weight: 300; }
.pog-mood-grid { position: relative; z-index: 2; max-width: 1180px; margin: clamp(46px, 7vh, 84px) auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(18px, 3vw, 34px); }
.pog-mood-card { margin: 0; }
.pog-mood-frame { display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; cursor: pointer; position: relative; overflow: hidden; background: var(--panel); box-shadow: 0 30px 70px -34px rgba(0,0,0,0.9); }
.pog-mood-frame img { width: 100%; display: block; transition: transform 1.1s var(--expo); }
.pog-mood-card:hover .pog-mood-frame img { transform: scale(1.05); }
/* "expand to view" affordance */
.pog-mood-frame::after { content: '⤢'; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(12,11,10,0.55); color: var(--text); font-size: 15px; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(2px); pointer-events: none; }
.pog-mood-frame:hover::after, .pog-mood-frame:focus-visible::after { opacity: 1; }
.pog-mood-cap { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; }
.pog-mood-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--red); }
.pog-mood-name { font-size: 12px; letter-spacing: 0.14em; color: var(--muted-2); }

/* ============================================================
   Line-up
   ============================================================ */
.pog-lineup { position: relative; overflow: hidden; background: var(--bg); padding: clamp(70px, 12vh, 150px) clamp(20px, 6vw, 90px); }
.pog-lineup .pog-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.16; }
.pog-lineup-veil { position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(12,11,10,0.6), var(--bg)); }
.pog-lineup-head { position: relative; max-width: 1100px; margin: 0 auto; text-align: center; }
.pog-lineup-head .eyebrow { display: block; }
.pog-lineup-headline { margin-top: 16px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 8vw, 110px); line-height: 0.92; color: var(--text); }
.pog-lineup-headline span { font-size: 0.4em; vertical-align: middle; letter-spacing: 0.2em; color: var(--red); }
.pog-lineup-sub { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted-2); }
.pog-stages { position: relative; max-width: 1100px; margin: clamp(46px, 7vh, 80px) auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 72px); }
.pog-stage-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; color: var(--red); padding-bottom: 14px; border-bottom: 1px solid rgba(168,52,43,0.35); }
.pog-act { display: flex; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pog-act-time { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--dim); min-width: 116px; }
.pog-act-name { font-size: 15px; letter-spacing: 0.06em; color: var(--text); }
.pog-lineup-note { position: relative; text-align: center; margin-top: 48px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--muted); }

/* ============================================================
   Purpose - re:wild
   ============================================================ */
.pog-purpose { background: var(--panel); padding: clamp(70px, 12vh, 150px) var(--pad); }
.pog-purpose-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(30px, 5vw, 72px); align-items: center; }
.pog-purpose .eyebrow { display: block; }
.pog-purpose-title { margin-top: 22px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.04; color: var(--text); }
.pog-purpose-aside { border-left: 1px solid rgba(168,52,43,0.4); padding-left: clamp(20px, 3vw, 40px); }
.pog-purpose-key { font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; color: var(--red); }
.pog-purpose-body { margin-top: 18px; font-size: 15px; line-height: 1.85; color: var(--muted); font-weight: 300; }
.pog-purpose-body strong { color: var(--red); font-weight: 600; }
.pog-partners { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--dim); }
.pog-partners .accent { color: var(--red); }

/* ============================================================
   Next case - ZAMNA logo
   ============================================================ */
.next-case-logo { display: block; height: clamp(34px, 5.5vw, 78px); width: auto; opacity: 0.72; transition: opacity 0.3s; }
.next-case:hover .next-case-logo { opacity: 1; }
.pog img.next-case-logo { filter: none; }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 760px) {
  .pog-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .pog-meta-cell:nth-child(2) { border-right: none; }
  .pog-meta-cell:nth-child(1), .pog-meta-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pog-hero-corner { display: none; }
}
