/* Site-wide device refinements. Does not replace page styles; only adjusts
   clearance, type floor, tap targets, and overflow. */
html, body{
  overflow-x: clip;
  max-width: 100%;
}
img, video{
  max-width: 100%;
  height: auto;
}

/* Homepage: keep the 3D head below the fixed nav logo at every width. */
.hero canvas{
  top: 96px;
  height: calc(100% - 96px);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}
@media (max-width: 1180px){
  .hero canvas{
    top: 84px;
    height: calc(100% - 84px);
  }
}

/* Type floor for small labels; keep them compact and letter-spaced. */
.welcome-facts span,
.vo-tag,
.pa-k,
.pa-soon,
.c400-mark,
.ticker span{
  font-size: max(11px, .68rem);
}
@media (max-width: 760px){
  .welcome-facts span{
    font-size: 11px;
    letter-spacing: .08em;
  }
}

/* Tap targets */
#menuBtn,
.menu-btn{
  min-height: 44px;
  min-width: 44px;
  padding: .65em 1.05em;
}
@media (max-width: 1180px){
  .nav.open ul a{
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
.vo-dots button{
  position: relative;
  width: 10px;
  height: 10px;
}
.vo-dots button::after{
  content: "";
  position: absolute;
  inset: -14px;
}

/* Carousel: keep peeking cards from creating a page-level scrollbar. */
.vo-car,
.voices,
.tm-car{
  max-width: 100%;
}
.vo-view{
  max-width: 100%;
}

/* Forms and gate: no iOS zoom, readable on a narrow phone. */
#gate{
  padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
}
#gate form{
  width: min(100%, 380px);
}
#gate input,
.vo-fl input,
.vo-fl textarea,
#gatePass,
input[type="password"],
input[type="email"],
input[type="text"],
textarea{
  font-size: 16px;
}

/* Practice and journal: comfortable line length on a phone. */
@media (max-width: 700px){
  .lead, .welcome-lead, .welcome-sub{
    max-width: none;
  }
  .hero .cta{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero .cta .btn{
    justify-content: center;
  }
}

/* Photo heroes: no 4px side bleed causing a sliver of overflow. */
.ph, .jhero, .page-hero, .band{
  max-width: 100%;
}
.core, .core-halo, .as-hero, .gp-hero, .tm-hero{
  overflow: hidden;
  max-width: 100%;
}
/* .nu-hero must keep overflow visible: it is a 220vh scroll section with a
   sticky 100vh scene inside. overflow:hidden on the outer section unpins
   the scene and leaves a blank pink page (#f4e9ee) under the nav. */
.nu-hero{
  max-width: 100%;
}
