/* Match the full Golden Break composition on both the first frame and the film. */
.home .header-mast {
  --gold-width: min(100vw, 600px);
  --gold-height: min(52.5vw, 315px);
  --gold-center: calc(var(--gold-height) / 2);
  background: #0a1825;
}
.home .nav-head .brand-stage,
.home .nav-head .nav-row > .brand-home-link {
  inset: var(--gold-center) auto auto 50%;
  width: var(--gold-width);
  height: var(--gold-height);
  transform: translate(-50%, -50%);
}
.home .nav-head .brand-stage,
html[data-diamond-motion=paused] .home .nav-head .brand-stage {
  background: #0a1825 url("/assets/diamond-brand/diamond-golden-break-masthead-v1.webp") center / contain no-repeat;
}
.home .nav-head .brand-stage::after {content: none}
.home .nav-head .brand-stage-film,
html[data-diamond-motion=paused] .home .nav-head .brand-stage-film {
  display: block;
  object-fit: contain;
  visibility: visible;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .home .nav-head .brand-stage-film.is-playing:not([data-motion-paused="true"]) {opacity: 1}
}
.home .nav-head .nav-actions {position: relative; z-index: 1}
@media (min-width: 1101px) {
  .home .nav-head .nav-row {
    grid-template-rows: var(--gold-height) auto;
  }
  .home .nav-head .nav-row > .navlinks {grid-column: 1 / 3; justify-self: start}
  .home .nav-head .nav-row > .nav-actions {grid-row: 2; justify-self: end}
}
@media (max-width: 1100px) {
  .home .nav-head .nav-row {
    min-height: var(--gold-height);
    padding-block: 0;
  }
  .js .home .nav-head .nav-row {grid-template-rows: var(--gold-height) auto}
  .js .home .nav-head .nav-row > .nav-actions {grid-row: 2}
  .home .nav-head .nav-row > .navlinks.open {z-index: 2}
  html:not(.js) .home .nav-head .nav-row {grid-template-rows: var(--gold-height) auto auto}
  html:not(.js) .home .nav-head .nav-row > .nav-actions {grid-row: 3}
}

/* The side footage spans from the edges of the page to the original wordmark.
   Posters are CSS backgrounds inside the desktop breakpoint, so mobile visitors
   neither fetch the side posters nor open the two video streams. */
.header-work {display: none}
@media (min-width: 1101px) {
  .home .header-mast {
    --gold-width: clamp(400px, 33.333333vw, 600px);
    --gold-height: clamp(210px, 17.5vw, 315px);
  }
  .home .header-work {
    position: absolute;
    z-index: -2;
    display: block;
    top: 0;
    width: calc((100% - var(--gold-width)) / 2);
    height: var(--gold-height);
    overflow: hidden;
    pointer-events: none;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--work-focus);
  }
  .header-work-left {
    --work-focus: 50% 50%;
    left: 0;
    background-image: url('/assets/header-work/drone-v1.jpg');
  }
  .header-work-right {
    --work-focus: 50% 58%;
    right: 0;
    background-image: url('/assets/header-work/fiberseal-v1.jpg');
  }
  .header-work video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--work-focus);
    opacity: 0;
  }
  .header-work video.has-frame {opacity: 1}
  .header-work::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--work-edge), #0a182500 85%, #0a1825 100%);
  }
  .header-work-left {--work-edge: to right}
  .header-work-right {--work-edge: to left}
}
@media (prefers-reduced-motion: reduce) {
  .header-work video.has-frame {opacity: 0}
}

/* The mobile review bar already carries Assessment. Keep the hamburger on
   the art so the two touch targets do not need an extra row between them. */
@media (max-width: 760px) {
  .js .home .nav-head .nav-row {
    grid-template-rows: var(--gold-height);
  }
  .js .home .nav-head .nav-row > .nav-actions {
    grid-row: 1;
    align-self: end;
    margin-bottom: 6px;
  }
  .js .home .nav-head .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d4c3a4;
    border-radius: 50%;
    color: #fff5e5;
    background: #071521ec;
  }
  html:not(.js) .home .nav-head .nav-row {
    grid-template-rows: var(--gold-height) auto;
  }
  html:not(.js) .home .nav-head .nav-actions {
    display: none;
  }
}
