/* Helix mastheads for Explore and the other section headers.
   Local/preview only until Jason approves a promote. Scoped to .has-masthead. */

.has-masthead{
  width:100%;
  max-width:none;
  padding-inline:0;
  padding-top:0!important;
  margin-inline:0;
}
html.vw .section.has-masthead.view-first,
.v10x-a .section.has-masthead,
.v10x-a .overview.has-masthead,
.v10x-a .letter.has-masthead{
  padding-top:0!important;
}
.overview.has-masthead{
  padding-block:0 1rem;
}
.letter.has-masthead{
  border-top:0;
  background:none;
}

.section-head-masthead{
  position:relative;
  display:block;
  width:100%;
  min-height:clamp(13.5rem,38vw,26rem);
  margin:0;
  padding:0;
  border:0;
  border-image:none;
  overflow:hidden;
  background:#070b0c;
}
.section-masthead{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.section-masthead picture,
.section-masthead img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 42%;
}
/* Per-section focal points so the title sits on a dark area and the subject stays visible. */
.masthead-work img{object-position:72% 48%;}          /* Fostr card shifts right */
#biography .section-masthead img{object-position:72% 4%;} /* real boat photo: keep cap + face in frame when the band crops top/bottom or sides */
#interviews .section-masthead img,
.has-masthead[data-v="interviews"] .section-masthead img{object-position:center 55%;}
#newsletter .section-masthead img{object-position:center 46%;}
#links .section-masthead img{object-position:center 50%;}
#explains .section-masthead img{object-position:55% 46%;}

.section-masthead::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(7,11,12,.88) 0%,
      rgba(7,11,12,.58) 28%,
      rgba(7,11,12,.22) 52%,
      rgba(7,11,12,.18) 72%,
      rgba(7,11,12,.55) 100%),
    linear-gradient(180deg,
      rgba(7,11,12,.28) 0%,
      rgba(7,11,12,.08) 38%,
      rgba(7,11,12,.72) 78%,
      rgba(7,11,12,.94) 100%);
  z-index:1;
}
/* Biography: real B&W photo, lighter scrim so he reads clearly; title side stays dark. */
#biography .section-masthead::after{
  background:
    linear-gradient(90deg,
      rgba(7,11,12,.82) 0%,
      rgba(7,11,12,.50) 26%,
      rgba(7,11,12,.10) 48%,
      rgba(7,11,12,.04) 72%,
      rgba(7,11,12,.22) 100%),
    linear-gradient(180deg,
      rgba(7,11,12,.10) 0%,
      rgba(7,11,12,.02) 40%,
      rgba(7,11,12,.42) 80%,
      rgba(7,11,12,.72) 100%);
}
/* Links still has a bright white wall on the left — darken it more so the title holds. */
.masthead-bright::after{
  background:
    linear-gradient(90deg,
      rgba(7,11,12,.92) 0%,
      rgba(7,11,12,.72) 26%,
      rgba(7,11,12,.32) 50%,
      rgba(7,11,12,.22) 70%,
      rgba(7,11,12,.6) 100%),
    linear-gradient(180deg,
      rgba(7,11,12,.35) 0%,
      rgba(7,11,12,.12) 38%,
      rgba(7,11,12,.78) 80%,
      rgba(7,11,12,.95) 100%);
}

.section-head-masthead .section-head-copy{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:clamp(13.5rem,38vw,26rem);
  width:min(calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left,0px), env(safe-area-inset-right,0px))),76rem);
  margin-inline:auto;
  padding:clamp(1.25rem,3vw,2rem) 0 clamp(1.1rem,2.4vw,1.7rem);
  box-sizing:border-box;
}
.section-head-masthead h2,
.section-head-masthead .brief-title,
.section-head-masthead .talks-heading{
  margin:0;
  text-shadow:0 2px 24px rgba(7,11,12,.65);
}
.section-head-masthead .brief-title,
.section-head-masthead .talks-heading{
  font-size:clamp(2.2rem,5vw,3.6rem);
  font-weight:600;
  letter-spacing:-.04em;
  line-height:1;
  text-transform:none;
}
.section-head-masthead .kicker{
  color:#d9cbb6;
  text-shadow:0 2px 18px rgba(7,11,12,.7);
  margin:0 0 .55rem;
}
.section-head-masthead .kicker + h2,
.section-head-masthead .kicker + .brief-title,
.section-head-masthead .kicker + .talks-heading{margin-top:0;}
.section-head-masthead h2 + .kicker{margin:.55rem 0 0;}

.section-head-masthead::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:1px;
  background:linear-gradient(90deg,rgba(217,203,182,.45),rgba(143,227,198,.28) 42%,transparent 82%);
  z-index:3;
  pointer-events:none;
}

/* Content under the masthead stays on the site frame. */
.has-masthead > .masthead-body,
.has-masthead > .letter-inner,
.has-masthead > .frame{
  width:min(calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left,0px), env(safe-area-inset-right,0px))),76rem);
  margin-inline:auto;
}
.has-masthead > .masthead-body{
  margin-top:clamp(1.1rem,2.5vw,1.6rem);
}
.has-masthead .letter-inner{
  padding-top:clamp(1.1rem,2.5vw,1.6rem);
}
html.vw #newsletter.has-masthead .letter-inner{padding-top:clamp(1.1rem,2.5vw,1.6rem);}
.has-masthead .talks{
  border-top:0;
  margin-top:0;
  padding-top:0;
}

/* Explainers: title + lede + Instagram/nav sit on the masthead. */
.section-head-masthead .explains-headrow{
  width:100%;
  align-items:flex-end;
}
.section-head-masthead .explains-lede{
  color:#e7eeeb;
  text-shadow:0 2px 18px rgba(7,11,12,.7);
  margin:.7rem 0 0;
  max-width:34rem;
}
.section-head-masthead .explains-ig-link{
  color:#e7eeeb;
  border-bottom-color:rgba(217,203,182,.45);
  text-shadow:0 2px 18px rgba(7,11,12,.7);
}
.section-head-masthead .explains-nav button{
  background:rgba(7,11,12,.72);
  backdrop-filter:blur(8px);
  border-color:rgba(217,203,182,.35);
}

@media (max-width:599.98px){
  .section-head-masthead,
  .section-head-masthead .section-head-copy{
    min-height:clamp(11rem,58vw,16.5rem);
  }
  #explains .section-head-masthead,
  #explains .section-head-masthead .section-head-copy{
    min-height:clamp(14rem,72vw,20rem);
  }
}

@media (prefers-reduced-motion:reduce){
  .section-masthead img{animation:none!important;}
}

@media (max-width:699.98px){
  .section-head-masthead .explains-headrow{
    flex-direction:column;
    align-items:flex-start;
    gap:.85rem;
  }
}

/* Links: one horizontal row of destination cards on desktop; scroll or stack on small screens. */
#links .link-groups{
  display:block;
  grid-template-columns:none;
  gap:0;
  margin-top:.35rem;
}
#links .link-group{margin:0;}
#links .link-group-title{display:none;}
#links .directory.links-row,
#links .directory{
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:.55rem;
  margin:.35rem 0 0;
  padding:0 !important;
  list-style:none;
  border:0 !important;
  background:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
#links .directory li{
  flex:1 1 0;
  min-width:0;
}
#links .directory .link-row{
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:.4rem;
  min-height:0;
  height:100%;
  padding:.8rem .7rem .75rem;
  border:1px solid transparent;
  border-radius:16px;
  background:
    linear-gradient(var(--glass, rgba(16,26,29,.55)), var(--glass, rgba(16,26,29,.55))) padding-box,
    linear-gradient(150deg, rgba(143,227,198,.32), rgba(255,255,255,.05) 35%, rgba(217,203,182,.22)) border-box;
  box-shadow:inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.06)), 0 16px 40px -28px rgba(0,0,0,.7);
  transition:transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s;
}
#links .directory .link-row:hover{padding-left:.7rem;}
#links .directory .link-label{
  display:block;
  margin:0;
  font-size:clamp(.9rem, .85vw + .55rem, 1.08rem);
  font-weight:560;
  letter-spacing:-.03em;
  line-height:1.2;
  overflow-wrap:anywhere;
}
#links .directory .link-host{
  font-size:.68rem;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
@media (max-width:979px){
  #links .directory.links-row,
  #links .directory{
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    gap:.6rem;
    padding:0 0 .35rem !important;
    margin-inline:calc(-1 * max(var(--gutter, 1.25rem), env(safe-area-inset-left, 0px)));
    padding-inline:max(var(--gutter, 1.25rem), env(safe-area-inset-left, 0px)) !important;
  }
  #links .directory li{
    flex:0 0 auto;
    min-width:9.75rem;
    max-width:12.5rem;
    scroll-snap-align:start;
  }
  #links .directory .link-label{overflow-wrap:normal; font-size:1rem;}
}


/* Home overview cards: 16:9 crops of the matching section-header stills. */
.overview-visual .viz-img{object-position:center center;}

/* Footer destination links: compact version of the Links-page glass cards. */
.site-footer .footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:start;
  column-gap:2rem;
  row-gap:1.15rem;
}
.site-footer .footer-link-groups{display:contents;}
.site-footer .footer-site-links{
  grid-column:2;
  grid-row:1;
  justify-self:end;
  align-items:center;
}
.site-footer .footer-destinations{
  grid-column:1 / -1;
  grid-row:2;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.55rem;
  width:100%;
  min-width:0;
}
.site-footer .footer-destinations .footer-group-label{min-width:0;}
.site-footer .footer-directory{
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:.55rem;
  margin:0;
  padding:0 !important;
  list-style:none;
  border:0 !important;
  background:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  width:100%;
}
.site-footer .footer-directory li{
  flex:1 1 0;
  min-width:0;
}
.site-footer .footer-directory .link-row{
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:.35rem;
  min-height:0;
  height:100%;
  padding:.7rem .65rem .65rem;
  border:1px solid transparent;
  border-radius:16px;
  background:
    linear-gradient(var(--glass, rgba(16,26,29,.55)), var(--glass, rgba(16,26,29,.55))) padding-box,
    linear-gradient(150deg, rgba(143,227,198,.32), rgba(255,255,255,.05) 35%, rgba(217,203,182,.22)) border-box;
  box-shadow:inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.06)), 0 16px 40px -28px rgba(0,0,0,.7);
  transition:transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s;
  text-decoration:none;
  color:inherit;
}
.site-footer .footer-directory .link-row:hover{padding-left:.65rem;}
.site-footer .footer-directory .link-label{
  display:block;
  margin:0;
  font-size:clamp(.85rem, .7vw + .55rem, 1.02rem);
  font-weight:560;
  letter-spacing:-.03em;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.site-footer .footer-directory .link-host{
  font-size:.65rem;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
@media (max-width:979px){
  .site-footer .footer-grid{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;
  }
  .site-footer .footer-site-links{
    grid-column:1;
    grid-row:auto;
    justify-self:start;
  }
  .site-footer .footer-destinations{
    grid-column:1;
    grid-row:auto;
  }
  .site-footer .footer-directory{
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    gap:.6rem;
    padding:0 0 .35rem !important;
    margin-inline:calc(-1 * max(var(--gutter, 1.25rem), env(safe-area-inset-left, 0px)));
    padding-inline:max(var(--gutter, 1.25rem), env(safe-area-inset-left, 0px)) !important;
  }
  .site-footer .footer-directory li{
    flex:0 0 auto;
    min-width:9.75rem;
    max-width:12.5rem;
    scroll-snap-align:start;
  }
  .site-footer .footer-directory .link-label{overflow-wrap:normal; font-size:1rem;}
}
@media (prefers-reduced-motion:reduce){
  .site-footer .footer-directory .link-row{transition:none;}
}
