:root {
  --lime: #c9f36a;
  --lime-bright: #d8ff83;
  --blue: #8db6e5;
  --cream: #f6f3e8;
  --ink: #142038;
  --white: #fffef8;
  --line: rgba(20, 32, 56, 0.42);
  --page-pad: clamp(18px, 2vw, 34px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body.modal-open { overflow: hidden; }

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

.site-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: var(--page-pad);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - (var(--page-pad) * 2)));
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(20,32,56,.13) 1px, transparent 1.2px) 0 0 / 5px 5px,
    linear-gradient(135deg, var(--lime-bright), var(--lime));
  border: 1px solid rgba(255,255,255,.2);
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .78;
  background:
    linear-gradient(90deg, transparent calc(25% - .5px), var(--line) 25%, transparent calc(25% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(75% - .5px), var(--line) 75%, transparent calc(75% + .5px)),
    linear-gradient(180deg, transparent 112px, var(--line) 113px, transparent 114px);
}

.topbar {
  position: relative;
  z-index: 2;
  height: 113px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 2.2vw, 40px);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-mark {
  position: relative;
  width: 24px;
  height: 24px;
}

.project-mark i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.project-mark i:nth-child(1) { left: 1px; top: 7px; background: #79a961; }
.project-mark i:nth-child(2) { left: 8px; top: 1px; background: #f2cf54; }
.project-mark i:nth-child(3) { right: 1px; top: 8px; background: #9bc7ee; }
.project-mark i:nth-child(4) { left: 8px; bottom: 0; background: #4f87bf; }

.topbar .button { justify-self: end; }

.hero-copy {
  position: relative;
  z-index: 2;
  min-height: calc(min(760px, calc(100svh - (var(--page-pad) * 2))) - 113px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 20px 86px;
  text-align: center;
}

.credit {
  margin: 0 0 24px;
  color: rgba(20,32,56,.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 clamp(34px, 5vh, 58px);
  color: var(--white);
  font-size: clamp(64px, 10.8vw, 170px);
  font-weight: 800;
  letter-spacing: -.078em;
  line-height: .76;
  text-transform: uppercase;
}

h1 span { display: block; }

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

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.button--outline { color: var(--white); border-color: var(--white); background: transparent; }
.button--outline:hover { color: var(--ink); background: var(--white); }
.button--solid { color: var(--ink); background: var(--white); }
.button--dark { color: var(--white); background: var(--ink); }

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.frames {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  padding: clamp(24px, 3vw, 44px);
  background:
    radial-gradient(circle at 1px 1px, rgba(20,32,56,.15) 1px, transparent 1.2px) 0 0 / 5px 5px,
    var(--blue);
  border-inline: 1px solid rgba(255,255,255,.2);
}

.frames figure {
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(20,32,56,.72);
  border-radius: 8px;
  background: var(--cream);
}

.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); }

.presentation-copy {
  display: grid;
  grid-template-columns: .8fr 1.7fr auto;
  gap: clamp(28px, 5vw, 92px);
  align-items: end;
  padding: clamp(56px, 8vw, 120px) clamp(26px, 5vw, 80px);
  background: var(--cream);
  border: 1px solid rgba(255,255,255,.2);
  border-top: 0;
}

.version {
  margin: 12px 0 0;
  color: rgba(20,32,56,.58);
  font-size: 12px;
}

.copy-body {
  max-width: 650px;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.copy-body p { margin: 0; }
.copy-body p + p { margin-top: 1em; color: rgba(20,32,56,.66); }

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 26px clamp(20px, 3vw, 44px);
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.footer p { margin: 0; }
.footer p:nth-child(2) { text-align: center; }
.footer p:last-child { text-align: right; }

.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(8, 13, 24, .94);
  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(8,13,24,.78), rgba(8,13,24,.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(8,13,24,.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) {
  .grid-lines {
    background:
      linear-gradient(90deg, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
      linear-gradient(180deg, transparent 92px, var(--line) 93px, transparent 94px);
  }
  .topbar { height: 93px; }
  .topbar .eyebrow span { display: none; }
  .hero-copy { min-height: calc(100svh - 130px); }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presentation-copy { grid-template-columns: 1fr; align-items: start; }
  .presentation-copy .button { justify-self: start; }
}

@media (max-width: 560px) {
  :root { --page-pad: 0px; }
  .hero { min-height: 100svh; border: 0; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .project-mark { display: none; }
  .topbar .button { min-height: 38px; padding-inline: 16px; font-size: 10px; }
  .hero-copy { min-height: calc(100svh - 93px); padding-bottom: 80px; }
  h1 { font-size: clamp(56px, 18vw, 92px); line-height: .82; }
  .frames { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .frames figure { border-radius: 4px; }
  .presentation-copy { padding: 58px 22px; }
  .copy-body { font-size: 22px; }
  .footer { grid-template-columns: 1fr; }
  .footer p:nth-child(2), .footer p:last-child { text-align: left; }
  .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; }
}
