/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: #060605;
  color: #f3ede2;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

:root {
  --gold: #cba25a;
  --gold-soft: #e6cd9a;
  --ink: #060605;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* subtle film-grain overlay for a premium, non-flat finish */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: calc(1.5rem + var(--safe-top)) clamp(1.25rem, 4vw, 3.5rem) 1.5rem;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}
.brand {
  pointer-events: auto;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.06em;
  color: #f3ede2;
  opacity: 0;
  animation: fadeDown 1s ease 0.5s forwards;
}
.brand span { color: var(--gold); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #060605 url("img/poster.jpg") center 25% / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-video.is-ready { opacity: 1; }

/* readability scrim: strongest at the bottom where the text sits */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(3,3,2,0.92) 0%, rgba(3,3,2,0.6) 20%, rgba(3,3,2,0.05) 45%, rgba(3,3,2,0.35) 100%),
    linear-gradient(to bottom, rgba(3,3,2,0.55) 0%, rgba(3,3,2,0) 22%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 18vw rgba(0,0,0,0.55);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 4rem) clamp(3rem, 9vh, 6rem);
  padding-bottom: calc(clamp(3rem, 9vh, 6rem) + var(--safe-bottom));
  text-align: center;
}

.hero-name {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2.05rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fbf7ee;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 1.1s cubic-bezier(.16,.84,.44,1) 0.9s forwards;
}

.hero-title {
  margin: 0.6rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.65rem);
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1.1s cubic-bezier(.16,.84,.44,1) 1.15s forwards;
}

.hero-title::before,
.hero-title::after {
  content: "";
  display: inline-block;
  width: clamp(24px, 4vw, 46px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  vertical-align: middle;
  margin: 0 0.9rem 0.15rem 0;
}
.hero-title::after {
  background: linear-gradient(to left, transparent, var(--gold));
  margin: 0 0 0.15rem 0.9rem;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .brand, .hero-name, .hero-title {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-video { transition: none; }
}

/* ---------- Small-height phones (landscape) ---------- */
@media (max-height: 480px) {
  .hero-content { padding-bottom: clamp(1.25rem, 6vh, 2.5rem); }
  .site-header { padding-top: calc(0.9rem + var(--safe-top)); padding-bottom: 0.9rem; }
}
