@font-face {
  font-family: "Clash Display";
  src: url("fonts/headings/ClashDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/body/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111315;
  --paper: #f5f3ee;
  --cream: #fbf9f4;
  --coral: #ff5a3c;
  --night: #08100f;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--night);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2 {
  margin: 0;
  font-family: "Clash Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 22px clamp(20px, 5vw, 56px);
}

.brand {
  font-family: "Clash Display", Georgia, serif;
  font-size: clamp(1.4rem, 1.6vw, 1.7rem);
  line-height: 1;
  color: var(--cream);
  letter-spacing: 0.01em;
  mix-blend-mode: difference;
}

/* ---------- Hero (full bleed) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
  text-align: right;
}

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

.hero-video {
  z-index: -3;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  opacity: 1;
  transition: opacity 1200ms ease;
}

.hero-video-alt {
  opacity: 0;
}

body.video-alt .hero-video-primary {
  opacity: 0;
}

body.video-alt .hero-video-alt {
  opacity: 1;
}

.hero-shade {
  z-index: -2;
  background: linear-gradient(180deg, rgba(8, 16, 15, 0) 0%, rgba(8, 16, 15, 0.45) 60%, rgba(8, 16, 15, 0.85) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: 880px;
}

h1 {
  font-size: clamp(4.5rem, 11vw, 11rem);
  line-height: 0.9;
  margin-bottom: 4px;
}

.hero-tagline {
  max-width: 720px;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  line-height: 1.15;
  font-weight: 400;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 18px;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.5;
  color: rgba(251, 249, 244, 0.8);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--coral);
  color: var(--cream);
}

/* ---------- Dialog ---------- */

.access-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: none;
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
}

.access-dialog::backdrop {
  background: rgba(8, 16, 15, 0.7);
  backdrop-filter: blur(6px);
}

.access-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 28px;
}

.access-form h2 {
  font-size: 1.6rem;
  line-height: 1.1;
}

.access-form p {
  font-size: 0.95rem;
  color: #4a4d52;
}

.access-form input[type="email"] {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(17, 19, 21, 0.18);
  border-radius: 2px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 160ms ease;
}

.access-form input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--ink);
}

.access-form .button {
  margin-top: 4px;
  background: var(--ink);
  color: var(--cream);
}

.access-form .button:hover,
.access-form .button:focus-visible {
  background: var(--coral);
  color: var(--cream);
}

.form-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #4a4d52;
}

.form-status[data-state="success"] {
  color: var(--coral);
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */

@media (max-width: 620px) {
  .hero-content {
    width: 100%;
    align-items: stretch;
  }

  .hero-content .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}
