:root {
  color-scheme: dark;
  --ink: #080d17;
  --text: #f7f7fa;
  --gold: #f0c777;
  --line: #2c3444;
  --gutter: clamp(22px, 5.2vw, 80px);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100vh; min-height: 100svh; position: relative; isolation: isolate; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
button, a { color: inherit; }
a { text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, p { margin: 0; }
section[id] { scroll-margin-top: 24px; }
.shell { width: min(100% - 2 * var(--gutter), 1290px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; border: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px; background: var(--ink); }
.site-header { position: absolute; inset: 0 0 auto; z-index: 4; padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; align-items: center; min-height: 91px; }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; font-size: 13px; font-weight: 700; letter-spacing: .15em; }
.icon-button { display: inline-grid; place-items: center; background: transparent; border: 0; width: 44px; height: 44px; padding: 0; }

main { display: flex; flex: 1; flex-direction: column; }
.hero { display: grid; flex: 1; }
.hero-wide, body::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-wide { z-index: -2; display: grid; place-items: center; container-type: size; }
.hero-wide img {
  width: 100%; width: min(100%, 177.7778cqh); height: auto; max-height: 100%; object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
              linear-gradient(180deg, transparent, #000 3%, #000 93%, transparent);
  mask-composite: intersect;
}
body::after {
  z-index: -1; content: ""; pointer-events: none;
  background: linear-gradient(180deg,#080e1a8c 0%,#0810200a 25%,transparent 72%,#080d1770 100%),
              linear-gradient(90deg,#070d18a6 0%,#070d1870 34%,transparent 63%);
}
.eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; font-size: 12px; font-weight: 610; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 37px; height: 1px; background: var(--gold); }
.eyebrow span { color: var(--gold); }
.hero-subtitle { font-size: clamp(21px, 2.12vw, 32px); line-height: 1.28; letter-spacing: -.024em; color: #f3f0f1; }
.hero-film {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 9/16; border: 1px solid #f6e6c8a6;
  border-radius: 18px; box-shadow: 0 18px 40px #01040b9c, 0 0 22px #e4b77e29; background: #0b1324;
}
.hero-film::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #030711bb); pointer-events: none; }
.hero-poster, .hero-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-film video { pointer-events: none; }
.hero-film.has-error video { visibility: hidden; }
.play-button {
  display: grid; place-items: center; width: 61px; height: 61px; padding: 0; border: 1px solid #fff9;
  border-radius: 50%; background: #0a1023c9; color: white; transition: background .2s, border-color .2s;
}
.play-button:hover { background: #171c2f; border-color: var(--gold); }
.hero-play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hero-film.is-playing .hero-play { inset: 14px 14px auto auto; transform: none; width: 44px; height: 44px; }
.hero-play:not(:focus-visible) { opacity: 0; pointer-events: none; }
.play-symbol { width: 0; height: 0; margin-left: 4px; border: solid transparent; border-width: 8px 0 8px 12px; border-left-color: currentColor; }
.is-playing .play-symbol { width: 12px; height: 15px; margin: 0; border: solid currentColor; border-width: 0 3px; }
.contact { position: relative; z-index: 1; color: #fff52e; text-align: center; text-shadow: 0 2px 9px #000; }
.contact-inner {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(10px, 2vw, 20px); min-height: clamp(124px, 18svh, 190px);
  padding-block: 10px max(22px, calc(15px + env(safe-area-inset-bottom, 0px)));
}
.contact-email {
  display: grid; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere;
  font-size: clamp(11px, 2.8vw, 12px); font-weight: 600; letter-spacing: .14em;
}
.contact-links { display: flex; justify-content: center; gap: clamp(19px, 8vw, 36px); }
.contact-links a:hover { color: #fffbd2; }
.contact-email:hover { text-decoration: underline; text-underline-offset: .26em; }
.contact a:focus-visible { outline-color: currentColor; }

@media (min-width: 701px) {
  body { --desktop-contact-height: clamp(122px, 14.5svh, 176px); }
  .hero-inner {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
    gap: clamp(12px, 2.2svh, 22px); padding-block: 80px 13px;
  }
  .hero-film {
    width: min(100%, 360px, max(128px, calc((100svh - var(--desktop-contact-height) - 228px) * .5625)));
    flex: none;
  }
  .contact-inner {
    min-height: var(--desktop-contact-height); gap: clamp(6px, 1svh, 12px);
    padding-block: 8px 16px;
  }
}
@media (min-width: 701px) and (max-width: 950px) {
  .header-inner { min-height: 76px; }
  .hero-wide { align-items: end; }
  .hero-inner { padding-top: 80px; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .shell { width: calc(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right))); }
  .header-inner { min-height: 64px; }
  .hero-wide, body::after { display: none; }
  .hero-inner { display: flex; align-items: end; justify-content: center; padding: calc(126px + env(safe-area-inset-top, 0px)) 0 24px; }
  .hero-copy { position: relative; z-index: 1; align-self: end; text-align: center; padding: 0; }
  .eyebrow { gap: 8px; justify-content: center; margin-bottom: 16px; font-size: 9px; letter-spacing: .19em; }
  .eyebrow::before { width: 20px; }
  .hero-subtitle { font-size: clamp(17px, 4.8vw, 24px); line-height: 1.3; }
  .hero-film { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
  .hero-film::after {
    inset: 0;
    background: linear-gradient(180deg, #080d17d4 0%, transparent 28%, #080d1720 48%, #080d17a6 73%, #080d17ca 100%);
  }
  .hero-play, .hero-film.is-playing .hero-play { inset: max(78px, calc(69px + env(safe-area-inset-top, 0px))) max(20px, env(safe-area-inset-right)) auto auto; width: 44px; height: 44px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.entry-intro { display: none; }
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .entry-visible .entry-intro {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 8;
    background: #090d15; opacity: 1; pointer-events: none; transition: opacity 260ms ease-out;
  }
  .entry-intro::before {
    content: ""; width: min(42vw, 170px); aspect-ratio: 288/196;
    background: url("assets/logo-intro.webp") center / contain no-repeat;
  }
  .entry-visible :is(.site-header, .hero-copy, .contact) {
    transition: opacity 300ms ease, transform 300ms ease;
  }
  .entry-visible:not(.entry-leaving) :is(.site-header, .hero-copy, .contact) {
    opacity: 0; transform: translateY(5px);
  }
  .entry-leaving .entry-intro { opacity: 0; }
}
