.hm-brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-edition="01-alloy"] #gl {
    animation: hm-cast 0.72s ease-out;
  }
  html[data-edition="02-corewright"] #hero-gl {
    animation: hm-glint 0.72s ease-out;
  }
  html[data-edition="03-edgeworks"] #gl {
    animation: hm-rise 0.72s ease-out;
  }
  html[data-edition="04-relay"] #gl {
    animation: hm-pass 0.72s ease-out;
  }
  html[data-edition="05-himeet"] #poster {
    animation: hm-bearing 0.72s ease-out;
  }
  @keyframes hm-cast {
    from {
      translate: 0 -3px;
    }
    65% {
      translate: 0 1px;
    }
  }
  @keyframes hm-glint {
    from {
      filter: brightness(0.84);
    }
    65% {
      filter: brightness(1.07);
    }
  }
  @keyframes hm-rise {
    from {
      translate: 0 4px;
    }
  }
  @keyframes hm-pass {
    from {
      translate: -5px 0;
    }
  }
  @keyframes hm-bearing {
    from {
      rotate: -0.35deg;
      scale: 1.011;
    }
  }
}
.hm-question {
  font-family: inherit;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.025em;
  margin: 0 0 0.85em;
}
@media (max-height: 620px) {
  .hm-question {
    margin-bottom: 0.3em;
  }
}

/* The navigation stays in the same place while the scene and palette change. */
html[data-edition] .hm-header {
  --hm-nav-ink: #18201f;
  --hm-edge: rgb(250 250 244 / 0.88);
  --hm-nav-surface: #f8f6ef;
  --cutout: var(--hm-nav-surface);
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  margin: 0;
  width: auto;
  height: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: calc(10px + env(safe-area-inset-top, 0px))
    max(clamp(12px, 4vw, 64px), env(safe-area-inset-right, 0px)) 10px
    max(clamp(12px, 4vw, 64px), env(safe-area-inset-left, 0px));
  color: var(--hm-nav-ink);
  background: transparent;
  border: 0;
  pointer-events: auto;
  font:
    500 1rem/1.25 Arial,
    sans-serif;
  text-transform: none;
  letter-spacing: normal;
  backdrop-filter: none;
  mix-blend-mode: normal;
  transition: none;
}
/* Ink changes with the chapter beneath the fixed controls. */
html:is(
    [data-edition="01-alloy"],
    [data-edition="04-relay"],
    [data-edition="05-himeet"]
  )
  .hm-header:not([data-light]):not([data-contact]) {
  --hm-nav-ink: #fffdf7;
  --hm-edge: rgb(13 17 20 / 0.9);
  --cutout: #22282d;
}
.hm-header :is(.hm-brand, .hm-links a, .hm-menu) {
  text-shadow:
    0 0 2px var(--hm-edge),
    0 1px 5px var(--hm-edge);
}
.hm-header .hm-brand hi-signature {
  filter: drop-shadow(0 0 1px var(--hm-edge));
}
/* Feather only the area behind the controls when reading over scrolling copy. */
.hm-header .hm-brand,
.hm-header .hm-controls {
  position: relative;
  isolation: isolate;
}
.hm-header[data-scrolled] :is(.hm-brand, .hm-controls)::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: -8px -12px;
  background: color-mix(in srgb, var(--hm-edge) 60%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 12px,
      #000 calc(100% - 12px),
      transparent
    ),
    linear-gradient(
      to bottom,
      transparent,
      #000 12px,
      #000 calc(100% - 12px),
      transparent
    );
  mask-composite: intersect;
}
/* Once all footer links are visible, one navigation is enough. Keyboard focus restores the header. */
html[data-edition] .hm-header[data-at-footer]:not(:focus-within) {
  opacity: 0;
  pointer-events: none;
}
html[data-edition] .hm-header .hm-brand {
  color: inherit;
  letter-spacing: normal;
}
.hm-header .hm-brand {
  flex: none;
  min-height: 44px;
}
.hm-header .hm-controls,
.hm-header .hm-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.hm-header .hm-links a,
.hm-header button.hm-menu {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font:
    500 1rem/1.25 Arial,
    sans-serif;
  color: var(--hm-nav-ink);
  text-decoration: none;
}
.hm-header .hm-links a:hover,
.hm-header .hm-menu:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hm-header button.hm-menu {
  display: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
html[data-edition] a.btn[href="/contact/"],
html[data-edition] .hm-header a.hm-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgb(255 255 255 / 0.58);
  border-radius: 6px;
  background: #272a24;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  padding: 0 14px;
  font:
    600 1rem/1.25 Arial,
    sans-serif;
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
  font-stretch: normal;
  transform: none;
  box-shadow: none;
}
html[data-edition] a.btn[href="/contact/"]::before,
html[data-edition] a.btn[href="/contact/"]::after {
  content: none;
}
html[data-edition] a.btn[href="/contact/"]:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hm-header .hm-links[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .hm-header .hm-controls {
    gap: 8px;
  }
  .hm-header button.hm-menu {
    display: inline-flex;
    justify-content: center;
    min-width: 44px;
  }
  .hm-header .hm-links {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    --hm-nav-ink: #18201f;
    --hm-edge: transparent;
    display: grid;
    gap: 0;
    min-width: max-content;
    padding: 4px 14px;
    color: var(--hm-nav-ink);
    background: var(--hm-nav-surface);
    border: 1px solid currentColor;
    border-radius: 6px;
  }
  .hm-header .hm-contact {
    padding-inline: 10px;
  }
  .hm-header .hm-links[hidden] {
    display: none;
  }
}
html[data-edition="02-corewright"] .stage .label p:not(.medium) {
  font-size: 1rem;
}

.hm-header :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.hm-header a.hm-contact:focus-visible {
  outline-color: var(--hm-nav-ink);
}
.hm-header .hm-contact:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-home {
  padding-top: calc(65px + env(safe-area-inset-top, 0px));
}

/* Company sign-off, shared by every edition and the enquiry page. */
footer.hm-footer {
  --cutout: #202624;
  position: relative;
  z-index: 4;
  margin: 0;
  border: 0;
  box-sizing: border-box;
  padding: 24px max(clamp(12px, 4vw, 64px), env(safe-area-inset-right, 0px))
    max(24px, env(safe-area-inset-bottom, 0px))
    max(clamp(12px, 4vw, 64px), env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 24px;
  background: #202624;
  color: #faf9f4;
  font:
    400 1rem/1.45 Arial,
    sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.hm-footer .hm-footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.hm-footer .hm-footer-links {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0 clamp(14px, 1.8vw, 30px);
  background: transparent;
  transition: none;
  backdrop-filter: none;
}
.hm-footer a {
  font: inherit;
  letter-spacing: normal;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.hm-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hm-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.hm-footer small,
.hm-footer .hm-footer-brand span {
  color: #d2d7d2;
  font:
    400 0.9375rem/1.4 Arial,
    sans-serif;
}
.hm-footer small {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}
.film-credit {
  margin: 0;
  padding-block: 8px;
  text-align: right;
  color: #d5c7ac;
  font:
    400 0.875rem/1.45 Arial,
    sans-serif;
}
@media (max-width: 760px) {
  footer.hm-footer {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hm-footer .hm-footer-links {
    grid-row: 2;
  }
  .hm-footer small {
    grid-row: 3;
  }
}
@media (max-width: 540px) {
  .hm-footer .hm-footer-links {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  html[data-edition] .hm-header a.hm-contact {
    padding-inline: 10px;
  }
  .hm-header .hm-controls {
    gap: 4px;
  }
}
@media (max-width: 359px) {
  .hm-header hi-signature {
    --signature-direction: column;
    --signature-align: flex-start;
    --signature-gap: 2px;
  }
}
