:root {
  --violet: #5119c2;
  --lime: #d4ed73;
  --blue: #749bd0;
  --ink: #111111;
  --muted: #858975;
  --white: #fffef8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--lime);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  width: 100%;
  overflow: hidden;
}

.topbar {
  width: 100%;
  color: var(--white);
  background: var(--violet);
}

.topbar-inner {
  height: 106px;
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 27px;
}

.topbar .local-time { justify-self: start; }
.topbar .download-link { justify-self: end; }

.topbar-logo {
  justify-self: center;
  height: 40px;
  width: auto;
  display: block;
}

.local-time {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.local-time span {
  color: rgba(255,255,255,.55);
  font-weight: 700;
}

.hero {
  position: relative;
  height: 562px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(70,92,31,.08) .75px, transparent .9px) 0 0 / 4px 4px,
    var(--lime);
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    linear-gradient(90deg, transparent calc(25% - .5px), rgba(60,75,30,.18) 25%, transparent calc(25% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(60,75,30,.18) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(75% - .5px), rgba(60,75,30,.18) 75%, transparent calc(75% + .5px));
}

.hero-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 24px 31px;
  text-align: center;
}

.credit {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 40px;
  color: var(--white);
  font-size: clamp(88px, 10.4vw, 138px);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .74;
  text-transform: uppercase;
}

h1 span { display: block; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.button[aria-disabled="true"] { opacity: .72; cursor: default; }
.button[aria-disabled="true"]:hover { transform: none; }

.button--outline {
  min-width: 189px;
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}

.button--outline:hover { color: var(--violet); background: var(--white); }
.button--solid { min-width: 145px; color: var(--ink); background: var(--white); }
.button--dark { color: var(--white); background: var(--ink); }

.hero-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero-note p { margin: 0; }

.frames {
  width: 100%;
  background:
    radial-gradient(circle at 1px 1px, rgba(20,32,56,.13) .9px, transparent 1px) 0 0 / 4px 4px,
    var(--blue);
}

.frames-inner {
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, calc(25% - 9px));
  gap: 22px;
  padding: 25px 27px;
}

.frames figure {
  aspect-ratio: 1.42 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(20,32,56,.85);
  border-radius: 10px;
  background: #e9e5d8;
}

.frames img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

.frames figure:hover img { transform: scale(1.035); }

.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 80px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(19,7,47,.95);
  backdrop-filter: blur(14px);
  cursor: default;
}

.video-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 1500px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070c;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #05070c;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(rgba(19,7,47,.78), rgba(19,7,47,.9)), url("assets/video-poster.webp") center / cover;
  text-align: center;
}

.video-placeholder p { margin: 0; font-size: 18px; font-weight: 700; }
.video-placeholder small { color: rgba(255,255,255,.65); }

.modal-close {
  position: fixed;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(19,7,47,.3);
  cursor: pointer;
}

.modal-close span {
  position: absolute;
  left: 13px;
  top: 23px;
  width: 21px;
  height: 1px;
  background: white;
}

.modal-close span:first-child { transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .hero { height: 610px; }
  .hero-copy { padding-top: 160px; }
  h1 { font-size: clamp(72px, 13vw, 108px); }
  .frames-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
}

@media (max-width: 560px) {
  .topbar-inner { height: 86px; padding: 0 18px; }
  .local-time { font-size: 12px; }
  .topbar-logo { height: 24px; }
  .button--outline { min-width: 0; min-height: 38px; padding: 0 16px; font-size: 11px; }
  .hero { height: calc(100svh - 86px); min-height: 590px; max-height: 690px; }
  .hero-copy { padding: 140px 16px 25px; }
  .credit { margin-bottom: 22px; }
  h1 { margin-bottom: 38px; font-size: clamp(56px, 18vw, 88px); line-height: .78; }
  .hero-note { max-width: 350px; font-size: 9px; line-height: 1.25; }
  .frames-inner { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  .frames figure { border-radius: 5px; }
  .video-modal { padding: 0; }
  .video-wrap { width: 100%; }
  .modal-close { top: 14px; right: 14px; }
}

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