/* Optional interaction layer. Content and native video controls work without it. */
body > [data-scroll-top] {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 999;
  display: flex;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text, #826632);
  border-radius: 50%;
  background: var(--cream, #f5efe6);
  color: var(--text, #826632);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
body > [data-scroll-top].is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
body > [data-scroll-top] svg { width: 16px; height: 16px; }
.motion-ready .reveal { transition: opacity .8s ease, transform .8s ease; }
.motion-ready .reveal-left { transform: translateX(-30px); }
.motion-ready .reveal-right { transform: translateX(30px); }
.motion-ready .reveal-left.is-visible,
.motion-ready .reveal-right.is-visible { transform: none; }

[data-cursor] {
  --cursor-ready: 1;
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10001;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--text, #826632);
  box-shadow: 0 0 0 1px var(--cream, #f5efe6);
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: width .35s var(--ease, ease), height .35s var(--ease, ease), background .35s ease, opacity .3s ease;
}
.cursor-dot {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10002;
  display: block;
  width: 7px;
  height: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cursor-dot::before { content: ''; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--text, #826632); box-shadow: 0 0 0 1px var(--cream, #f5efe6); transition: transform .15s ease; }
[data-cursor].is-visible, .cursor-dot.is-visible { opacity: 1; }
.cursor-label { color: var(--gold-light); font: 8.32px var(--head, sans-serif); letter-spacing: .18em; text-transform: uppercase; opacity: 0; transition: opacity .25s ease; user-select: none; }
.cursor-over-link [data-cursor] { width: 64px; height: 64px; background: rgb(187 158 102 / 8%); }
.cursor-over-video [data-cursor] { width: 80px; height: 80px; background: var(--ink); }
.cursor-over-video .cursor-label { opacity: 1; }
.cursor-over-link .cursor-dot::before, .cursor-over-video .cursor-dot::before { transform: scale(0); }
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
  html.has-custom-cursor input, html.has-custom-cursor textarea, html.has-custom-cursor select { cursor: text !important; }
  html.has-custom-cursor input[type=range] { cursor: ew-resize !important; }
}

#film-dialog {
  --film-controls-ready: 1;
  background: rgb(0 0 0 / 95%);
}
#film-dialog::backdrop { background: rgb(0 0 0 / 95%); }
#film-dialog .film-stage { position: relative; width: min(90%, 1200px); max-height: 85vh; aspect-ratio: 16 / 9; }
#film-dialog .film-stage > video { max-height: 85vh; }
#film-dialog .film-brand { position: absolute; top: 26px; left: 50%; width: 240px; max-width: 55vw; height: auto; opacity: .85; transform: translateX(-50%); pointer-events: none; }
#film-dialog > [data-film-close] { top: 24px; right: 32px; z-index: 2; opacity: .75; }
#film-dialog > [data-film-close]:hover { opacity: 1; }
.film-controls { position: absolute; inset: auto 0 0; padding: 40px 32px 16px; background: linear-gradient(transparent, rgb(0 0 0 / 65%)); opacity: 1; transition: opacity .5s ease; }
.film-controls.is-idle:not(:focus-within) { opacity: 0; pointer-events: none; }
.film-control-row { display: flex; align-items: center; gap: 16px; }
.film-control { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; color: #fff; opacity: .8; background: none; border: 0; border-radius: 0; flex-shrink: 0; transition: opacity .2s ease; }
.film-control:hover, .film-control:focus-visible { opacity: 1; }
.film-control svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.film-control[data-icon=play] path { fill: currentColor; stroke: none; }
.film-time { flex: 1; white-space: nowrap; color: rgb(255 255 255 / 85%); font: 11px var(--head, sans-serif); letter-spacing: 1.5px; }
.film-seek { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 24px; min-height: 24px; padding: 0; margin: 0 0 5px; background: transparent; cursor: pointer; }
.film-seek::-webkit-slider-runnable-track { height: 2px; background: rgb(255 255 255 / 45%); }
.film-seek::-moz-range-track { height: 2px; background: rgb(255 255 255 / 45%); }
.film-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; }
.film-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }
.film-seek:disabled { opacity: .45; cursor: default; }
#film-dialog .film-navigation { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
#film-dialog .film-navigation svg { width: 36px; height: 36px; }
#film-dialog .film-previous { left: 16px; }
#film-dialog .film-next { right: 16px; }
#film-dialog .film-stage:fullscreen { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; max-height: none; background: #000; }
#film-dialog .film-stage:fullscreen > video { width: 100%; height: 100%; max-height: 100vh; object-fit: contain; }

@media (max-width: 768px) {
  #film-dialog .film-stage { width: 100%; }
  #film-dialog .film-brand { width: 190px; top: 26px; }
  #film-dialog > [data-film-close] { top: 15px; right: 12px; }
  .film-controls { padding: 28px 12px 4px; }
  .film-control-row { gap: 6px; }
  .film-time { font-size: 14px; letter-spacing: .6px; }
  #film-dialog .film-navigation { top: auto; bottom: 24px; transform: none; }
  #film-dialog .film-previous { left: calc(50% - 72px); }
  #film-dialog .film-next { right: calc(50% - 72px); }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  [data-cursor], .cursor-dot { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal, .motion-ready .reveal-left, .motion-ready .reveal-right { opacity: 1; transform: none; }
  .film-controls, body > [data-scroll-top] { transition: none; }
}
