/* RTC Studios — creative homepage v3. Scoped: leaves TylerClass.com Home untouched. */
body.home-page{
  min-height:100dvh!important;height:auto!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  background:#030906;color:#ebffee;
}
#rtc-home{
  box-sizing:border-box;
  width:100%;
  height:auto!important;min-height:100dvh!important;max-height:none!important;
  overflow:visible!important;
  padding:clamp(10px,2vw,22px) clamp(12px,2.6vw,32px) calc(98px + env(safe-area-inset-bottom))!important;
}
body.home-page #rtc-home .wrap{
  display:flex!important;flex-direction:column;align-items:stretch;
  gap:clamp(14px,2vw,25px)!important;
  width:min(100%,1440px)!important;max-width:1440px!important;
  height:auto!important;min-height:0!important;
  margin:0 auto!important;
}
body.home-page #rtc-home .topbar{width:100%;flex:none}
.rtc-studio-main{display:grid;gap:clamp(16px,2vw,24px);min-width:0}
.rtc-studio-stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(250px,.90fr) minmax(0,1.1fr);
  align-items:stretch;gap:clamp(14px,1.8vw,25px);
  min-height:min(71dvh,660px);padding:clamp(15px,2vw,28px);
  background:
    radial-gradient(ellipse at 51% 26%,rgba(57,255,20,.095),transparent 40%),
    linear-gradient(120deg,#06150f,#020805 55%,#07120f);
  border:1px solid rgba(57,255,20,.36);border-radius:22px;
  box-shadow:0 14px 58px rgba(0,0,0,.38),inset 0 0 28px rgba(57,255,20,.035);
}
.rtc-studio-intro{min-width:0;align-self:center;padding:clamp(8px,2vw,22px)}
.rtc-studio-eyebrow,.rtc-video-heading,.rtc-studio-extras>span{
  font-size:.67rem;font-weight:850;letter-spacing:.17em;text-transform:uppercase;color:#a5f59b;
}
.rtc-studio-eyebrow span{color:#7fdcff;padding-inline:4px}
.rtc-studio-intro h1{
  max-width:12ch;margin:22px 0 18px;
  font:900 clamp(2.6rem,4.4vw,5.8rem)/.98 system-ui,-apple-system,sans-serif;
  letter-spacing:-.06em;color:#f6fff5;text-wrap:balance;
}
.rtc-studio-intro h1 em{font-style:normal;color:#71ff5b;text-shadow:0 0 23px rgba(57,255,20,.36)}
.rtc-studio-lede{max-width:46ch;font-size:clamp(.96rem,1.25vw,1.16rem);line-height:1.66;color:#c9e3d1}
.rtc-studio-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:27px}
.rtc-studio-cta{
  display:inline-flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:48px;padding:11px 16px;color:#ebffee;text-decoration:none;
  background:rgba(8,40,25,.85);border:1px solid rgba(57,255,20,.55);
  border-radius:10px;font-size:.87rem;font-weight:800;
}
.rtc-studio-cta--primary{background:#39ff14;border-color:#39ff14;color:#06120b}
.rtc-studio-cta:is(:hover,:focus-visible){box-shadow:0 0 20px rgba(57,255,20,.22);border-color:#8eff72}
.rtc-studio-note{font-size:.78rem;line-height:1.65;color:#9eafa2;margin:29px 0 0}
.rtc-studio-note a{color:#b8e6ff;text-underline-offset:3px}
.rtc-video-stage{
  min-width:0;align-self:stretch;display:flex;flex-direction:column;gap:12px;
  padding:12px;position:relative;border-radius:16px;
  border:1px solid rgba(57,255,20,.28);
  background:linear-gradient(160deg,rgba(6,25,17,.82),rgba(0,5,2,.95));
}
.rtc-video-heading{display:flex;align-items:center;gap:9px;padding:2px 4px;white-space:nowrap}
.rtc-live-dot{height:7px;width:7px;border-radius:50%;background:#39ff14;box-shadow:0 0 10px #39ff1480}
.rtc-video-heading__format{margin-left:auto;color:#97b99c;font-size:.57rem;letter-spacing:.07em}
.rtc-video-inner{
  position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(ellipse at center,#153126,#020704 74%);border-radius:9px;
  overflow:hidden;padding:8px;
}
#rtc-home .rtc-video-inner .feature-video{
  display:block;width:auto!important;height:auto!important;
  max-width:100%!important;max-height:min(66dvh,630px)!important;
  aspect-ratio:9/16;object-fit:contain;box-shadow:0 0 32px rgba(57,255,20,.12);
  border:1px solid rgba(57,255,20,.35);
}
#rtc-home .rtc-video-inner .sound-toggle{position:absolute;left:16px;bottom:16px;z-index:3}
#rtc-home .rtc-video-inner .play-toggle{position:absolute;z-index:4}
.rtc-video-caption{color:#aec5b0;font-size:.68rem;line-height:1.5;text-align:center;margin:0 5px}
.rtc-studio-directory{
  display:flex;flex-direction:column;justify-content:center;min-width:0;gap:11px;
  padding:clamp(4px,1vw,12px);
}
.rtc-studio-directory__head{margin:0 0 7px}
.rtc-studio-directory__head h2{color:#f5fff1;margin:8px 0 0;font-size:clamp(1.5rem,2.1vw,2.1rem);line-height:1.12;text-wrap:balance}
.rtc-studio-link{
  min-width:0;min-height:89px;display:grid;grid-template-columns:26px minmax(0,1fr) 16px;
  gap:11px;align-items:center;padding:14px 13px;
  border:1px solid rgba(57,255,20,.26);border-radius:11px;
  background:rgba(8,30,19,.78);color:#edffee;text-decoration:none;
  transition:border-color .18s ease,background-color .18s ease,transform .18s ease;
}
.rtc-studio-link__num{align-self:start;margin-top:3px;font:.78rem/1.4 ui-monospace,monospace;color:#8cf17b}
.rtc-studio-link strong{display:block;font-size:.98rem;line-height:1.3;color:#f2fff0}
.rtc-studio-link small{display:block;font-size:.77rem;line-height:1.48;margin-top:4px;color:#b8cbbb}
.rtc-studio-link>b{color:#64f3bf;font-size:1.2rem;justify-self:end}
.rtc-studio-link:is(:hover,:focus-visible){border-color:#39ff14;background:#123d28;transform:translateY(-1px)}
.rtc-studio-extras{
  display:flex;gap:clamp(10px,2.4vw,28px);align-items:center;justify-content:center;flex-wrap:wrap;
  padding:18px 18px;border:1px solid rgba(57,255,20,.22);border-radius:14px;
  background:rgba(9,25,16,.82);
}
.rtc-studio-extras>a{font-size:.84rem;font-weight:750;color:#d6eee0;text-underline-offset:4px;text-decoration:none}
.rtc-studio-extras>a:is(:hover,:focus-visible){color:#8dfb80;text-decoration:underline}
@media(max-width:1210px){
  .rtc-studio-stage{grid-template-columns:minmax(0,.9fr) minmax(260px,1fr);min-height:0}
  .rtc-studio-directory{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .rtc-studio-directory__head{grid-column:1/-1}
  .rtc-studio-link{min-height:85px}
}
@media(max-width:720px){
  #rtc-home{padding-inline:12px!important}
  .rtc-studio-stage{display:flex;flex-direction:column;padding:14px;gap:17px;border-radius:16px}
  .rtc-studio-intro{padding:10px 8px 0}
  .rtc-studio-intro h1{font-size:clamp(2.45rem,12vw,4.3rem);margin:15px 0}
  .rtc-studio-note{margin:18px 0 0}
  .rtc-video-stage{min-height:0}
  .rtc-video-inner{min-height:350px;max-height:none;padding:10px}
  #rtc-home .rtc-video-inner .feature-video{width:auto!important;height:min(62dvh,560px)!important;max-height:none!important}
  .rtc-studio-directory{display:flex;flex-direction:column;gap:10px;padding:0}
  .rtc-studio-link{min-height:77px}
  .rtc-studio-extras{align-items:flex-start;justify-content:flex-start}
  .rtc-studio-extras>span{flex-basis:100%}
}
@media(max-width:370px){
  .rtc-video-heading__format{display:none}
  .rtc-studio-cta{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .rtc-studio-link,.rtc-studio-cta{transition:none}
  .rtc-studio-link:hover{transform:none}
}


/* Critical mobile scroll fix: the original fullscreen video page locked the
   HTML scrolling element. A taller directory cannot scroll while that remains. */
html.rtc-home-scroll{
  height:auto!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:auto;
}
html.rtc-home-scroll body.home-page{
  height:auto!important;
  min-height:100dvh!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  position:static!important;
}
html.rtc-home-scroll #rtc-home{
  height:auto!important;
  min-height:100dvh!important;
  overflow:visible!important;
}
html.rtc-home-scroll #rtc-home .wrap{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}

/* More Studio: deliberate, readable links instead of crowded wrap on iPhone. */
@media(max-width:720px){
 .rtc-studio-extras{
   display:grid!important;
   grid-template-columns:1fr!important;
   gap:6px!important;
   padding:19px 17px!important;
 }
 .rtc-studio-extras>span{display:block;padding:0 2px 8px}
 .rtc-studio-extras>a{
   display:block;min-height:44px;
   padding:11px 12px;border:1px solid rgba(57,255,20,.20);
   border-radius:9px;background:rgba(57,255,20,.035);
   font-size:.85rem!important;line-height:1.45;
 }
}
