:root {
  --navy: #0b1630;
  --navy-deep: #071024;
  --pearl: #f3f1ec;
  --paper: #fbfaf7;
  --ink: #172a47;
  --muted: #77786f;
  --champagne: #b4a07d;
  --line-dark: rgba(243, 241, 236, 0.2);
  --line-light: rgba(23, 42, 71, 0.18);
  --shell: min(92vw, 1500px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--navy-deep);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--pearl);
  background: var(--navy-deep);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.is-modal-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

::selection { color: var(--navy); background: #e7d9be; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  color: var(--navy);
  background: var(--pearl);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 1rem 4vw;
  border-bottom: 1px solid transparent;
  transition: min-height 300ms ease, background 300ms ease, border-color 300ms ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  border-color: var(--line-dark);
  background: rgba(7, 16, 36, 0.86);
  backdrop-filter: blur(16px);
}

.wordmark {
  justify-self: start;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.wordmark span { color: var(--champagne); }

.site-header nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 3.25rem);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav a { position: relative; }
.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 1px;
  background: var(--champagne);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease);
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.back-link {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.arrow-icon {
  width: 0.8rem;
  height: 0.8rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 300ms var(--ease);
}
.back-link:hover .arrow-icon,
.back-link:focus-visible .arrow-icon { transform: translate(0.12rem, -0.12rem); }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-grade,
.grain { position: absolute; inset: 0; }

.hero-media { z-index: -1; background: var(--navy); }
.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  animation: hero-in 1.9s var(--ease) both;
}
.hero-grade {
  background:
    linear-gradient(90deg, rgba(7, 16, 36, 0.86) 0%, rgba(7, 16, 36, 0.46) 37%, rgba(7, 16, 36, 0.05) 72%),
    linear-gradient(0deg, rgba(7, 16, 36, 0.75) 0%, transparent 42%);
}
.grain {
  opacity: 0.1;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.hero-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 5rem;
}
.eyebrow,
.section-index,
.frame-id {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 1.4rem; color: rgba(243, 241, 236, 0.78); }
.hero h1,
.hero-subtitle,
.overview h2,
.section-head h2,
.film-head h2,
.closing h2 {
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-weight: 400;
}
.hero h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(4.8rem, 10.5vw, 11rem);
  letter-spacing: -0.065em;
  line-height: 0.78;
}
.hero h1 em,
.overview h2 em,
.section-head h2 em,
.film-head h2 em,
.closing h2 em { color: #e7d9be; font-style: italic; }
.hero-subtitle {
  margin: 1.6rem 0 0;
  color: #e7d9be;
  font-size: clamp(1.5rem, 2.8vw, 3.1rem);
  letter-spacing: -0.03em;
}
.hero-foot {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr auto;
  align-items: end;
  gap: 2rem;
  margin-top: clamp(3.5rem, 8vh, 7rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}
.hero-foot p,
.hero-foot a { margin: 0; font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; }
.hero-foot p { display: grid; gap: 0.4rem; }
.hero-foot p span { color: rgba(243, 241, 236, 0.58); }
.hero-foot a { display: flex; align-items: center; gap: 1rem; }
.inline-arrow {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.inline-arrow--down { color: #e7d9be; }
.frame-id {
  position: absolute;
  right: 1.5rem;
  bottom: 50%;
  writing-mode: vertical-rl;
}

.overview {
  width: 100%;
  padding: clamp(7rem, 13vw, 13rem) 0;
  color: var(--ink);
  background: var(--pearl);
}
.overview > .section-index,
.overview > .overview-grid { width: var(--shell); margin-inline: auto; }
.section-index {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(4rem, 8vw, 8rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid currentColor;
}
.section-index p { margin: 0; }
.section-index p:last-child { opacity: 0.55; }
.overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
}
.overview h2,
.section-head h2,
.film-head h2 {
  margin: 0;
  font-size: clamp(3.8rem, 8vw, 8.5rem);
  letter-spacing: -0.065em;
  line-height: 0.84;
}
.overview-copy > p,
.section-head > p,
.film-head > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}
.overview-copy dl { margin: 3rem 0 0; }
.overview-copy dl div {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-light);
}
.overview-copy dt { color: var(--muted); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; }
.overview-copy dd { margin: 0; font-size: 0.9rem; }

.identity-comparisons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  width: var(--shell);
  margin: clamp(5rem, 9vw, 9rem) auto 0;
}
.identity-comparison { min-width: 0; }
.comparison-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.comparison-heading p { margin: 0; }
.comparison-heading p:last-child { color: var(--muted); text-align: right; }
.comparison-heading span { margin-right: 0.65rem; color: var(--champagne); }
.comparison-slider {
  --position: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  overflow: hidden;
  background: #d9d6cf;
  isolation: isolate;
}
.comparison-layer {
  position: absolute;
  inset: 0;
  margin: 0;
}
.comparison-layer--after {
  z-index: 1;
  clip-path: inset(0 0 0 var(--position));
}
.comparison-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.identity-comparison:first-child .comparison-layer img { object-position: center 22%; }
.comparison-layer figcaption {
  position: absolute;
  bottom: 1rem;
  z-index: 2;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--paper);
  background: rgba(7, 16, 36, 0.38);
  backdrop-filter: blur(8px);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.comparison-layer--before figcaption { left: 1rem; }
.comparison-layer--after figcaption { right: 1rem; }
.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 3;
  width: 1px;
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(-50%);
  pointer-events: none;
}
.comparison-handle {
  position: absolute;
  top: 50%;
  left: var(--position);
  z-index: 4;
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 8px 28px rgba(7, 16, 36, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.comparison-handle svg,
.muse-buttons svg,
.play-button svg,
.video-modal__close svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.comparison-slider input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.comparison-slider:focus-within .comparison-handle {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.muse-section {
  padding: clamp(7rem, 13vw, 13rem) 0;
  color: var(--ink);
  background: var(--paper);
}
.section-head,
.film-head {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.muse-carousel { outline: none; }
.muse-viewport { overflow: hidden; }
.muse-track {
  display: flex;
  transition: transform 900ms var(--ease);
  will-change: transform;
}
.muse-slide {
  display: grid;
  min-width: 100%;
  margin: 0;
  flex: 0 0 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}
.muse-image {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: #f1eee7;
}
.muse-image--night { background: #071b4a; }
.muse-image img { width: 100%; height: 100%; object-fit: cover; }
.muse-slide--portrait .muse-image img { object-position: center 22%; }
.muse-slide figcaption {
  display: grid;
  grid-template-columns: 0.45fr 0.6fr 1.45fr;
  gap: 2rem;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-light);
  font-size: 0.7rem;
}
.muse-slide figcaption span { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.muse-slide figcaption b { font-size: 0.78rem; font-weight: 500; }
.muse-slide figcaption p { max-width: 54ch; margin: 0; color: var(--muted); }
.muse-controls {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}
.muse-count { display: flex; gap: 0.65rem; margin: 0; font-size: 0.7rem; letter-spacing: 0.12em; }
.muse-count i { color: var(--champagne); font-style: normal; }
.muse-buttons { display: flex; gap: 0.65rem; }
.muse-buttons button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: color 250ms ease, background 250ms ease;
}
.muse-buttons button:hover,
.muse-buttons button:focus-visible { color: var(--paper); background: var(--ink); }
.muse-buttons svg { width: 1rem; height: 1rem; }
.muse-progress { height: 1px; overflow: hidden; background: var(--line-light); }
.muse-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--champagne);
  transform: scaleX(0.125);
  transform-origin: left;
  transition: transform 900ms var(--ease);
}

.film-section {
  padding: clamp(7rem, 13vw, 13rem) 0;
  background: var(--navy-deep);
}
.film-section--final { background: #101c35; }
.film-section .section-index { color: var(--pearl); }
.film-head > p { color: rgba(243, 241, 236, 0.62); }
.film-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--pearl);
  background: #060d1b;
  cursor: pointer;
  text-align: left;
}
.film-card > img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1100ms var(--ease), filter 700ms ease;
}
.film-card:hover > img,
.film-card:focus-visible > img { filter: contrast(1.03); transform: scale(1.018); }
.film-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 16, 36, 0.8), transparent 48%);
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(72px, 8vw, 116px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(7, 16, 36, 0.35);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}
.play-button svg {
  width: clamp(22px, 2vw, 31px);
  height: clamp(22px, 2vw, 31px);
  margin-left: 0.16em;
  fill: currentColor;
  stroke: none;
}
.film-meta {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.film-meta i { color: rgba(243, 241, 236, 0.7); font-style: normal; }

.closing {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  background: #dae5f5;
  isolation: isolate;
}
.closing-media,
.closing-media img,
.closing-grade { position: absolute; inset: 0; }
.closing-media { z-index: -2; }
.closing-media img { height: 100%; object-fit: cover; object-position: center; }
.closing-grade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 16, 36, 0.76), rgba(7, 16, 36, 0.1) 60%);
}
.closing-shell {
  display: flex;
  min-height: 92svh;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 7rem 0;
}
.closing p { margin: 0 0 1.5rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.closing h2 {
  margin: 0;
  font-size: clamp(4rem, 9.5vw, 10rem);
  letter-spacing: -0.065em;
  line-height: 0.8;
}
.closing a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.closing a .inline-arrow { color: #e7d9be; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 4vw;
  color: rgba(243, 241, 236, 0.65);
  background: var(--navy-deep);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.site-footer p { margin: 0; }

.scroll-progress {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  height: 2px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
}

.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
}
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 15, 0.94);
  cursor: pointer;
}
.video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 1500px);
  max-height: 94vh;
}
.video-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 0.8rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.video-modal__head p { margin: 0; }
.video-modal__close {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.video-modal__close svg { width: 0.82rem; height: 0.82rem; }
.video-modal video {
  width: 100%;
  max-height: calc(94dvh - 3rem);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 30px, 0);
  transition: opacity 950ms var(--ease), filter 900ms var(--ease), transform 1100ms var(--ease);
}
.reveal.is-visible { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.11); }
  to { opacity: 1; transform: scale(1.03); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .overview-grid,
  .section-head,
  .film-head { grid-template-columns: 1fr; align-items: start; }
  .hero-foot { grid-template-columns: 1fr 1.6fr; }
  .hero-foot a { grid-column: 1 / -1; margin-top: 1rem; }
  .identity-comparisons { grid-template-columns: 1fr; gap: 3rem; }
  .muse-slide figcaption { grid-template-columns: 1fr 1fr; }
  .muse-slide figcaption p { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; }
  .wordmark { font-size: 1.25rem; }
  .back-link { font-size: 0.58rem; }
  .hero-media img { object-position: 60% center; }
  .hero-grade {
    background:
      linear-gradient(0deg, rgba(7, 16, 36, 0.88) 0%, rgba(7, 16, 36, 0.2) 70%),
      linear-gradient(90deg, rgba(7, 16, 36, 0.6), transparent 80%);
  }
  .hero-shell { justify-content: flex-end; padding: 8rem 0 3rem; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.2rem); }
  .hero-subtitle { margin-top: 1rem; }
  .hero-foot { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
  .hero-foot a { grid-column: auto; }
  .frame-id { display: none; }
  .section-index { margin-bottom: 3.5rem; }
  .section-index p:last-child { max-width: 18ch; text-align: right; }
  .overview,
  .muse-section,
  .film-section { padding: 6rem 0; }
  .overview h2,
  .section-head h2,
  .film-head h2 { font-size: clamp(3.6rem, 17vw, 5.8rem); }
  .muse-image { aspect-ratio: 16 / 9; }
  .muse-slide .muse-image img { object-position: center; }
  .muse-slide--portrait .muse-image img { object-position: center 22%; }
  .muse-slide figcaption { display: block; min-height: 150px; }
  .muse-slide figcaption span,
  .muse-slide figcaption b { display: block; margin-bottom: 0.55rem; }
  .muse-controls { grid-template-columns: auto auto; }
  .muse-progress { grid-column: 1 / -1; }
  .film-head { margin-bottom: 3rem; }
  .film-card > img { aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
  .film-meta { right: 1rem; bottom: 1rem; left: 1rem; }
  .film-meta i { display: none; }
  .closing { min-height: 78svh; }
  .closing-media img { object-position: 62% center; }
  .closing-grade { background: linear-gradient(0deg, rgba(7, 16, 36, 0.82), rgba(7, 16, 36, 0.08) 72%); }
  .closing-shell { min-height: 78svh; justify-content: flex-end; }
  .closing h2 { font-size: clamp(3.8rem, 17vw, 6rem); }
  .site-footer { flex-direction: column; }
  .video-modal { padding: 0; }
  .video-modal__panel { width: 100vw; }
  .video-modal__head { padding: 1rem; }
  .video-modal__panel {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    background: rgba(2, 6, 15, 0.98);
  }
  .video-modal video {
    width: 100vw;
    height: auto;
    max-height: calc(100dvh - 3.5rem);
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; filter: none; transform: none; }
}
