:root {
  --bg: #0b0907;
  --bg-deep: #050403;
  --ink: #efe3c8;
  --muted: #b7a98d;
  --faint: rgba(239, 227, 200, .18);
  --line: rgba(239, 227, 200, .42);
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(99, 73, 43, .28), transparent 42rem),
    linear-gradient(180deg, #15100b 0, var(--bg) 38rem, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .2;
  background-image:
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.82)),
    url("../img/hero-masks.webp");
  background-size: cover;
  background-position: center top;
  filter: grayscale(.8);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 64px;
  display: grid;
  grid-template-columns: 140px 1fr 56px;
  gap: 16px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(5,4,3,.86), rgba(5,4,3,.45));
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 92px;
}

.brand img {
  width: 82px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 46px);
}

.nav a {
  color: rgba(239, 227, 200, .82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.nav a:hover {
  color: #fff2d2;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  justify-self: end;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--ink);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.moose-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg,
.hero-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  filter: grayscale(.75) contrast(1.1) brightness(.54);
}

.hero-vignette {
  background:
    radial-gradient(circle at 50% 44%, rgba(15,12,8,.18), rgba(5,4,3,.62) 54%, #050403 100%),
    linear-gradient(180deg, rgba(5,4,3,.24), #050403 94%);
}

.hero-lockup {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 38px));
  display: grid;
  justify-items: center;
  padding-top: 58px;
}

.hero-lockup img {
  width: min(1290px, 92vw);
  max-height: 54svh;
  object-fit: contain;
  margin-bottom: 32px;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 8vw, 88px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-lockup p {
  max-width: 560px;
  margin: 0;
  color: rgba(239, 227, 200, .86);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.35;
}

.content-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.content-section h2 {
  margin-bottom: 16px;
  color: #f7e9c9;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  font-weight: 400;
  text-align: center;
}

.section-rule {
  width: 100%;
  max-width: 520px;
  height: 1px;
  margin: 0 auto 32px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.content-section h3 {
  max-width: 760px;
  margin: 0 auto 24px;
  color: #f3dfb6;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.22;
  font-weight: 400;
  text-align: center;
}

.content-section p {
  max-width: 780px;
  margin: 0 auto 18px;
  color: rgba(239, 227, 200, .78);
  font-size: 18px;
  line-height: 1.62;
}

.timeline {
  max-width: 820px;
  margin: 56px auto 0;
}

.timeline h4 {
  margin-bottom: 26px;
  color: #f7e9c9;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.timeline article {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 34px;
  padding: 26px 0;
  border-top: 1px solid var(--faint);
}

.timeline time {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.timeline h5 {
  margin: 0 0 8px;
  color: #f0dfbb;
  font-size: 20px;
  font-weight: 400;
}

.timeline p {
  margin: 0;
  color: rgba(239, 227, 200, .72);
  font-size: 16px;
  line-height: 1.5;
}

.video-section {
  padding-top: 42px;
}

.video-frame {
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  margin: 42px auto 0;
  border: 1px solid var(--faint);
  background: #050403;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.screenshot-grid button {
  min-height: 220px;
  padding: 0;
  border: 1px solid var(--faint);
  background: #050403;
  cursor: zoom-in;
  overflow: hidden;
}

.screenshot-grid button:nth-child(1),
.screenshot-grid button:nth-child(4) {
  grid-column: span 2;
}

.screenshot-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.55) contrast(1.1) brightness(.72);
  transition: transform .35s ease, filter .35s ease;
}

.screenshot-grid button:hover img {
  transform: scale(1.04);
  filter: grayscale(.2) contrast(1.05) brightness(.86);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 54px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.split-section h2,
.split-section h3,
.split-section p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.split-section .section-rule {
  margin-left: 0;
  max-width: 360px;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--faint);
  filter: grayscale(.5) contrast(1.06) brightness(.78);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
  margin-top: 42px;
}

.team-card {
  min-width: 0;
  padding: 22px 16px 24px;
  border-top: 1px solid var(--faint);
  text-align: center;
}

.team-card img {
  width: min(168px, 72%);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  filter: grayscale(.55) contrast(1.08) brightness(.82);
}

.team-card h3 {
  margin-bottom: 9px;
  color: #f7e9c9;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 400;
  text-align: center;
}

.team-card p {
  max-width: 240px;
  margin: 0 auto;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.partners-section {
  padding-top: 58px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.partner-card {
  display: grid;
  min-height: 210px;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--faint);
  background: rgba(239, 227, 200, .025);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.partner-card img {
  max-width: min(220px, 82%);
  max-height: 108px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.02) brightness(.9);
}

.partner-card span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .12em;
}

a.partner-card:hover {
  background: rgba(239, 227, 200, .07);
}

.footer {
  padding-bottom: 56px;
  text-align: center;
}

.footer p {
  margin-bottom: 28px;
}

address {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-style: normal;
}

address a {
  min-width: 130px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
}

address a:hover {
  background: rgba(239, 227, 200, .08);
}

.lightbox {
  width: min(1100px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  background: #050403;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .86);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(5, 4, 3, .86);
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 100px 1fr 48px;
    padding: 10px 16px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 64px 16px auto;
    display: none;
    grid-column: 1 / -1;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(5,4,3,.96);
  }

  body.nav-open .nav {
    display: grid;
    gap: 12px;
  }

  .nav a {
    padding: 10px 0;
  }

  .moose-hero {
    min-height: 86svh;
  }

  .hero-lockup img {
    width: min(840px, 86vw);
    max-height: 46svh;
  }

  .content-section {
    padding: 62px 0;
  }

  .timeline article,
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid button,
  .screenshot-grid button:nth-child(1),
  .screenshot-grid button:nth-child(4) {
    grid-column: auto;
    min-height: 230px;
  }

  .team-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .team-card img {
    width: min(180px, 68vw);
  }

  .partner-card {
    min-height: 178px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
