/* Homepage dual-screen hero: visible to every visitor, before the standard hero content. */
#tv-stage.tv-stage{
  position:relative;
  isolation:isolate;
  padding:clamp(18px,2.2vw,34px) 0 clamp(42px,5vw,70px);
  overflow:hidden;
  background:
    radial-gradient(ellipse at 12% 4%,#622181 0,transparent 38%),
    radial-gradient(ellipse at 88% 0%,#785116 0,transparent 32%),
    linear-gradient(155deg,#08040e 0%,#1b0b28 52%,#09040f 100%);
}
#tv-stage.tv-stage:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  opacity:.42;
  background:linear-gradient(115deg,transparent 0 48%,#ffffff08 49%,transparent 50% 100%);
}
#tv-stage .tv-wrap{
  width:min(1680px,calc(100% - 48px));
  max-width:1680px;
}
#tv-stage .tv-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:clamp(12px,1.5vw,24px);
}
#tv-stage .tv-panel{
  min-width:0;
  overflow:hidden;
  border:1px solid #f6c94e99;
  border-radius:clamp(13px,1.4vw,22px);
  background:linear-gradient(145deg,#21102e,#08040e 72%);
  box-shadow:0 0 0 1px #a53de522,0 22px 64px #000a,0 0 36px #8e27c733;
  transition:transform .22s ease,box-shadow .22s ease;
}
#tv-stage .tv-panel:first-child{
  border-color:#bd67f0cc;
  box-shadow:0 0 0 1px #b64cff44,0 22px 64px #000a,0 0 38px #a42cff44;
}
#tv-stage .tv-panel:hover{
  transform:translateY(-3px);
  box-shadow:0 28px 76px #000c,0 0 42px #f6c94e33;
}
#tv-stage .tv-panel-head{
  min-height:64px;
  padding:13px clamp(13px,1.5vw,22px);
  background:linear-gradient(105deg,#321044,#160a20 68%,#281134);
  border-bottom:1px solid #f6c94e55;
}
#tv-stage .tv-panel:first-child .tv-panel-head{
  background:linear-gradient(105deg,#42145b,#190a25 72%,#2d123c);
}
#tv-stage .tv-panel-head strong{
  font-size:clamp(12px,1vw,16px);
  letter-spacing:.075em;
}
#tv-stage .tv-panel-head span{font-size:11px}
#tv-stage .tv-tag{
  padding:6px 10px;
  color:#f6c94e;
  border:1px solid #f6c94e99;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
#tv-stage .tv-screen{
  width:100%;
  aspect-ratio:16/9;
  min-height:0;
  background:#000;
}
#tv-stage .tv-screen:before{
  background:radial-gradient(circle at center,#1d1027,#000 72%);
}
#tv-stage .tv-screen iframe{
  width:100%;
  height:100%;
  object-fit:contain;
}
#tv-stage .tv-screen-overlay{
  background:linear-gradient(0deg,#08040dcc,#08040d24);
}
#tv-stage .tv-play-main{
  padding:13px 22px;
  font-size:13px;
  box-shadow:0 8px 28px #0008,0 0 18px #f6c94e33;
}
#tv-stage .tv-details{
  min-height:72px;
  padding:14px 18px 5px;
}
#tv-stage .tv-video-title{
  font-size:clamp(13px,1.05vw,16px);
}
#tv-stage .tv-video-meta{font-size:11px}
#tv-stage .tv-actions{
  padding:10px 18px 12px;
  gap:8px;
}
#tv-stage .tv-action{
  padding:9px 13px;
  font-size:11px;
}
#tv-stage .tv-status{
  min-height:16px;
  padding:0 18px 12px;
  font-size:10px;
}
#tv-stage .tv-head{
  display:block;
  max-width:1050px;
  margin:clamp(25px,3vw,42px) auto 0;
  text-align:center;
}
#tv-stage .tv-head>div:first-child{max-width:950px;margin:0 auto}
#tv-stage .tv-kicker{
  color:#f6c94e;
  font-size:11px;
  letter-spacing:.24em;
}
#tv-stage .tv-head h2{
  margin:8px 0 10px;
  color:#fff;
  font-size:clamp(34px,4.3vw,56px);
}
#tv-stage .tv-intro{
  max-width:880px;
  margin:0 auto;
  color:#e0d3e8;
  font-size:clamp(13px,1.15vw,16px);
  line-height:1.65;
}
#tv-stage .tv-layout-controls{
  justify-content:center;
  margin-top:20px;
  gap:9px;
}
#tv-stage .tv-layout-controls button{
  padding:10px 16px;
  font-size:11px;
  border-color:#8c62a0;
}
#tv-stage .tv-layout-controls button[aria-pressed=true]{
  background:linear-gradient(135deg,#f6c94e,#ffe6a0);
  border-color:#ffe08a;
  color:#241407;
}
#tv-stage .tv-footnote{
  max-width:1050px;
  margin:18px auto 0;
  color:#bcaac8;
  text-align:center;
  line-height:1.6;
}
@media(max-width:760px){
  #tv-stage .tv-wrap{width:calc(100% - 24px)}
  #tv-stage .tv-grid{grid-template-columns:1fr;gap:14px}
  #tv-stage .tv-panel-head{min-height:56px;padding:10px 13px}
  #tv-stage .tv-details{min-height:62px;padding:11px 13px 3px}
  #tv-stage .tv-actions{padding:9px 13px 10px}
  #tv-stage .tv-status{padding:0 13px 10px}
  #tv-stage .tv-head{margin-top:24px}
  #tv-stage .tv-layout-controls{gap:7px}
  #tv-stage .tv-layout-controls button{padding:9px 11px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  #tv-stage .tv-panel{transition:none}
  #tv-stage .tv-panel:hover{transform:none}
}


/* Immersive homepage mode: maximise the two video surfaces and minimise copy. */
#tv-stage.tv-stage{padding:8px 0 12px}
#tv-stage .tv-wrap{width:min(1760px,calc(100% - 28px))}
#tv-stage .tv-grid{gap:clamp(8px,1vw,16px)}
#tv-stage .tv-panel-head{
  min-height:38px;height:38px;box-sizing:border-box;display:flex;
  align-items:center;justify-content:space-between;gap:8px;padding:5px 14px;
  white-space:nowrap;
}
#tv-stage .tv-panel-head>div:first-child{
  min-width:0;display:flex;align-items:center;gap:0
}
#tv-stage .tv-panel-head strong{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:clamp(11px,.9vw,14px);letter-spacing:.06em
}
#tv-stage .tv-panel-head span:not(.tv-tag),#tv-stage .tv-panel-head .tv-tag{display:none}
#tv-stage .tv-screen{aspect-ratio:4/3}
#tv-stage .tv-details,#tv-stage .tv-actions,#tv-stage .tv-status,
#tv-stage .tv-head,#tv-stage .tv-footnote{display:none!important}
#tv-stage .tv-panel{border-radius:12px}
#tv-stage .tv-panel:hover{transform:none}
@media(max-width:760px){
  #tv-stage.tv-stage{padding:6px 0 10px}
  #tv-stage .tv-wrap{width:calc(100% - 16px)}
  #tv-stage .tv-grid{gap:10px}
  #tv-stage .tv-panel-head{height:34px;min-height:34px;padding:4px 10px}
  #tv-stage .tv-screen{aspect-ratio:16/9}
}


/* Single-channel homepage: use the entire available desktop width. */
#tv-stage .tv-grid{grid-template-columns:minmax(0,1fr)!important;}
#tv-stage .tv-panel{grid-column:1/-1;width:100%;max-width:none;}
#tv-stage .tv-screen{width:100%;aspect-ratio:16/9!important;}
@media(max-width:760px){
  #tv-stage .tv-grid{grid-template-columns:minmax(0,1fr)!important;}
  #tv-stage .tv-screen{aspect-ratio:16/9!important;}
}


/* First-screen channel experience; navigation begins on screen two. */
#tv-stage.tv-stage{
  min-height:calc(100svh - 58px);
  display:flex;align-items:center;justify-content:center;
  padding:10px 0 68px;
}
#tv-stage .tv-wrap{width:100%;max-width:none;margin:0 auto;}
#tv-stage .tv-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;justify-items:center;width:100%;}
#tv-stage .tv-panel{width:min(100%,1650px,140svh);max-width:none;}
#tv-stage .tv-screen{width:100%;aspect-ratio:16/9!important;max-height:calc(100svh - 150px);}
#tv-stage .tv-panel-head{height:38px;min-height:38px;}
/* Hide site navigation until the visitor scrolls beyond the channel screen. */
@media(max-width:760px){
 #tv-stage.tv-stage{min-height:calc(100svh - 54px);padding:6px 0 60px;}
 #tv-stage .tv-wrap{width:100%;}
 #tv-stage .tv-panel{width:calc(100% - 12px);}
 #tv-stage .tv-screen{aspect-ratio:16/9!important;max-height:none;}
}


/* Remove the inherited 1120px grid cap and viewport-height width cap. */
#tv-stage .tv-grid{width:100%!important;max-width:none!important;}
#tv-stage .tv-panel{width:100%!important;max-width:1650px!important;}
@media(min-width:761px){
  #tv-stage .tv-wrap{width:calc(100% - 24px)!important;}
}


/* Full-width Brahmins TV player plus visitor-controlled hide/show. */
#tv-stage .tv-wrap{width:calc(100% - 24px)!important;max-width:none!important;}
#tv-stage .tv-grid{width:100%!important;max-width:none!important;justify-items:stretch!important;}
#tv-stage .tv-panel{width:100%!important;max-width:none!important;}
#tv-stage .tv-screen{width:100%!important;aspect-ratio:16/9!important;max-height:none!important;}
#tv-stage.tv-stage{align-items:flex-start;}
#tv-stage .tv-visibility-actions{display:flex;justify-content:center;padding:14px 0 2px;}
#tv-stage .tv-visibility-actions button,#showTvPlayer{
 border:1px solid #f6c94e;border-radius:999px;padding:10px 20px;
 background:linear-gradient(135deg,#f6c94e,#ffe6a0);color:#241407;
 font:800 12px/1.2 Arial,sans-serif;cursor:pointer;box-shadow:0 4px 18px #0006;
}
#showTvPlayer{position:fixed;z-index:1000;right:18px;bottom:92px;display:none;}
#tv-stage.tv-player-hidden{display:none!important;}
#showTvPlayer.is-visible{display:block;}
@media(max-width:760px){
 #tv-stage .tv-wrap{width:calc(100% - 12px)!important;}
 #showTvPlayer{right:10px;bottom:86px;padding:9px 14px;}
}


/* Keep the complete 16:9 channel player within the first visible screen. */
#tv-stage.tv-stage{min-height:0!important;height:auto!important;padding:10px 0 12px!important;align-items:center!important;}
#tv-stage .tv-wrap{width:100%!important;max-width:none!important;}
#tv-stage .tv-grid{width:100%!important;max-width:none!important;justify-items:center!important;}
#tv-stage .tv-panel{width:min(calc(100% - 24px),1650px,calc((100svh - 142px)*16/9))!important;max-width:none!important;margin:0 auto!important;}
#tv-stage .tv-screen{width:100%!important;aspect-ratio:16/9!important;max-height:calc(100svh - 180px)!important;}
@media(max-width:760px){#tv-stage.tv-stage{padding:6px 0 10px!important;}#tv-stage .tv-panel{width:min(calc(100% - 12px),calc((100svh - 160px)*16/9))!important;}#tv-stage .tv-screen{max-height:calc(100svh - 200px)!important;}}


/* Cinema-style first screen: full-bleed ambient backdrop around a correctly-proportioned video. */
#tv-stage.tv-stage{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  width:100%!important;max-width:none!important;
  background:
    radial-gradient(ellipse at 50% 42%,rgba(111,39,143,.42) 0%,rgba(45,16,65,.32) 36%,transparent 68%),
    radial-gradient(ellipse at 8% 20%,rgba(117,39,156,.48) 0%,transparent 44%),
    radial-gradient(ellipse at 92% 18%,rgba(143,99,29,.32) 0%,transparent 42%),
    linear-gradient(180deg,#1b0b28 0%,#0b0611 72%,#09040f 100%)!important;
}
#tv-stage.tv-stage:before{
  content:""!important;position:absolute!important;inset:-8%!important;z-index:-1!important;
  pointer-events:none!important;opacity:.85!important;
  background:radial-gradient(ellipse at center,rgba(191,110,255,.18) 0%,rgba(65,25,88,.13) 38%,transparent 72%)!important;
  filter:blur(34px)!important;
}
#tv-stage .tv-wrap{width:100%!important;max-width:none!important;margin-inline:auto!important;}
#tv-stage .tv-grid{width:100%!important;max-width:none!important;justify-items:center!important;}
#tv-stage .tv-panel{
  position:relative!important;z-index:1!important;overflow:hidden!important;
  border:1px solid rgba(196,112,255,.78)!important;
  border-radius:14px!important;
  background:#030207!important;
  box-shadow:0 0 0 1px rgba(246,201,78,.16),0 18px 70px rgba(0,0,0,.62),0 0 58px rgba(160,62,218,.24)!important;
}
#tv-stage .tv-screen{background:#000!important;}
@media(max-width:760px){
 #tv-stage.tv-stage{background:linear-gradient(180deg,#1a0a25 0%,#09040f 100%)!important;}
 #tv-stage .tv-panel{border-radius:10px!important;}
}


/* Cinema polish v2: use a little more of the first-screen height and enrich the side ambience. */
@media(min-width:761px){
 #tv-stage.tv-stage{
  background:
   radial-gradient(ellipse at 50% 48%,rgba(153,57,190,.48) 0%,rgba(76,27,103,.32) 38%,transparent 70%),
   radial-gradient(ellipse at 4% 30%,rgba(126,39,173,.60) 0%,transparent 46%),
   radial-gradient(ellipse at 96% 26%,rgba(190,128,35,.42) 0%,transparent 43%),
   linear-gradient(105deg,#210b32 0%,#100719 47%,#20101e 100%)!important;
 }
 #tv-stage.tv-stage:before{
  opacity:1!important;
  background:radial-gradient(ellipse at 50% 46%,rgba(212,135,255,.23) 0%,rgba(110,49,140,.17) 42%,transparent 74%)!important;
  filter:blur(42px)!important;
 }
 #tv-stage .tv-panel{
  width:min(calc(100% - 24px),1650px,calc((100svh - 125px)*16/9))!important;
  border:1px solid rgba(218,151,255,.92)!important;
  box-shadow:0 0 0 1px rgba(246,201,78,.24),0 20px 76px rgba(0,0,0,.68),0 0 76px rgba(176,73,226,.34)!important;
 }
 #tv-stage .tv-screen{max-height:calc(100svh - 165px)!important;}
}


/* Mobile: keep the restore-channel control in normal document flow above the player.
   This prevents it from floating over the homepage video preview or ticker. */
@media(max-width:760px){
  #showTvPlayer{
    position:relative!important;
    inset:auto!important;
    display:none;
    width:max-content;
    max-width:calc(100% - 24px);
    margin:12px auto 14px;
    padding:10px 16px;
    box-sizing:border-box;
  }
  #showTvPlayer.is-visible{display:block;}
}


/* Mobile homepage refinement: compact channel stage, remove hero dead space,
   and bring the full Brahmins TV identity into view sooner. Desktop is unchanged. */
@media(max-width:760px){
  #tv-stage.tv-stage{
    min-height:0!important;
    height:auto!important;
    padding:5px 0 7px!important;
    align-items:flex-start!important;
  }
  #tv-stage .tv-panel{
    width:calc(100% - 16px)!important;
    max-width:none!important;
    margin:0 auto!important;
    border-radius:10px!important;
  }
  #tv-stage .tv-panel-head{
    height:32px!important;
    min-height:32px!important;
    padding:3px 9px!important;
  }
  #tv-stage .tv-screen{
    width:100%!important;
    aspect-ratio:16/9!important;
    max-height:none!important;
  }
  #tv-stage .tv-visibility-actions{
    padding:8px 0 0!important;
  }
  #tv-stage .tv-visibility-actions button{
    padding:8px 15px!important;
    font-size:11px!important;
  }

  /* When the channel is hidden, keep its restore control after the site header,
     not above the logo or floating over the hero/video. */
  #showTvPlayer{
    position:relative!important;
    inset:auto!important;
    display:none;
    width:max-content;
    max-width:calc(100% - 28px);
    margin:10px auto 0!important;
    padding:9px 15px!important;
    font-size:12px!important;
  }
  #showTvPlayer.is-visible{display:block!important;}

  header .nav{
    min-height:68px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  header .brand{font-size:28px!important;}
  header .menu{font-size:25px!important;}

  .hero{
    min-height:0!important;
  }
  .hero .wrap{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:14px!important;
    width:calc(100% - 28px)!important;
    height:auto!important;
    min-height:0!important;
    padding:22px 0 26px!important;
  }
  .hero .wrap>div:first-child{
    min-width:0!important;
    width:100%!important;
  }
  .hero .eyebrow{
    font-size:10px!important;
    line-height:1.5!important;
    letter-spacing:.12em!important;
    margin:0 0 8px!important;
  }
  .hero h1{
    font-size:clamp(40px,10.8vw,46px)!important;
    line-height:.99!important;
    margin:8px 0 10px!important;
    letter-spacing:-.025em!important;
  }
  .hero .lead{
    max-width:none!important;
    font-size:15px!important;
    line-height:1.48!important;
    margin:10px 0 0!important;
  }
  .hero-founder-btn,
  .fund-request-cta{
    display:flex!important;
    width:100%!important;
    min-height:48px!important;
    margin:12px 0 0!important;
    padding:12px 16px!important;
    text-align:center!important;
    font-size:14px!important;
  }
  .hero-panel{
    height:auto!important;
    min-height:0!important;
    margin-top:4px!important;
    justify-content:stretch!important;
  }
  .hero-video{
    width:100%!important;
    max-width:none!important;
    max-height:190px!important;
    aspect-ratio:16/9!important;
    object-fit:cover!important;
    border-radius:12px!important;
  }
}


/* Final mobile fold adjustment: remove generic section padding from the hero
   and fit both primary actions above the fixed Flash News ticker. */
@media(max-width:760px){
  section.hero{padding:0!important;margin:0!important;}
  .hero .wrap{
    height:auto!important;
    min-height:0!important;
    padding:14px 0 20px!important;
    gap:10px!important;
  }
  .hero .eyebrow{
    font-size:9.5px!important;
    letter-spacing:.105em!important;
    margin-bottom:5px!important;
  }
  .hero h1{
    font-size:clamp(38px,10vw,43px)!important;
    line-height:.97!important;
    margin:6px 0 8px!important;
  }
  .hero .lead{
    font-size:14px!important;
    line-height:1.42!important;
    margin:7px 0 0!important;
  }
  .hero-founder-btn,.fund-request-cta{
    min-height:44px!important;
    margin-top:8px!important;
    padding:10px 14px!important;
    font-size:13px!important;
  }
  .hero-panel{margin-top:2px!important;}
}


/* 2026-11-18: compact cinematic first screen; keep the player geometry stable during video rotation. */
@media(min-width:761px){
  #tv-stage.tv-stage{padding:4px 0 6px!important;min-height:0!important;height:auto!important;}
  #tv-stage .tv-panel{width:min(calc(100% - 24px),1650px,calc((100svh - 90px)*16/9))!important;}
  #tv-stage .tv-screen{width:100%!important;aspect-ratio:16/9!important;max-height:calc(100svh - 130px)!important;}
  #tv-stage .tv-visibility-actions{padding:7px 0 0!important;}
  #tv-stage .tv-visibility-actions button{padding:7px 16px!important;}
}
/* The embedded player keeps a fixed 16:9 box: title/video changes must never resize the page. */
#tv-stage .tv-screen{flex:none!important;}

/* Flash News overlay belongs inside the TV window, layered above video. */
#tv-stage .tv-screen{position:relative!important;overflow:hidden!important;}
#tv-stage #btv-breaking-news{position:absolute;z-index:40;inset:0;}
