/* trailers.css: /trailers. The mountain photo with a black fade on top, and the trailer carousel
   (nine Vimeo trailers) over it. Numbers come from the live page and its Framer code component
   ("TrailerCarousel", read 31 Oct 2026). Two page layouts, as live: desktop from 1200px, and the
   phone design below 1200px. The carousel itself has its own narrow mode below 640px (card shape
   4:5, dots instead of numbered pills), as the live component does. */

/* ---------- Page: photo, fade, carousel position ---------- */
.tr { position: relative; height: 1029px; overflow: hidden; background: #0b0e14; }
.tr-bg, .tr-bg img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-fade { position: absolute; left: 0; top: 0; width: 100%; height: 917px; object-fit: cover; pointer-events: none; }
/* desktop: centred at 49% of the 917px fade block, as live */
.tr .tc { position: absolute; left: 0; right: 0; top: calc(917px * 0.49); transform: translateY(-50%); }
@media (max-width: 1199.98px) {
  .tr { height: 958px; }
  .tr-fade { height: 311px; }
  .tr .tc { top: 46px; transform: none; }
}

/* ---------- Carousel ---------- */
.tc {
  --fg: #f2efe6; --muted: #b5b0a0; --ink: #0b0e14; --surface: #11151d; --card: #171c26;
  --line: rgba(242, 239, 230, 0.08); --line-strong: rgba(242, 239, 230, 0.16);
  --tc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* wide mode: card 64% of the stage, neighbours 69% of a card away at 80% size */
  --w: 64%; --step: 69%; --side: 0.8; --fade: 0.45; --radius: 24px;
  display: flex; flex-direction: column; width: 100%; color: var(--fg);
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
}
.tc *, .tc *::before, .tc *::after { box-sizing: border-box; }
.tc button, .tc a { -webkit-tap-highlight-color: transparent; }
.tc button:focus-visible, .tc a:focus-visible { outline: 2px solid #6b6cff; outline-offset: 2px; }

.tc-head { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px 32px; text-align: center; }
.tc-count { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.tc-title { margin: 0; font: 300 48px/1.1 "Fraunces", Georgia, serif; color: var(--fg); }

.tc-region { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; outline: none; touch-action: pan-y; }
.tc-stage { position: relative; width: 100%; aspect-ratio: 25 / 9; overflow: hidden; }

/* one card per trailer; --n = its place relative to the one on show (0 = on show, -1 left, 1 right) */
.tc-card { position: absolute; top: 0; left: 50%; width: var(--w); aspect-ratio: 16 / 9; margin: 0; padding: 0;
  transform: translateX(-50%) translateX(calc(var(--n, 0) * var(--step))) scale(var(--side));
  opacity: 0; z-index: 5; pointer-events: none; display: block; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--glow, none), var(--card);
  color: var(--fg); font: inherit; font-size: 12px; text-align: center; }
.tc-card.is-near { opacity: var(--fade); z-index: 9; pointer-events: auto; }
.tc-card.is-on { opacity: 1; z-index: 10; pointer-events: auto; transform: translateX(-50%) translateX(calc(var(--n, 0) * var(--step))) scale(1); }
.tc.is-ready .tc-card { transition: transform 600ms var(--tc-ease), opacity 600ms var(--tc-ease); }
.tc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-select: none; }
.tc-shade { position: absolute; inset: 0; pointer-events: none; display: none;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.35) 0%, rgba(11, 14, 20, 0) 30%, rgba(11, 14, 20, 0) 70%, rgba(11, 14, 20, 0.25) 100%); }
.tc-tag { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 14, 20, 0.6); font-size: 13px; font-weight: 500; }
.tc-play { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.tc-card.is-on .tc-shade { display: block; }
.tc-card.is-on .tc-play { display: flex; }
.tc-play-btn { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 999px; background: var(--fg); transition: transform 120ms ease-out; }
.tc-play-btn svg { width: 32px; height: 32px; fill: var(--ink); }
.tc-card:active .tc-play-btn { transform: scale(0.98); }
.tc-card[hidden] { display: none; }
.tc-player { background: #000; cursor: auto; }
.tc-player iframe { display: block; width: 100%; height: 100%; border: 0; }

/* round buttons: arrows on the stage (wide), arrows beside the dots (narrow) */
.tc-ctl { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(17, 21, 29, 0.85); color: var(--fg);
  transition: background 400ms var(--tc-ease), transform 120ms ease-out; }
.tc-ctl:hover { background: #1f2632; }
.tc-ctl:active { transform: scale(0.98); }
.tc-ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tc-arrow { position: absolute; top: 50%; z-index: 20; width: 56px; height: 56px; transform: translateY(-50%); }
.tc-arrow:active { transform: translateY(-50%) scale(0.98); }
.tc-arrow svg { width: 24px; height: 24px; }
.tc-arrow.tc-prev { left: 40px; }
.tc-arrow.tc-next { right: 40px; }

/* numbered pills (wide) */
.tc-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 32px 24px 8px; }
.tc-pill { min-width: 48px; height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--fg);
  font: 500 15px "Inter", "Helvetica Neue", system-ui, sans-serif; cursor: pointer;
  transition: background 400ms var(--tc-ease), color 400ms var(--tc-ease), border-color 400ms var(--tc-ease), transform 120ms ease-out; }
.tc-pill:hover { border-color: rgba(242, 239, 230, 0.32); }
.tc-pill.is-on { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.tc-pill:active { transform: scale(0.98); }

/* dots (narrow) */
.tc-dots { display: none; align-items: center; justify-content: space-between; gap: 8px; width: 100%; max-width: 420px; margin: 0 auto; padding: 20px 20px 4px; }
.tc-dot-row { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: 0; }
.tc-dot { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 30px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tc-dot span { display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(242, 239, 230, 0.45); box-shadow: 0 0 0 1px rgba(11, 14, 20, 0.25);
  transition: width 400ms var(--tc-ease), background 400ms var(--tc-ease); }
.tc-dot.is-on span { width: 24px; background: var(--fg); }

/* copy-link button */
.tc-share { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 720px; margin: 0 auto; padding: 24px 24px 0; text-align: center; }
.tc-copy { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--fg); transition: transform 120ms ease-out; }
.tc-copy:active { transform: scale(0.98); }
.tc-copy svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tc-copy-narrow { display: none; }

/* ---------- Narrow carousel (under 640px wide), as the live component ---------- */
@media (max-width: 639.98px) {
  .tc { --w: 78%; --step: 99%; --side: 0.9; --fade: 0.55; --radius: 20px; }
  .tc-head { padding: 0 20px 24px; }
  .tc-count { margin-bottom: 8px; }
  .tc-title { font-size: 32px; line-height: 1.15; text-wrap: balance; }
  .tc-region { padding: 0; }
  .tc-stage { aspect-ratio: 40 / 39; }          /* 4:5 cards at 78% width */
  .tc-card { aspect-ratio: auto; height: 100%; }
  .tc-tag { top: 14px; left: 14px; padding: 5px 10px; font-size: 12px; line-height: 1.3; }
  .tc-play-btn { width: 60px; height: 60px; padding-left: 3px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
  .tc-play-btn svg { width: 24px; height: 24px; }
  .tc-arrow, .tc-pills { display: none; }
  .tc-dots { display: flex; }
  .tc-share { padding: 16px 20px 0; gap: 14px; }
  .tc-copy { min-height: 44px; padding: 10px 18px; }
  .tc-copy-wide { display: none; }
  .tc-copy-narrow { display: inline; }
}
.tc-copy.is-copied .tc-copy-wide, .tc-copy.is-copied .tc-copy-narrow { display: none; }
.tc-copy.is-copied > span::after { content: "Link copied"; }

@media (prefers-reduced-motion: reduce) { .tc * { transition: none !important; } }
