@font-face {
  font-family: 'IBM Plex Sans';
  src: url('./assets/IBMPlexSans-Regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #10100f;
  --foreground: #f4f0e8;
  --muted: #b2aaa4;
  --red: #ed3e4d;
  --gutter: clamp(20px, 2.65vw, 52px);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.masthead, .footer {
  padding-inline: var(--gutter);
  font-size: 0.8125rem;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 30px;
  color: var(--muted);
}

.brand, .locations {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { flex: none; }
.locations span { color: var(--red); }

.main { flex: 1; }

.scene {
  position: relative;
  overflow: hidden;
  height: clamp(330px, 61svh, 680px);
  margin-inline: var(--gutter);
  isolation: isolate;
}

.reel {
  position: absolute;
  inset: 24% 0 11%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 9%, black 91%, transparent);
}

.reel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #10100f25 0%, #10100f70 42%, #10100f 99%);
  content: '';
}

.reel-track, .reel-group {
  display: flex;
  width: max-content;
  height: 100%;
}

.reel-group { flex: none; gap: 8px; padding-right: 8px; }
.reel-track.is-ready { animation: reel 54s linear infinite; }

.reel-group img {
  display: block;
  width: clamp(260px, 33vw, 530px);
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) saturate(.8);
}

@keyframes reel {
  to { transform: translateX(-50%); }
}

.wordmark {
  --wordmark-stretch: 2.16;
  position: absolute;
  display: grid;
  place-items: center;
  inset: 3% 7% 6%;
  pointer-events: none;
}

.wordmark img, .wordmark canvas { grid-area: 1 / 1; }
.wordmark img {
  width: 100%;
  height: auto;
  transform: scaleY(var(--wordmark-stretch));
}
.wordmark canvas { width: 100%; height: 100%; }

.announcement {
  padding: 0 var(--gutter) 2px;
  text-align: center;
}

.status {
  margin: 0 0 12px;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .23em;
}

.status::before {
  display: inline-block;
  margin-right: 9px;
  width: 6px;
  height: 6px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--red);
  content: '';
}

h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.intro { margin: 10px 0 0; color: var(--muted); }

.footer {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 360px) 1fr;
  align-items: start;
  gap: 20px;
  padding-block: 0 22px;
}

.footer-desks { display: grid; gap: 5px; color: var(--muted); }
.footer-contact { grid-column: 3; text-align: right; font-style: normal; }
.updates { margin-top: 14px; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--red); }

.updates-field {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f4f0e85c;
}

.updates-field input, .updates-field button {
  min-height: 44px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.updates-field input {
  width: 100%;
  min-width: 0;
  padding: 0 8px 0 0;
}

.updates-field input::placeholder { color: var(--muted); }
.updates-field button { padding: 0; white-space: nowrap; cursor: pointer; }
.updates-field button:hover { color: var(--red); }
.updates-note { margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 660px) {
  .masthead { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 20px 9px; }
  .locations { padding-left: 37px; }
  .main { flex: none; }
  .scene { margin-inline: 0; height: clamp(272px, 40svh, 380px); }
  .reel { inset: 38% var(--gutter) 17%; }
  .reel-group img { width: clamp(150px, 47vw, 310px); }
  .wordmark { --wordmark-stretch: 2.1; inset: 22% var(--gutter) 0; }
  .announcement { padding-bottom: 20px; }
  .footer {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: auto;
    padding-block: 22px clamp(32px, 8svh, 68px);
  }
  .updates { margin-top: 0; }
  .footer-contact { grid-column: auto; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track.is-ready { animation: none; }
}
