/* Homepage opening — one cinematic frame. Scoped to .film-home. */

.film-home .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.78), rgba(8, 8, 8, 0));
  border-bottom-color: transparent;
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.film-home .site-header.is-solid,
.film-home .site-header:has(.nav.open) {
  background: rgba(11, 11, 11, 0.92);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px);
}
.film-home .logo,
.film-home .nav a {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.film-home .site-header.is-solid .logo,
.film-home .site-header.is-solid .nav a,
.film-home .site-header:has(.nav.open) .nav a {
  text-shadow: none;
}

.film {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #070707;
  isolation: isolate;
}
.film-bg,
.film-fog,
.film-goldlight,
.film-vignette,
.film-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.film-bg {
  z-index: 0;
  overflow: hidden;
}
.film-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.08);
  transform-origin: 58% 42%;
  filter: saturate(0.82) contrast(1.08) brightness(0.78);
  animation: film-ken 32s ease-in-out infinite alternate;
  will-change: transform;
}
.film-fog {
  z-index: 1;
  inset: -12% -18%;
  background:
    radial-gradient(ellipse 46% 32% at 18% 78%, rgba(245, 242, 235, 0.09), transparent 70%),
    radial-gradient(ellipse 42% 28% at 78% 62%, rgba(201, 162, 39, 0.07), transparent 68%),
    radial-gradient(ellipse 55% 24% at 50% 100%, rgba(180, 190, 186, 0.06), transparent 72%);
  mix-blend-mode: screen;
  animation: film-fog 26s ease-in-out infinite alternate;
}
.film-goldlight {
  z-index: 1;
  inset: auto;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  right: 6%;
  top: 16%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), rgba(201, 162, 39, 0.05) 42%, transparent 70%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: film-glow 18s ease-in-out infinite alternate;
}
.film-vignette {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.55) 28%, rgba(7, 7, 7, 0.18) 52%, rgba(7, 7, 7, 0.42) 100%),
    linear-gradient(to right, rgba(7, 7, 7, 0.72) 0%, rgba(7, 7, 7, 0.28) 42%, rgba(7, 7, 7, 0.15) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
}
.film-grain {
  z-index: 3;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
  background-size: 180px 180px;
  animation: film-grain 0.9s steps(2) infinite;
}

.film-copy {
  position: relative;
  z-index: 4;
  width: min(100% - 2.4rem, 1040px);
  margin: 0 auto 0 0;
  padding: calc(var(--header-h) + 1.5rem) clamp(1.15rem, 5vw, 4.5rem) clamp(2.4rem, 8vh, 5.5rem);
}
.film-kicker {
  margin: 0 0 1rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-family: var(--sans);
  opacity: 0;
  transform: translateY(0.7rem);
  animation: film-rise 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) 0.15s forwards;
}
.film h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(3.5rem, 7.6vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #f7f3ea;
  text-wrap: balance;
}
.film h1 .word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0;
  transform: translateY(1.15rem);
  animation: film-rise 1s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}
.film h1 .word:nth-child(1) { animation-delay: 0.32s; }
.film h1 .word:nth-child(2) { animation-delay: 0.58s; }

.film-line {
  display: block;
  width: min(11.5rem, 42vw);
  height: 8px;
  margin: 1.35rem 0 1.05rem;
  overflow: visible;
}
.film-line line {
  stroke: #d4af37;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 168;
  stroke-dashoffset: 168;
  animation: film-draw 1.25s cubic-bezier(0.22, 0.7, 0.2, 1) 0.95s forwards;
}
.film-line circle {
  fill: #d4af37;
  opacity: 0;
  animation: film-rise 0.45s ease 1.95s forwards;
}
.film-sub {
  margin: 0;
  max-width: 28rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(245, 242, 235, 0.78);
  opacity: 0;
  transform: translateY(0.8rem);
  animation: film-rise 0.85s cubic-bezier(0.22, 0.7, 0.2, 1) 1.15s forwards;
}
.film-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem 1.6rem;
  margin-top: 1.7rem;
  opacity: 0;
  transform: translateY(0.8rem);
  animation: film-rise 0.85s cubic-bezier(0.22, 0.7, 0.2, 1) 1.35s forwards;
}
.film-actions .btn {
  width: auto;
  min-width: 8.5rem;
  padding: 0.95rem 1.7rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.film-quiet {
  color: rgba(245, 242, 235, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 0.15rem;
}
.film-quiet:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.film-quiet:focus-visible,
.film-actions .btn:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 4px;
}

@keyframes film-ken {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.18) translate3d(-2.2%, -1.4%, 0); }
}
@keyframes film-fog {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(4%, -3%, 0); }
}
@keyframes film-glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  to { transform: translate3d(-6%, 8%, 0) scale(1.12); opacity: 1; }
}
@keyframes film-grain {
  0% { background-position: 0 0; }
  100% { background-position: 80px -60px; }
}
@keyframes film-rise {
  to { opacity: 1; transform: none; }
}
@keyframes film-draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 720px) {
  .film-bg img { object-position: center 30%; }
  .film-copy {
    width: 100%;
    padding: calc(var(--header-h) + 1rem) 1.15rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  }
  .film h1 {
    font-size: clamp(2.85rem, 13.6vw, 3.7rem);
    max-width: 100%;
    letter-spacing: -0.03em;
  }
  .film h1 .word {
    display: block;
    margin-right: 0;
  }
  .film-kicker { letter-spacing: 0.2em; font-size: 0.68rem; }
  .film-sub { font-size: 1.05rem; }
  .film-actions { gap: 1rem 1.25rem; }
  .film-actions .btn { width: auto; }
  .film-goldlight { right: -10%; top: 8%; width: 70vw; height: 70vw; }
}

@media (prefers-reduced-motion: reduce) {
  .film-bg img,
  .film-fog,
  .film-goldlight,
  .film-grain,
  .film-kicker,
  .film h1 .word,
  .film-line line,
  .film-line circle,
  .film-sub,
  .film-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .film-bg img { transform: scale(1.04); }
  .film-home .site-header { transition: none; }
}
