/* Cinematic chrome and scroll-scrubbed heroes. Loaded last. */

html {
  scroll-behavior: auto;
}

.js body {
  animation: page-in 0.55s ease both;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.sub {
  padding-top: 4.7rem;
}

body.home .site-header[data-header],
body.sub .site-header[data-header] {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: auto;
  max-width: none;
  margin: 0;
  top: 0;
  padding: 0.85rem 1.35rem 1.15rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(to bottom, rgba(10, 8, 6, 0.55), rgba(10, 8, 6, 0));
  color: #f6f1ea;
  backdrop-filter: none;
  box-shadow: none;
}

body.sub .site-header[data-header],
body.home .site-header[data-header].is-stuck {
  background: rgba(14, 12, 10, 0.82);
  backdrop-filter: blur(16px);
}

body:has(.alert) .site-header[data-header] {
  top: var(--alert-h, 2.15rem);
  z-index: 90;
}

body.sub:has(.alert) {
  padding-top: calc(var(--alert-h, 2.15rem) + 4.7rem);
}

.alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  font-size: 0.78rem;
}

.alert-short {
  display: none;
}

.site-header .sample-note {
  grid-column: 1;
  justify-self: start;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 14rem;
  line-height: 1.3;
}

.site-header .sample-note a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 241, 234, 0.45);
}

.site-header .logo {
  grid-column: 2;
  justify-self: center;
  font-family: var(--serif, Georgia, serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  gap: 0.45rem;
}

.site-header .logo svg {
  width: 16px;
  height: 16px;
}

.site-header .logo small,
.site-header .logo span {
  display: none;
}

.site-header .nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  color: inherit;
  border-color: currentColor;
  background: transparent;
}

.site-header .nav-panel {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  transform: none;
}

.site-header .nav-panel > a,
.site-header .dropdown > button {
  font-family: var(--sans, sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 0.4rem 0.42rem;
}

.site-header .nav-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: inherit !important;
  min-height: 0 !important;
  padding: 0.42rem 0.85rem !important;
  margin-left: 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}

.site-header .nav-cta:hover {
  background: #f6f1ea !important;
  color: #161311 !important;
}

.site-header .mega,
.site-header .menu {
  color: #1b1714;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.cine {
  position: relative;
  height: 280vh;
  background: #100e0c;
  color: #f6f1ea;
}

.cine-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.cine-stage {
  position: relative;
  height: 100%;
}

.cine-layer {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}

.cine-door {
  opacity: 0;
}

.cine-shade,
.cine-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cine-shade {
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.45) 78%),
    linear-gradient(to top, rgba(8, 6, 4, 0.62), transparent 42%);
  z-index: 1;
}

.cine-grain {
  z-index: 2;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("../images/grain.png");
  background-size: 180px 180px;
}

.cine-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.5rem 4.5rem;
}

.cine-copy .kicker {
  color: rgba(246, 241, 234, 0.78);
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  margin-bottom: 1.1rem;
}

.cine-copy h1 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 450;
  font-size: clamp(3.4rem, 7.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 11ch;
  margin: 0 0 1rem;
  color: #f7f2ea;
}

.cine-copy h1 em {
  font-style: italic;
  font-weight: 450;
}

.cine-copy .lede {
  max-width: 34rem;
  color: rgba(247, 242, 234, 0.86);
  font-size: 1.02rem;
  margin-bottom: 1.3rem;
}

.cine-copy .btn,
.cine-cta {
  background: transparent;
  color: #f7f2ea;
  border: 1px solid rgba(247, 242, 234, 0.7);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-decoration: none;
}

.cine-copy .btn:hover,
.cine-cta:hover {
  background: #f7f2ea;
  color: #161311;
}

.cine-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.75);
}

.cine-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  height: 2px;
  width: calc(var(--p, 0) * 100%);
  background: rgba(247, 242, 234, 0.85);
}

.cine + .reserve-card {
  margin-top: 0;
}

.fact-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-dark, rgba(0, 0, 0, 0.12));
}

.fact-band div {
  padding: 1.3rem 1rem 1.4rem 0;
  border-left: 1px solid var(--line-dark, rgba(0, 0, 0, 0.12));
}

.fact-band div:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact-band strong {
  display: block;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.fact-band span {
  color: var(--muted, #5c564e);
  font-size: 0.88rem;
}

.js [data-reveal] {
  animation-delay: var(--d, 0s);
}

.section {
  padding-top: 6.2rem;
  padding-bottom: 6.2rem;
}

@media (max-width: 959px) {
  .cine {
    height: 170vh;
  }

  .site-header .sample-note {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .site-header .nav-toggle {
    display: inline-block;
  }

  .site-header .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.15rem;
    padding: 0 1.5rem 12vh;
    background: #12100e;
    color: #f6f1ea;
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .site-header .nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header .nav-panel > a,
  .site-header .dropdown > button {
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    letter-spacing: -0.03em;
    text-transform: none;
    padding: 0.15rem 0;
  }

  .site-header .mega,
  .site-header .menu {
    position: static;
    width: auto;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    background: transparent;
    color: rgba(246, 241, 234, 0.78);
    box-shadow: none;
    border: 0;
    padding: 0.2rem 0 0.6rem;
  }

  .site-header .mega a,
  .site-header .menu a {
    font-family: var(--sans, sans-serif);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: inherit;
    padding: 0.28rem 0;
  }

  .site-header .nav-cta {
    margin: 1rem 0 0;
  }

  .fact-band {
    grid-template-columns: 1fr 1fr;
  }

  .cine-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }
}

.cine-story {
  height: 340vh;
}

.cine-finish-picture,
.cine-finish {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cine-finish-picture {
  display: block;
}

.cine-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cine-scene svg,
.cine-frames,
.cine-frame-still {
  display: block;
  width: 100%;
  height: 100%;
}

.cine-frames,
.cine-frame-still {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.cine-scene .pivot,
.cine-scene .pivot-leg {
  transform-box: fill-box;
  transform-origin: center top;
}

.cine-scene .rise {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.cine-scene .spin,
.cine-scene .pop {
  transform-box: fill-box;
  transform-origin: center;
}

.cine-scene .draw {
  transform-box: fill-box;
  transform-origin: left center;
}

.cine-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.cine-story .cine-shade {
  z-index: 3;
  background:
    linear-gradient(to bottom, rgba(8, 6, 4, 0.42), transparent 16%),
    linear-gradient(to top, rgba(8, 6, 4, 0.22), transparent 18%);
}

.cine-story .cine-grain {
  z-index: 4;
  opacity: 0.1;
}

.cine-story .cine-copy {
  z-index: 5;
  background: radial-gradient(ellipse at center, rgba(12, 9, 7, 0.42) 0%, rgba(12, 9, 7, 0.12) 46%, transparent 70%);
}

.cine-story .cine-copy h1,
.cine-story .cine-copy .lede,
.cine-story .cine-copy .kicker,
.cine-story .cine-hint {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.cine-story .cine-progress {
  z-index: 6;
}

.scene-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 6;
  margin: 0;
  height: 2.2rem;
  pointer-events: none;
}

.scene-caption span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 12, 10, 0.58);
  color: #f6f1ea;
  font-family: var(--sans, sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
}

@media (max-width: 800px) {
  .cine-scene .fine {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js body,
  .js [data-reveal] {
    animation: none !important;
  }

  .cine {
    height: auto;
  }

  .cine-sticky {
    position: relative;
    height: 100svh;
  }

  .cine-layer,
  .cine-door,
  .cine-copy {
    transform: none !important;
    opacity: 1;
  }

  .cine-door {
    display: none;
  }

  .cine-hint,
  .cine-progress,
  .cine-scene:not(:has(.cine-frame-still)),
  .scene-caption,
  .cine-grade {
    display: none;
  }

  .cine.cine-story {
    height: auto;
  }
}

@media (max-width: 959px) {
  .cine.cine-story {
    height: 210vh;
  }
}
