/* Opening credits and portrait */
body::after {
  inset: 0;
  opacity: .045;
  animation: none;
}

.intro-on { --intro-delay: .29s; }
.intro__bar { animation-duration: .72s; animation-delay: .3s; }
.intro__card, .intro-on .intro__name { animation-duration: .6s; }
.intro__rule { animation-duration: .42s; animation-delay: 0s; }
.js .hero__media { animation-duration: 1.35s; }
.js .hero__big .ch {
  animation-duration: .85s;
  animation-delay: calc(var(--intro-delay) + .08s + var(--i, 0) * 28ms);
}
.js .hero__pre, .js .hero__copy > *, .js .hero__foot > * {
  animation-duration: .65s;
  animation-delay: calc(var(--intro-delay) + .12s + var(--i, 0) * 45ms);
}

.hero__copy { gap: clamp(14px, 1.6vw, 22px); }
.hero__copy .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero__copy .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
}
.hero__lede { max-width: 34ch; line-height: 1.34; }
.hero__actions { gap: 9px; }
.hero__actions .btn { justify-content: space-between; gap: 1.8em; }
.hero__actions .btn--line { background: rgb(10 9 7 / 38%); }
.hero__actions .btn--line:hover { background: rgb(32 29 24 / 85%); }
.hero__foot { padding-block: 8px 12px; }
.hero__chapters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(12px, 2vw, 32px);
}
.hero__chapters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bone);
  letter-spacing: .14em;
  transition: color .22s ease;
}
.hero__chapters a:hover { color: var(--brass-2); }
.hero__chapters a:focus-visible { outline-offset: 1px; }
.hero__chapters a[href="#scotland"]::after,
.hero__chapters a[href="#trajetoria-escocia"]::after {
  content: "";
  margin-inline-start: 7px;
  border-block: 3px solid transparent;
  border-inline-start: 5px solid var(--brass-2);
}

/* Gordonstoun: let the archive still and the title share the film cover. */
#jl-scotland-video + .player__cover {
  place-content: center stretch;
  justify-items: start;
  padding-inline: 7%;
  text-align: start;
  background: #17120f;
}
#jl-scotland-video + .player__cover::before {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  background: linear-gradient(90deg, #17120f, transparent 30%),
              url("/assets/brand/jl-soares-gordonstoun-arquivo-capa.webp") center 42% / cover;
}
#jl-scotland-video + .player__cover > * { max-width: 47%; }
#jl-scotland-video + .player__cover .player__title {
  font-size: clamp(1.3rem, 4vw, 3.75rem);
  letter-spacing: .055em;
  text-indent: 0;
  text-wrap: balance;
}

/* Keep links on the same baseline across a row of project cards. */
.project__body { display: flex; flex-direction: column; align-items: flex-start; }
.project__links { margin-top: auto; }
.menu { overscroll-behavior: contain; }
.dossier__main > section { grid-template-columns: minmax(0, 1fr); }
.dossier__main a[href^="mailto:"] { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .hero__tags { display: none; }
  .hero__chapters { width: 100%; justify-content: space-between; }
}

@media (max-width: 600px) {
  .hero__lede { max-width: 35ch; }
  .hero__actions .btn { padding-inline: 16px; letter-spacing: .125em; gap: 12px; text-align: start; }
  .hero__foot { margin-top: 14px; padding-block: 3px max(8px, env(safe-area-inset-bottom)); }
  .hero__chapters { column-gap: 10px; }
  .hero__chapters a { font-size: .64rem; letter-spacing: .1em; }
  .lightbox__foot { align-items: flex-start; flex-direction: column; gap: 4px; }
  .lightbox__nav { flex-wrap: wrap; gap: 0 20px; }
  .lightbox button, .lightbox__foot a, .menu-btn { min-height: 44px; }
  #jl-scotland-video + .player__cover { gap: 12px; padding-block: 14px; }
  #jl-scotland-video + .player__cover .player__kicker { display: none; }
  #jl-scotland-video + .player__cover .player__play { gap: 7px; font-size: .62rem; letter-spacing: .12em; }
  #jl-scotland-video + .player__cover .player__play i { flex-shrink: 0; width: 32px; }
  #jl-scotland-video + .player__cover .player__play i::after { border-width: 5px 0 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-on .intro { display: none; }
  .hero__chapters a { transition: none; }
}

@media (max-width: 520px) {
  .hero { --face: clamp(245px, 79vw, 375px); }
  .hero__copy .eyebrow { flex-wrap: nowrap; }
  .hero__media { height: min(100%, max(620px, 210vw)); }
}

@media (max-width: 360px) {
  .hero__big { font-size: 16vw; }
  .hero__chapters { column-gap: 4px; }
  .hero__chapters a { letter-spacing: .07em; }
  .hero__copy .eyebrow { gap: 8px; letter-spacing: .15em; }
}
