/* Authors page only (clone of Jury logic) */
.bg { display: none; }
body { overflow: hidden; }

/* Force header to always stay visible on this page (overlay, no layout shift) */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* Full-screen snap sections */
.authors-hero,
.author,
.site-footer{
  height: 100vh;
  scroll-snap-align: start;
}

/* Tiny visual nudge DOWN without affecting scroll-snap layout (like jury/events) */
:root{
  --sectionNudgeY: 4px;
  --heroNudgeY: 22px;
}

/* Keep anchor jumps from hiding behind the fixed header */
:root{
  --headerOffset: 92px;
}

html{
  scroll-behavior: auto; /* prevent native jump conflicts */
}

/* Smooth scrolling only inside snap container */
.snap-root{
  scroll-behavior: smooth;
}

/* ====== Section backgrounds (same vibe) ====== */
.authors-hero,
.author{
  position: relative;
  isolation: isolate;
}

/* ====== Section backgrounds (robust, like events/films) ====== */
.authors-hero,
.author{
  position: relative;
  isolation: isolate;
}

.authors-hero::before,
.author::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--authors-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* overlay stays on ::after */
.authors-hero::after,
.author::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.15)
  );
  z-index: 1;
  pointer-events: none;
}

/* Hero: light bg -> dark text */
.authors-hero{
  color: rgba(15,15,18,0.92);
}

.authors-hero::after{
  background: transparent;
}

.authors-hero .authors-index__item{
  color: rgba(15,15,18,0.88);
  border-color: rgba(15,15,18,0.20);
  background: rgba(15,15,18,0.06);
}

.authors-hero .authors-index__item:hover{
  background: rgba(15,15,18,0.10);
}

.authors-hero .btn{
  color: rgba(15,15,18,0.92);
  border-color: rgba(15,15,18,0.22);
  background: rgba(15,15,18,0.06);
}

.authors-hero .btn:hover{
  background: rgba(15,15,18,0.12);
}

.authors-hero .btn--ghost{
  background: rgba(15,15,18,0.04);
}

/* content above */
.authors-hero > .container,
.author > .container{
  position: relative;
  z-index: 2;
}
/* Center hero content vertically + left horizontally, like other heroes.
   The --raised modifier disables centering for tall-content variants
   (e.g. jury/young) so the content stacks from the top of the section. */
.authors-hero{
  display: grid;
  align-items: center;
}

.authors-hero.authors-hero--raised{
  display: block;
}

.authors-hero.authors-hero--about-raised > .container{
  transform: translateY(14px);
}

/* ====== Index pills ====== */
.authors-index{
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 720px;
}

@media (max-width: 880px){
  .authors-index{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    gap: 0.6rem;
  }
}

.authors-index__item{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.04);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  color: rgba(0,0,0,0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.authors-index__item:hover{
  background: rgba(0,0,0,0.07);
  text-decoration: none;
}

/* ====== Author layout (simplified juror) ====== */
.author__stack{
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-content: center;
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
  min-width: 0;
  transform: translateY(calc(var(--sectionNudgeY) + 18px));
}

.author__copy{
  max-width: 70ch;
}

.author__eyebrow{
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.7;
  margin: 0 0 0.4rem 0;
}

/* Card: image + minimal text */
.author__card{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);

  /* airy, no big panel */
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  align-items: center;
  min-width: 0;
}

.author__media{
  position: relative;
  min-height: 320px;

  border-radius: 22px;
  overflow: hidden;

  background: rgba(0,0,0,0.04);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.16),
    0 0 0 1px rgba(255,255,255,0.35) inset;
}

.author__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 20% 15%, rgba(255,255,255,0.22), rgba(255,255,255,0) 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.00), rgba(0,0,0,0.18));
  pointer-events: none;
}

.author__body{
  position: relative;
  padding: 0;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-left: clamp(0.5rem, 1.5vw, 1.2rem);
}

.author__body::before{
  content: "";
  position: absolute;
  left: -24px;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.28), rgba(0,0,0,0.28), rgba(0,0,0,0));
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
}

.author__role{
  margin: 0;
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: none;

  padding: 0.6rem 1rem;
  border-radius: 999px;

  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.09);

  box-shadow:
    0 14px 38px rgba(0,0,0,0.10),
    0 0 0 1px rgba(255,255,255,0.25) inset;

  transform: translateY(-2px);
}

.author__nav{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ====== Responsive ====== */
@media (max-width: 880px){
  :root{ --headerOffset: 86px; --heroNudgeY: 18px; }

  .authors-hero > .container{
    transform: translateY(28px);
  }

  .author__card{
    grid-template-columns: 1fr;
  }

  .author__media{
    min-height: 0;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.16);
  }
  .author__media img{
    height: auto;
  }

  .author__stack{
    transform: translateY(calc(var(--sectionNudgeY) + 10px));
  }

  .author__body::before{
    display: none;
  }
}

.site-footer .footer__wrap{ transform: translateY(var(--sectionNudgeY)); }
