:root {
  --page-bg: #f6f1ea;
  --section-bg: #f4efe8;
  --divider-bg: #f4efe8;
  --ink: #2f2923;
  --soft-ink: rgba(47, 41, 35, 0.76);
  --muted-ink: rgba(47, 41, 35, 0.56);
  --glass: rgba(246, 241, 234, 0.08);
  --glass-strong: rgba(255, 248, 238, 0.38);
  --line: rgba(255, 255, 255, 0.35);
  --warm-line: rgba(88, 63, 42, 0.12);
  --shadow: 0 8px 24px rgba(60, 40, 25, 0.035);
  --film-shadow: 0 18px 58px rgba(52, 34, 22, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body,
main,
section,
.section,
.image-section {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page-bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: max(22px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  width: min(720px, calc(100% - 40px));
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.brand-link,
.nav-links a,
.nav-cta {
  color: var(--soft-ink);
  line-height: 1;
  text-decoration: none;
}

.brand-link {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 30px);
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.025em;
  transition: color 180ms var(--ease);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.42);
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.brand-link:hover,
.brand-link:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--ink);
  outline: none;
}

.site-header.is-on-dark .nav-links a,
.site-header.is-on-dark .nav-cta,
.site-header.is-on-dark .nav-toggle {
  color: rgba(255, 250, 242, 0.96);
}

.site-header.is-on-dark .nav-links a:hover,
.site-header.is-on-dark .nav-links a:focus-visible,
.site-header.is-on-dark .nav-cta:hover,
.site-header.is-on-dark .nav-cta:focus-visible {
  color: #fff8ee;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 0.56;
  transform: scaleX(1);
}

.nav-cta {
  flex: 0 0 auto;
  min-width: 86px;
  padding: 11px 18px;
  border: 1px solid rgba(88, 63, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.22);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0.02em;
  text-align: center;
  transition:
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease);
}

.site-header.is-on-dark .nav-cta {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 248, 238, 0.08);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgba(88, 63, 42, 0.2);
  background: rgba(255, 248, 238, 0.38);
}

.site-header.is-on-dark .nav-cta:hover,
.site-header.is-on-dark .nav-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 248, 238, 0.14);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(88, 63, 42, 0.1);
  border-radius: 50%;
  background: rgba(255, 248, 238, 0.22);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  grid-area: 1 / 1;
  background: currentColor;
  transition:
    transform 180ms var(--ease),
    opacity 180ms var(--ease);
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.site-header.is-menu-open .nav-toggle span:first-child {
  transform: rotate(42deg);
}

.site-header.is-menu-open .nav-toggle span:last-child {
  transform: rotate(-42deg);
}

.image-section {
  position: relative;
  width: 100%;
  overflow: clip;
  background: var(--section-bg);
}

.image-section picture {
  display: block;
}

.section-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  user-select: none;
}

.section-divider {
  height: 20px;
  background: var(--divider-bg);
}

.film-trigger {
  position: absolute;
  z-index: 2;
  top: auto;
  right: auto;
  bottom: clamp(160px, 15vw, 240px);
  left: clamp(150px, 21vw, 430px);
  display: inline-flex;
  align-items: center;
  min-height: 66px;
  padding: 7px 18px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(42, 29, 20, 0.32);
  color: #fff8ee;
  box-shadow:
    0 20px 62px rgba(44, 28, 17, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transform: none;
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  transition:
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.film-trigger:hover,
.film-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(42, 29, 20, 0.34);
  box-shadow:
    0 24px 76px rgba(44, 28, 17, 0.3),
    0 0 42px rgba(255, 236, 202, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  outline: none;
  transform: scale(1.035);
}

.film-trigger-icon {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(255, 248, 238, 0.22);
  box-shadow: inset 0 0 24px rgba(255, 248, 238, 0.12);
}

.film-trigger-icon::before {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  content: "";
  transform: translate(-42%, -50%);
}

.film-trigger-copy {
  display: block;
  margin-left: 14px;
  text-align: left;
}

.film-trigger-copy span,
.film-trigger-copy small {
  display: block;
  white-space: nowrap;
}

.film-trigger-copy span {
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-transform: uppercase;
}

.film-trigger-copy small {
  margin-top: 5px;
  color: rgba(255, 248, 238, 0.7);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.15;
}

.film-modal[hidden] {
  display: none;
}

.film-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
  opacity: 0;
  transition: opacity 240ms var(--ease);
}

.film-modal.is-open {
  opacity: 1;
}

.film-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 9, 7, 0.78);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.film-player-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0b0907;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.46);
  transform: translateY(8px) scale(0.985);
  transition: transform 240ms var(--ease);
}

.film-modal.is-open .film-player-shell {
  transform: translateY(0) scale(1);
}

.film-player,
.film-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0907;
}

.film-player {
  cursor: pointer;
}

.film-player-shell.is-placeholder::after {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.28);
  content: "";
  pointer-events: none;
}

.film-poster[hidden] {
  display: none;
}

.film-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(248, 239, 226, 0.28);
  border-radius: 50%;
  background: rgba(14, 11, 8, 0.34);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.film-close::before,
.film-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1px;
  background: #f8efe2;
  content: "";
}

.film-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.film-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.film-close:hover,
.film-close:focus-visible {
  border-color: rgba(248, 239, 226, 0.56);
  outline: none;
}

@media (max-width: 760px) {
  .site-header {
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    width: 500px;
    transform: translateX(-50%) scale(0.34);
    transform-origin: top center;
  }

  .nav-links {
    text-shadow:
      0 1px 3px rgba(255, 248, 238, 0.46),
      0 -1px 3px rgba(42, 29, 20, 0.12);
  }

  .nav-links a,
  .nav-cta {
    text-shadow:
      0 1px 3px rgba(255, 248, 238, 0.46),
      0 -1px 3px rgba(42, 29, 20, 0.12);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .film-trigger {
    bottom: clamp(22px, 7vw, 34px);
    left: clamp(62px, 18vw, 88px);
    transform: scale(0.38);
    transform-origin: left bottom;
  }

  .film-trigger:hover,
  .film-trigger:focus-visible {
    transform: scale(0.395);
  }

  .film-player-shell {
    border-radius: 6px;
  }
}

@media (max-width: 430px) {
  .site-header {
    width: 500px;
  }

  .nav-links {
    padding: 0;
  }

  .nav-cta {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
