/* ================================================================
   NUMENHAUS LIVE — page styles
   Plaster + ink + one image; gold only at micro scale.
================================================================ */

/* ── hero ──────────────────────────────────────────────────── */
.live-hero {
  position: relative;
  height: 100vh;
  background: var(--green);
  overflow: hidden;
}
.live-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.live-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,22,30,.34) 0%, rgba(15,22,30,.06) 40%, rgba(15,22,30,.52) 100%);
}
.lh-inner {
  position: absolute;
  left: clamp(20px, 3vw, 44px);
  bottom: clamp(32px, 7vh, 72px);
  right: clamp(20px, 3vw, 44px);
  z-index: 2;
  color: #fff;
}
.lh-eyebrow {
  font-size: var(--t-label);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.lh-h1 {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(44px, 7.5vw, 130px);
  line-height: .94;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 12ch;
  margin-bottom: 26px;
}
.lh-sub {
  font-family: var(--f-ui);
  font-size: var(--t-body);
  letter-spacing: .06em;
  line-height: 1.9;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  max-width: 52ch;
  margin-bottom: 36px;
}
.lh-cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.pill.gold { background: var(--gold); color: #fff; }
.pill.gold:hover { background: var(--ink); color: var(--bg); }
.lh-secondary {
  font-size: var(--t-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 3px;
  transition: color .3s, border-color .3s;
}
.lh-secondary:hover { color: #fff; border-color: var(--gold); }

/* ── how it works ──────────────────────────────────────────── */
.live-how {
  padding: 18vh clamp(20px, 3vw, 44px);
  background: var(--bg);
}
.lhow-eyebrow {
  font-size: var(--t-label);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 8vh;
}
.lhow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
.lhow-step { border-top: 1px solid var(--ink-12); padding-top: 26px; }
.lhow-num {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 18px;
}
.lhow-h {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 30px);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.lhow-p {
  font-family: var(--f-ui);
  font-size: var(--t-body);
  letter-spacing: .05em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--ink-70);
}

/* ── experience cards ──────────────────────────────────────── */
.live-exp {
  padding: 4vh clamp(20px, 3vw, 44px) 16vh;
  background: var(--bg);
}
.lexp-head {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 84px);
  letter-spacing: -.02em;
  line-height: .95;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7vh;
}
.lexp-grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.exp-card {
  position: relative;
  overflow: hidden;
  background: var(--green);
  transition: outline-color .5s;
  outline: 1px solid transparent;
  outline-offset: 6px;
}
.exp-card.hl { outline-color: var(--gold); }
.exp-frame {
  position: relative;
  aspect-ratio: 16 / 8;
  background: #0c110f;
  overflow: hidden;
}
.exp-card.playing .exp-frame { aspect-ratio: 16 / 9; }   /* proper stage while live */
.exp-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: .92;
  transition: transform 1.4s var(--ease-expo), opacity .5s;
}
.exp-card:hover .exp-frame img { transform: scale(1.03); opacity: 1; }
.exp-card.playing .exp-frame img { display: none; }

/* the live stream fills the frame; loading hint sits behind it */
.exp-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 2;
}
.exp-frame:fullscreen { aspect-ratio: auto; }
.exp-frame:fullscreen iframe { position: fixed; inset: 0; }
.exp-loading {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--bg);
}
.exp-loading p {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 24px);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.exp-loading span {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(232,230,225,.5);
}

/* floating controls — fullscreen / new tab / end */
.exp-ctrl {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.ec-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(232,230,225,.35);
  border-radius: 50%;
  background: rgba(12,17,15,.55);
  color: var(--bg);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.ec-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* meta bar steps aside while the stream is live */
.exp-card.playing .exp-meta { display: none; }
.exp-meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 36px);
  background: linear-gradient(180deg, transparent, rgba(15,22,30,.62));
  color: #fff;
}
.exp-title {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 44px);
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: 1;
}
.exp-status {
  display: block;
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 10px;
}

/* ── developers ────────────────────────────────────────────── */
.live-dev {
  background: var(--green);
  color: var(--bg);
  padding: 18vh clamp(20px, 3vw, 44px);
}
.ldev-h {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 104px);
  letter-spacing: -.02em;
  line-height: .95;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: 9vh;
}
.ldev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 3vw, 56px);
  margin-bottom: 10vh;
}
.ldev-item { border-top: 1px solid rgba(232,230,225,.16); padding-top: 24px; }
.ldev-item h3 {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 24px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.ldev-item p {
  font-family: var(--f-ui);
  font-size: var(--t-body);
  letter-spacing: .05em;
  line-height: 1.9;
  text-transform: uppercase;
  color: rgba(232,230,225,.6);
}

/* ── tech note ─────────────────────────────────────────────── */
.live-note {
  background: var(--bg);
  padding: 9vh clamp(20px, 3vw, 44px);
  text-align: center;
  font-family: var(--f-ui);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ── stream overlay ────────────────────────────────────────── */
#lv-overlay {
  position: fixed; inset: 0;
  z-index: 9990;
  background: #0c110f;
  display: none;
  opacity: 0;
  transition: opacity .45s var(--ease-expo);
}
#lv-overlay.open { display: block; }
#lv-overlay.shown { opacity: 1; }
#lv-overlay iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 1;                    /* above the loading placeholder once it paints */
}

/* loading placeholder — sits behind the iframe; the iframe covers it on load */
#lv-load {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  color: var(--bg);
  background: #0c110f;
}
#lv-load.gone { display: none; }
.lv-load-t {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.lv-load-s {
  font-family: var(--f-ui);
  font-size: var(--t-body);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(232,230,225,.55);
}
#lv-newtab {
  margin-top: 12px;
  font-family: var(--f-ui);
  font-size: var(--t-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.lv-brand {
  position: absolute;
  top: 18px; left: clamp(20px, 3vw, 44px);
  z-index: 2;
  font-family: 'Aristotelica', var(--f-disp);
  font-size: 15px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(232,230,225,.85);
  pointer-events: none;
}
/* persistent top-right bar — always above the iframe so a blank/refused
   frame is never a dead end */
.lv-bar {
  position: absolute;
  top: 14px; right: clamp(16px, 2.4vw, 36px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lv-tab-link {
  font-family: var(--f-ui);
  font-size: var(--t-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  background: rgba(12,17,15,.5);
  border: 1px solid rgba(232,230,225,.35);
  border-radius: 999px;
  padding: 11px 18px;
  transition: background .3s, color .3s;
}
.lv-tab-link:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
#lv-close {
  width: 44px; height: 44px;
  border: 1px solid rgba(232,230,225,.35);
  border-radius: 50%;
  background: rgba(12,17,15,.5);
  color: var(--bg);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
#lv-close:hover { background: var(--gold); transform: rotate(90deg); }
@media (max-width: 560px) {
  .lv-tab-link { padding: 9px 13px; letter-spacing: .06em; }
  .lv-bar { gap: 10px; }
}

/* ── mobile ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lhow-grid { grid-template-columns: 1fr; gap: 34px; }
  .ldev-grid { grid-template-columns: 1fr; gap: 28px; }
  .exp-frame { aspect-ratio: 4 / 3; }
  .exp-card.playing .exp-frame { aspect-ratio: 4 / 3; }
  .exp-ctrl { top: 10px; right: 10px; }
  .exp-meta { flex-direction: column; align-items: flex-start; }
  .lh-sub { font-size: 12px; max-width: 100%; }
  .lh-cta-row { gap: 18px; }
}
