:root {
  --bg: #0c0907;
  --text: #f4ede4;
  --muted: rgba(244, 237, 228, 0.76);
  --overlay-top: rgba(14, 10, 7, 0.65);
  --overlay-bottom: rgba(14, 10, 7, 0.9);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Open Sans", sans-serif;
}

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

.hero-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
  isolation: isolate;
}

.video-layer,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.72);
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(180deg, var(--overlay-top) 0%, rgba(14, 10, 7, 0.2) 38%, var(--overlay-bottom) 100%),
    radial-gradient(circle at 20% 20%, rgba(158, 104, 58, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 80% 72%, rgba(255, 214, 168, 0.08) 0%, transparent 36%);
}

.site-header,
.hero-content,
.site-footer,
.video-meta {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  display: block;
  width: auto;
  height: clamp(26px, 4vw, 34px);
  object-fit: contain;
}

.video-meta {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.video-meta-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content {
  align-self: center;
  width: 100%;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 237, 228, 0.8);
}

.hero-title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(2.56rem, 4.8vw, 4.64rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  margin-inline: auto;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 10px;
  padding-top: 20px;
  text-align: center;
}

.footer-status,
.footer-link {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-link {
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

body[data-video-fallback="true"] .hero-video {
  display: none;
}

body[data-video-fallback="true"] .video-layer {
  background:
    linear-gradient(135deg, rgba(12, 9, 7, 0.1), rgba(12, 9, 7, 0.25)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=80") center center / cover no-repeat;
}

@media (max-width: 900px) {
  .hero-shell {
    padding: 22px;
  }

  .video-meta {
    left: 22px;
    bottom: 22px;
  }
}

@media (min-width: 901px) {
  .hero-title {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .hero-shell {
    padding: 18px;
  }

  .video-meta {
    display: none;
  }

  .hero-content {
    align-self: center;
    padding: 0;
  }

  .hero-title {
    font-size: clamp(2.16rem, 8.4vw, 2.8rem);
    white-space: normal;
  }

  .hero-copy {
    font-size: 0.98rem;
    max-width: 30ch;
  }

  .site-footer {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    animation: none;
  }

  .footer-link {
    transition: none;
  }
}
