/* Page chrome: header, hero, page head, spec strip, closing band, footer. */

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background-color var(--normal), border-color var(--normal);
}

.site-header.is-solid,
.site-header.is-open {
  background: var(--ink);
  border-bottom-color: var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
}

/* The logo gives up width before a button is pushed off the bar: 142 x 40 at full size, never under 88 x 25. */
.site-header__brand {
  display: block;
  flex: 0 1 142px;
  min-width: 88px;
  margin-right: auto;
}

.site-header__brand img {
  width: 100%;
  height: auto;
}

.site-nav__list {
  display: flex;
  gap: var(--space-8);
}

.site-nav__link {
  display: block;
  padding: var(--space-3) 0;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 transparent;
  transition: box-shadow var(--fast), color var(--fast);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current] {
  color: var(--blue-100);
  box-shadow: inset 0 -1px 0 var(--blue-300);
}

.site-header__menu {
  display: none;
}

@media (max-width: 899px) {
  .site-header__bar {
    gap: var(--space-3);
  }

  /* 121 x 34 on phones and tablets. */
  .site-header__brand {
    flex-basis: 121px;
  }

  .site-nav {
    display: none;
  }

  .js .site-header__menu {
    display: inline-flex;
    border-color: var(--line-strong);
  }

  .site-header.is-open .site-nav {
    display: block;
    position: absolute;
    inset: var(--header-h) 0 auto;
    padding: var(--space-4) var(--gutter) var(--space-8);
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  /* The phone menu is set in the display face: five words, each a line. */
  .site-nav__link {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    box-shadow: none;
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible,
  .site-nav__link[aria-current] {
    color: var(--blue-300);
    box-shadow: none;
  }
}

@media (max-width: 399px) {
  .site-header .btn--sm {
    padding: 0 var(--space-3);
    letter-spacing: 0.08em;
  }
}

/* Narrowest phones: the quote button shows "Quote". The full label stays in the page for screen readers. */
@media (max-width: 359px) {
  .btn__lead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Hero: the lead clip and three lines of poster type.
   Phones: the clip fills the screen behind the type.
   From 700px: the clip is a tall panel on the right half of the grid, at close to its real size,
   and the type runs across the black half and over the clip. */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(100svh, 980px);
  overflow: hidden;
  background: var(--ground);
  color: var(--text);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--ink);
}

.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero__media video {
  opacity: 0;
  transition: opacity 600ms;
}

.hero__media video.is-playing {
  opacity: 1;
}

/* A scrim in the brand's deepest blue, so the header and the type stay readable over footage. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ink) 72%, transparent) 0%,
    color-mix(in srgb, var(--ink) 8%, transparent) 22%,
    color-mix(in srgb, var(--blue-900) 30%, transparent) 46%,
    color-mix(in srgb, var(--ink) 88%, transparent) 78%,
    var(--ground) 100%
  );
}

/* The grid lines run over the footage too. */
.hero::after {
  z-index: -1;
}

.hero__body {
  display: grid;
  align-content: end;
  gap: var(--space-6);
  padding-top: calc(var(--header-h) + var(--space-12));
  padding-bottom: var(--space-6);
}

/* 13.2% of the width fits the longest line on a 320px phone; a fifth of the height keeps three lines on a short laptop. */
.hero__title {
  font-family: var(--font-display);
  font-size: min(13.2vw, 19svh, 11.5rem);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero__line {
  display: block;
  animation: hero-rise 900ms var(--ease-out) both;
}

.hero__line:nth-child(2) {
  animation-delay: 90ms;
}

.hero__line:nth-child(3) {
  animation-delay: 180ms;
}

.hero__line--accent {
  color: var(--blue-300);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.3em, 0);
  }
}

@keyframes beam-draw {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
}

.hero__foot {
  display: grid;
  gap: var(--space-6);
}

.hero__lede {
  max-width: 46ch;
  color: var(--blue-100);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--blue-700);
  color: var(--blue-100);
}

.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-1);
  border: 0;
  background: none;
  color: var(--blue-100);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.video-toggle:hover {
  color: var(--paper);
}

.video-toggle__icon {
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}

[data-paused="true"] > .video-toggle__icon {
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-inline: 10px solid currentColor;
  border-inline-end-width: 0;
}

@media (max-width: 599px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Phones: larger type on four lines. 17.2% of the width fits "Laser shows"; "for live events" wraps. */
@media (max-width: 699px) {
  .hero__title {
    font-size: min(17.2vw, 5.75rem);
  }
}

@media (min-width: 700px) {
  /* The right half of the grid, top to bottom. */
  .hero__media {
    left: 50%;
    right: var(--edge);
  }

  /* The panel's inner edge is one lit line, drawn downward as the page opens. */
  .hero__media::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--blue-300) 18%, var(--blue-300) 78%, transparent);
    box-shadow: var(--glow);
    transform-origin: center top;
    animation: beam-draw 1400ms var(--ease-out) 250ms both;
  }

  .hero::before {
    background: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--ink) 60%, transparent) 0%,
      transparent 20%,
      transparent 52%,
      color-mix(in srgb, var(--ink) 70%, transparent) 84%,
      var(--ground) 100%
    );
  }

  .hero__foot {
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
  }

  .hero__lede {
    grid-column: 1 / span 3;
    padding-right: var(--space-8);
    color: var(--text);
  }

  .hero__actions {
    grid-column: 4 / span 3;
    padding-left: var(--space-6);
  }
}

/* Page head: the opener of a service page. Type only. */

.page-head {
  padding-top: calc(var(--header-h) + clamp(var(--space-12), 9vw, var(--space-24)));
  padding-bottom: clamp(var(--space-8), 5vw, var(--space-16));
}

.page-head__body {
  display: grid;
  gap: var(--space-6);
}

.page-head .label {
  color: var(--blue-300);
}

.page-head .lede {
  color: var(--text-muted);
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

@media (max-width: 599px) {
  .page-head__actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 900px) {
  .page-head__body {
    grid-template-columns: repeat(6, 1fr);
    column-gap: 0;
    align-items: end;
  }

  .page-head .label,
  .page-head__actions {
    grid-column: 1 / -1;
  }

  .page-head .h-display {
    grid-column: 1 / span 4;
  }

  .page-head .lede {
    grid-column: 5 / span 2;
    padding-left: var(--space-6);
    padding-bottom: var(--space-2);
  }
}

/* Closing call to action on service pages */

.cta-band {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cta-band__body {
  display: grid;
  justify-items: start;
  gap: var(--space-6);
}

.cta-band .lede {
  color: var(--text-muted);
}

/* Spec strip: three figures, each two grid columns wide, so the page's own lines divide them. */

.facts {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
}

.fact:first-child {
  padding-left: 0;
}

.fact__label {
  max-width: 26ch;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 699px) {
  .facts__list {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:first-child {
    grid-template-columns: 2fr 2fr;
    align-items: end;
    gap: 0;
    padding: var(--space-4) 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--line);
  }

  .fact__label {
    padding-left: var(--space-3);
  }
}

/* Footer: the address to write to, set as large as the screen allows, then the lists. */

.site-footer {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24)) var(--space-8);
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-footer__lead {
  display: grid;
  gap: var(--space-3);
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-24));
}

.site-footer__lead .label {
  color: var(--blue-300);
}

/* 24 characters: 7.6% of the width keeps the address on one line down to 320px. */
.site-footer__mail {
  justify-self: start;
  color: var(--text);
  font-family: var(--font-display);
  font-size: min(7.6vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--fast);
}

.site-footer__mail:hover,
.site-footer__mail:focus-visible {
  color: var(--blue-300);
}

/* One column on phones, two by two on large phones, logo over three lists on tablets, four across on desktop. */
.site-footer__grid {
  display: grid;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}

@media (min-width: 440px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
  }

  .site-footer__grid > * + * {
    padding-left: var(--space-6);
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

.site-footer__brand img {
  width: auto;
  height: 104px;
}

.site-footer__title {
  margin-bottom: var(--space-3);
}

.site-footer__list {
  display: grid;
  gap: var(--space-2);
  overflow-wrap: anywhere;
}

.site-footer__list a,
.site-footer__legal a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--blue-100);
  text-decoration: underline;
  text-decoration-color: var(--blue-300);
  text-underline-offset: 5px;
}

.site-footer__legal {
  margin-top: var(--space-12);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
