@font-face {
  font-family: "Alexandria";
  src: url("./assets/Alexandria-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(5, 9, 10, 0.88);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Alexandria", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { color: inherit; }

.landing-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.hero {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-art {
  position: absolute;
  left: 50%;
  top: 49%;
  width: min(54vw, 880px);
  aspect-ratio: 1.1;
  transform: translate(-50%, -50%);
  opacity: .66;
  filter: saturate(1.08) contrast(1.06);
  will-change: transform, opacity;
  animation: heroFloat 13s var(--ease) infinite alternate,
             heroPulse 8s ease-in-out infinite;
}

.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(90vw, 940px);
  transform: translateY(-3vh);
  opacity: 0;
  animation: reveal 1.4s .18s var(--ease) forwards;
}

.logo {
  width: clamp(220px, 27vw, 455px);
  max-height: 150px;
  display: block;
  object-fit: contain;
  margin-bottom: clamp(46px, 6vh, 76px);
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 2.1vw, 36px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -.03em;
}

h1 span { display: block; }

.actions {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: clamp(42px, 10vh, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding: 0 clamp(28px, 18vw, 390px);
  gap: clamp(80px, 22vw, 460px);
  opacity: 0;
  animation: reveal 1.2s .72s var(--ease) forwards;
}

.cta {
  position: relative;
  min-width: 250px;
  min-height: 115px;
  padding: 18px 12px 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.cta span {
  position: relative;
  z-index: 2;
  font-size: clamp(11px, 1vw, 16px);
  line-height: 1.2;
  font-weight: 480;
  transition: opacity .35s ease, text-shadow .35s ease;
}

.cta-art {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -9px;
  width: 125px;
  height: 88px;
  object-fit: contain;
  opacity: .54;
  transform: translateX(-50%) scale(.8);
  filter: saturate(1.15);
  transition: transform .7s var(--ease), opacity .5s ease, filter .5s ease;
}

.cta:hover .cta-art,
.cta:focus-visible .cta-art {
  opacity: .92;
  transform: translateX(-50%) scale(1.05) translateY(-4px);
  filter: saturate(1.35) brightness(1.15);
}

.cta:hover span,
.cta:focus-visible span {
  text-shadow: 0 0 20px rgba(255, 255, 255, .4);
}

.cta:focus-visible,
.close-button:focus-visible,
.copy-button:focus-visible,
.email-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(18px, 4vw, 60px);
  border: 0;
  background: transparent;
  color: #fff;
  overflow: auto;
}

.modal::backdrop {
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity .4s ease;
}

.modal[open]::backdrop { opacity: 1; }

.modal[open] {
  display: grid;
  place-items: center;
  animation: modalIn .55s var(--ease) both;
}

.modal.is-closing { animation: modalOut .32s ease both; }

.modal-shell {
  position: relative;
  width: min(1120px, 94vw);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 14px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 450;
  letter-spacing: .02em;
}

.close-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 31px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s ease, transform .35s var(--ease);
}

.close-button:hover { opacity: 1; transform: rotate(90deg); }

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.contact-card {
  width: min(620px, 92vw);
  min-height: 420px;
  padding: clamp(52px, 8vw, 82px) clamp(28px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  background: url("./assets/bg.svg") center / contain no-repeat;
  opacity: .18;
  filter: blur(5px);
  animation: contactGlow 9s ease-in-out infinite alternate;
}

.contact-close { position: absolute; top: 13px; right: 13px; }

.contact-logo {
  width: min(250px, 58vw);
  max-height: 95px;
  object-fit: contain;
  margin-bottom: 45px;
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 37px);
  line-height: 1.15;
  font-weight: 560;
  letter-spacing: -.035em;
}

.contact-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.email-link {
  color: #fff;
  font-size: clamp(17px, 3vw, 24px);
  font-weight: 520;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.copy-button {
  margin-top: 27px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  padding: 11px 18px;
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

.copy-button:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255,255,255,.38); }
.copy-status { min-height: 20px; margin-top: 12px !important; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
  0% { transform: translate(-50%, -50%) rotate(-1.5deg) scale(.98); }
  55% { transform: translate(-49%, -52%) rotate(1deg) scale(1.025); }
  100% { transform: translate(-51%, -49%) rotate(-.5deg) scale(1.04); }
}

@keyframes heroPulse {
  0%, 100% { opacity: .57; }
  50% { opacity: .73; }
}

@keyframes contactGlow {
  from { transform: rotate(-3deg) scale(.95); opacity: .13; }
  to { transform: rotate(3deg) scale(1.08); opacity: .23; }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.965); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modalOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.975); }
}

@media (max-width: 780px) {
  .hero-content { transform: translateY(-8vh); }
  .hero-art { top: 43%; width: min(96vw, 650px); }
  .logo { margin-bottom: 34px; }
  h1 { max-width: 92vw; font-size: clamp(17px, 4vw, 23px); line-height: 1.28; }
  .actions {
    bottom: max(16px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px;
  }
  .cta { min-width: 0; min-height: 82px; padding: 12px 10px 34px; }
  .cta-art { width: 95px; height: 65px; }
  .modal { padding: 12px; }
  .contact-card { min-height: 390px; }
}

@media (max-height: 650px) and (orientation: landscape) {
  .hero-content { transform: translateY(-2vh); }
  .logo { width: 220px; margin-bottom: 24px; }
  h1 { font-size: 17px; }
  .actions { bottom: 10px; }
  .cta { min-height: 70px; padding-bottom: 25px; }
}

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