/*
 * TRR homepage redesign — phase 1 (sections).
 * Everything is scoped under .trr-home so the shared Bootstrap 4 / style.css
 * used by the rest of the shop is not affected.
 *
 * Design tokens are approximate starting values from the implementation spec,
 * not official brand codes.
 */

/* Design tokens (--trr-*) live in trr-shell.css, which the layout loads on every page. */

/* ---------- Scope reset ---------------------------------------------------- */

.trr-home {
  font-family: var(--trr-sans);
  color: var(--trr-text-dark);
  background: var(--trr-cream-100);
  overflow-x: clip;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.trr-home *,
.trr-home *::before,
.trr-home *::after { box-sizing: border-box; }

:where(.trr-home) :where(h1, h2, h3, p, ul, figure) { margin: 0; padding: 0; }
:where(.trr-home) ul { list-style: none; }
:where(.trr-home) img { max-width: 100%; height: auto; display: block; }
:where(.trr-home) a { text-decoration: none; }

.trr-container {
  width: min(100% - 2 * var(--trr-page-gutter), var(--trr-content-max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.trr-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ----------------------------------------------------- */

.trr-eyebrow {
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--trr-text-muted);
  margin-bottom: 14px;
}
.trr-eyebrow--light { color: rgba(255, 250, 241, .78); }

.trr-title {
  font-family: var(--trr-serif);
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: 22px;
}
.trr-title span { display: block; }
.trr-title--light { color: var(--trr-text-light); }
.trr-title--green { color: var(--trr-forest-700); margin-bottom: 0; }
.trr-green { color: var(--trr-forest-700); }
.trr-gold { color: var(--trr-gold-text); }

.trr-subhead {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 700;
  color: var(--trr-forest-800);
  margin-bottom: 14px;
}

.trr-body {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--trr-text-muted);
  max-width: 56ch;
  margin-bottom: 28px;
}

.trr-lead {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: rgba(255, 250, 241, .88);
  max-width: 62ch;
  margin-inline: auto;
}

.trr-heading--center { text-align: center; }
.trr-heading--center .trr-title { margin-bottom: 14px; }

.trr-script {
  position: absolute;
  top: clamp(14px, 2.4vw, 30px);
  left: clamp(16px, 2.6vw, 34px);
  font-family: var(--trr-script);
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.05;
  color: #fff;
  transform: rotate(-9deg);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
  pointer-events: none;
}

/* ---------- Buttons -------------------------------------------------------- */

.trr-home .trr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--trr-button-radius);
  font-family: var(--trr-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--trr-transition-fast), background-color var(--trr-transition-fast), box-shadow var(--trr-transition-fast);
}
.trr-home .trr-btn__arrow { transition: transform var(--trr-transition-fast); }
.trr-home .trr-btn:hover .trr-btn__arrow,
.trr-home .trr-btn:focus-visible .trr-btn__arrow { transform: translateX(3px); }
.trr-home .trr-btn:hover { transform: translateY(-1px); }

.trr-home .trr-btn--green { background: var(--trr-forest-700); color: #fff; border-color: rgba(255, 255, 255, .22); }
.trr-home .trr-btn--green:hover { background: var(--trr-forest-600); color: #fff; box-shadow: 0 8px 20px rgba(6, 28, 17, .25); }
.trr-home .trr-btn--gold { background: var(--trr-gold-400); color: #2a2208; }
.trr-home .trr-btn--gold:hover { background: #f4d27a; color: #2a2208; box-shadow: 0 8px 20px rgba(212, 162, 63, .35); }
.trr-home .trr-btn--block { width: 100%; }

.trr-home .trr-btn:focus-visible,
.trr-home .trr-card__link:focus-visible {
  outline: 3px solid var(--trr-gold-400);
  outline-offset: 3px;
}

/* ---------- Decorative leaves (placeholder artwork) ------------------------- */

.trr-home .trr-leaf {
  position: absolute;
  z-index: 0;
  width: clamp(120px, 16vw, 270px);
  height: auto;
  pointer-events: none;
  opacity: .5;
}
.trr-dark .trr-leaf, .trr-hero .trr-leaf { filter: brightness(2.1) saturate(1.3); opacity: .3; }

.trr-leaf--hero-tl { top: -30px; left: -40px; transform: scaleY(-1) rotate(-12deg); }
.trr-leaf--about-l { left: -60px; top: 14%; }
.trr-leaf--about-r { right: -50px; bottom: 6%; transform: scaleX(-1) rotate(-20deg); }
.trr-leaf--attr-l  { left: -70px; top: 34%; transform: rotate(8deg); }
.trr-leaf--attr-r  { right: -70px; bottom: 8%; transform: scaleX(-1) rotate(-14deg); }
.trr-leaf--act-l   { left: -60px; top: 10%; }
.trr-leaf--act-r   { right: -60px; top: 58%; transform: scaleX(-1); }
.trr-leaf--gal-l   { left: -50px; top: 2%; transform: rotate(10deg); }
.trr-leaf--tk-l    { left: -60px; bottom: 6%; transform: rotate(10deg); }
.trr-leaf--tk-r    { right: -60px; top: 30%; transform: scaleX(-1) rotate(-16deg); }

/* ---------- Section frame + organic transitions ----------------------------- */

.trr-section {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 8.5vw, 132px) 0 clamp(64px, 7.5vw, 112px);
}
.trr-section::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: clamp(28px, 5vw, 76px);
  background: var(--trr-wave, transparent);
  -webkit-mask: url("../images/wave.svg") center / 100% 100% no-repeat;
  mask: url("../images/wave.svg") center / 100% 100% no-repeat;
  z-index: 0;
  pointer-events: none;
}

.trr-about      { --trr-wave: var(--trr-forest-900); background: var(--trr-cream-50); }
.trr-attractions{ --trr-wave: var(--trr-cream-50); }
.trr-activities { --trr-wave: var(--trr-forest-900); background: var(--trr-cream-50); }
.trr-gallery    { background: var(--trr-cream-100); padding-top: clamp(48px, 6vw, 96px); }
.trr-gallery::before { display: none; }
.trr-tickets {
  --trr-wave: var(--trr-cream-100);
  padding-bottom: clamp(44px, 5vw, 72px);
  background:
    radial-gradient(ellipse 60% 45% at 18% 0%, rgba(54, 130, 76, .30), transparent 70%),
    linear-gradient(180deg, var(--trr-forest-900), var(--trr-forest-950));
}

.trr-dark {
  color: var(--trr-text-light);
  background:
    radial-gradient(ellipse 60% 45% at 18% 0%, rgba(54, 130, 76, .30), transparent 70%),
    radial-gradient(ellipse 55% 40% at 88% 100%, rgba(237, 197, 94, .10), transparent 70%),
    linear-gradient(180deg, var(--trr-forest-900), var(--trr-forest-950));
}

/* ---------- 01 Hero -------------------------------------------------------- */

.trr-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 44vw, 760px);
  padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 8vw, 130px);
  background: var(--trr-forest-900);
  color: var(--trr-text-light);
  overflow: hidden;
}
.trr-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 38%;
  z-index: -2;
}
.trr-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 38, 27, .88) 0%, rgba(5, 38, 27, .6) 36%, rgba(5, 38, 27, 0) 70%),
    linear-gradient(0deg, var(--trr-forest-900) 0%, rgba(7, 55, 39, .55) 12%, rgba(5, 38, 27, 0) 38%);
}
.trr-hero__copy { max-width: min(100%, 56vw, 820px); }
.trr-hero__eyebrow {
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: rgba(255, 250, 241, .9);
}
.trr-hero__title {
  font-family: var(--trr-serif);
  font-size: clamp(34px, 3.9vw, 62px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-weight: 600;
  color: var(--trr-text-light);
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.trr-hero__title .trr-gold { display: block; color: var(--trr-gold-400); }
.trr-hero__sub {
  font-size: clamp(16px, 1.35vw, 21px);
  max-width: 44ch;
  margin-bottom: 30px;
  color: rgba(255, 250, 241, .95);
}
.trr-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Split rows (About / Workshop / Venue) --------------------------- */

.trr-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.trr-split--reverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.trr-split__copy { max-width: 560px; }
.trr-venue { margin-top: clamp(56px, 7vw, 112px); }

.trr-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 22px 50px rgba(30, 40, 24, .22);
  background: var(--trr-cream-200);
}
.trr-frame img { width: 100%; height: 100%; object-fit: cover; }
.trr-frame--about    { border-radius: 38px 110px 38px 110px / 38px 90px 38px 90px; }
.trr-frame--workshop { border-radius: 110px 34px 110px 34px / 90px 34px 90px 34px; }
.trr-frame--venue    { border-radius: 34px 90px 34px 90px / 34px 70px 34px 70px; }

/* ---------- 03 Attractions: 4 + 3 ------------------------------------------- */

.trr-cards {
  --g: clamp(12px, 1.6vw, 22px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--g);
  margin-top: clamp(32px, 4vw, 56px);
}
.trr-cards__item { flex: 0 0 calc((100% - 3 * var(--g)) / 4); min-width: 0; }
.trr-cards__item:nth-child(n + 5) { flex-basis: calc((90% - 2 * var(--g)) / 3); }

.trr-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1.5px solid rgba(237, 197, 94, .7);
  background: var(--trr-forest-800);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  transition: border-color var(--trr-transition-card), box-shadow var(--trr-transition-card);
}
.trr-cards__item:nth-child(n + 5) .trr-card { aspect-ratio: 16 / 10; }

.trr-home .trr-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trr-transition-card);
}
.trr-card:hover .trr-card__img,
.trr-card:focus-within .trr-card__img { transform: scale(1.06); }
.trr-card:hover,
.trr-card:focus-within { border-color: var(--trr-gold-400); box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(237, 197, 94, .35); }

.trr-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 25, 17, .92) 0%, rgba(5, 25, 17, .45) 38%, rgba(5, 25, 17, 0) 66%);
}
.trr-card__link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.trr-card__meta {
  position: absolute;
  left: clamp(12px, 1.4vw, 18px);
  right: 56px;
  bottom: clamp(12px, 1.3vw, 18px);
  color: #fff;
  z-index: 1;
}
.trr-card__num { display: block; font-size: 13px; font-weight: 700; color: var(--trr-gold-400); letter-spacing: .06em; }
.trr-card__title { display: block; font-size: clamp(14px, 1.2vw, 17.5px); font-weight: 700; line-height: 1.22; }
.trr-card__ring {
  position: absolute;
  right: clamp(12px, 1.3vw, 18px);
  bottom: clamp(12px, 1.3vw, 18px);
  z-index: 1;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(237, 197, 94, .85);
  color: var(--trr-gold-400);
  background: rgba(5, 25, 17, .35);
  transition: background-color var(--trr-transition-fast), transform var(--trr-transition-fast);
}
.trr-card:hover .trr-card__ring,
.trr-card:focus-within .trr-card__ring { background: rgba(237, 197, 94, .2); transform: translateX(2px); }

/* ---------- 06 Gallery ------------------------------------------------------ */

.trr-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.trr-gallery__intro { max-width: 36ch; font-size: 15px; color: var(--trr-text-muted); }


/* ---------- 07 Tickets & Packages ------------------------------------------- */

.trr-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
  margin-top: clamp(32px, 4vw, 56px);
}
.trr-package {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--trr-cream-50);
  border: 1.5px solid rgba(237, 197, 94, .6);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .4);
  color: var(--trr-text-dark);
}
.trr-package__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.trr-package__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 34px clamp(20px, 2vw, 28px) clamp(20px, 2vw, 26px);
}
.trr-package__badge {
  position: absolute;
  top: -24px;
  left: clamp(18px, 1.8vw, 26px);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--trr-forest-700);
  color: var(--trr-cream-50);
  border: 3px solid var(--trr-cream-50);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.trr-package__title { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; margin-bottom: 8px; color: var(--trr-text-dark); }
.trr-package__text { font-size: 15px; color: var(--trr-text-muted); margin-bottom: 22px; }
.trr-package .trr-btn { margin-top: auto; }

/* ---------- Responsive ------------------------------------------------------ */

@media (max-width: 1100px) {
  .trr-cards__item,
  .trr-cards__item:nth-child(n + 5) { flex-basis: calc((100% - var(--g)) / 2); }
  .trr-cards__item:nth-child(n + 5) .trr-card { aspect-ratio: 4 / 3; }
  .trr-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trr-packages .trr-package:last-child { grid-column: 1 / -1; max-width: calc(50% - 10px); justify-self: center; }
}

@media (max-width: 860px) {
  .trr-split,
  .trr-split--reverse { grid-template-columns: minmax(0, 1fr); }
  .trr-split__copy { max-width: none; }
  .trr-frame { max-width: 640px; }
  .trr-gallery__head { flex-direction: column; align-items: flex-start; }
  .trr-hero { min-height: 560px; }
  .trr-hero__copy { max-width: 100%; }
  .trr-hero__shade {
    background: linear-gradient(0deg, rgba(5, 38, 27, .9) 0%, rgba(5, 38, 27, .55) 55%, rgba(5, 38, 27, .2) 100%);
  }
  .trr-hero__media { object-position: 66% 30%; }
}

@media (max-width: 640px) {
  .trr-cards__item,
  .trr-cards__item:nth-child(n + 5) { flex-basis: 100%; }
  .trr-packages { grid-template-columns: minmax(0, 1fr); }
  .trr-packages .trr-package:last-child { max-width: none; grid-column: auto; }
  .trr-hero__cta .trr-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .trr-home * { transition-duration: .01ms !important; animation: none !important; }
  .trr-card:hover .trr-card__img,
  .trr-card:focus-within .trr-card__img { transform: none; }
}

/* ---------- Phase 3: hero media controls ------------------------------------ */

.trr-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 38%;
  z-index: -2; opacity: 0; transition: opacity 500ms ease;
}
.trr-hero__video.is-ready { opacity: 1; }

.trr-hero__controls {
  position: absolute; left: var(--trr-page-gutter); bottom: clamp(34px, 4.6vw, 70px); z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
.trr-media-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; padding: 0;
  background: rgba(5, 38, 27, .55); color: #fff; border: 1.5px solid rgba(255, 250, 241, .65); cursor: pointer;
  backdrop-filter: blur(4px); transition: background-color var(--trr-transition-fast), transform var(--trr-transition-fast);
}
.trr-media-btn:hover { background: rgba(7, 85, 53, .85); transform: scale(1.05); }
.trr-media-btn:focus-visible, .trr-media-vol:focus-visible, .trr-gal-btn:focus-visible, .trr-gal-pause:focus-visible,
.trr-dots button:focus-visible, .trr-float a:focus-visible, .trr-float button:focus-visible, .trr-strip:focus-visible {
  outline: 3px solid var(--trr-gold-400); outline-offset: 3px;
}
.trr-media-btn .trr-ico-play, .trr-media-btn .trr-ico-mute { display: none; }
.trr-media-btn.is-playing .trr-ico-pause { display: block; }
.trr-media-btn:not(.is-playing) .trr-ico-pause { display: none; }
.trr-media-btn:not(.is-playing) .trr-ico-play { display: block; }
.trr-media-btn.is-muted .trr-ico-vol { display: none; }
.trr-media-btn.is-muted .trr-ico-mute { display: block; }
.trr-media-vol { width: clamp(70px, 9vw, 120px); accent-color: var(--trr-gold-400); cursor: pointer; }

/* ---------- Phase 3: gallery carousel ---------------------------------------- */

.trr-gal__viewport { position: relative; }
.trr-strip {
  display: flex; align-items: center;
  margin: clamp(12px, 2vw, 28px) 0 0; padding: 44px 6px 72px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; -webkit-user-select: none;
  /* soft fade instead of a hard cut where the photos leave the strip */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
}
.trr-strip::-webkit-scrollbar { display: none; }
.trr-strip.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.trr-strip.is-settling { scroll-snap-type: none; }

/* Each photo: a tilted, organically rounded frame. Tilt/offset live in custom
   properties so the hover state can straighten and lift it smoothly. No clip-path
   (it cut the border/shadow and was costly to repaint while scrolling). */
.trr-strip__item {
  --r: 0deg; --y: 0px; --s: 1; --ar: 9 / 7; --rad: 18px 46px 18px 46px;
  position: relative; z-index: 1; flex: 0 0 29%; margin-left: -2.5%; scroll-snap-align: start;
  border-radius: var(--rad);
  transform: translate3d(0, var(--y), 0) rotate(var(--r)) scale(var(--s));
  transition: transform 460ms cubic-bezier(.2, .7, .2, 1);
  will-change: transform; backface-visibility: hidden;
}
.trr-strip__item:first-child { margin-left: 0; }
.trr-strip__frame {
  margin: 0; position: relative; overflow: hidden; border-radius: inherit; aspect-ratio: var(--ar);
  border: 4px solid var(--trr-cream-50); background: var(--trr-cream-200);
  box-shadow: 0 14px 30px rgba(30, 40, 24, .26);
}
.trr-strip__frame img {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  transition: transform 800ms cubic-bezier(.2, .7, .2, 1);
}
/* A light sweep across the photo on hover */
.trr-strip__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 900ms ease;
}
/* Stronger shadow + gold ring fade in on a pseudo-element, which is cheaper than animating box-shadow. */
.trr-strip__item::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 30px 56px rgba(16, 34, 20, .42), 0 0 0 2px rgba(237, 197, 94, .95);
  opacity: 0; transition: opacity 460ms ease;
}

/* Tilt / depth pattern, repeated so it holds for any number of photos. */
.trr-strip__item:nth-child(4n + 1) { --r: -1.6deg; --ar: 3 / 2; --rad: 18px 46px 18px 46px; }
.trr-strip__item:nth-child(4n + 2) { --r: 1.2deg; --y: -12px; --rad: 46px 18px 46px 18px; z-index: 2; }
.trr-strip__item:nth-child(4n + 3) { --r: -1deg; --y: 10px; --rad: 22px 40px 26px 44px; z-index: 1; }
.trr-strip__item:nth-child(4n) { --r: 1.8deg; --ar: 3 / 2; --rad: 40px 22px 44px 26px; }

/* Hover / keyboard-focus: straighten, lift and enlarge; the photo zooms and catches the light. */
@media (hover: hover) {
  .trr-strip__item:hover { --r: 0deg; --y: -16px; --s: 1.05; z-index: 6; }
  .trr-strip__item:hover::after { opacity: 1; }
  .trr-strip__item:hover .trr-strip__frame img { transform: scale(1.1); }
  .trr-strip__item:hover .trr-strip__frame::after { transform: translateX(120%); }
  .trr-strip.is-dragging .trr-strip__item { --y: 0px; --s: 1; }   /* calm while dragging */
}

.trr-gal-btn {
  position: absolute; top: 50%; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px;
  border-radius: 50%; background: var(--trr-forest-800); color: #fff; border: 2px solid var(--trr-cream-50); padding: 0; cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 28, 17, .35); transition: background-color var(--trr-transition-fast), transform var(--trr-transition-fast);
}
.trr-gal-btn:hover { background: var(--trr-forest-600); transform: scale(1.06); }
.trr-gal-btn--prev { left: clamp(-18px, -1vw, -6px); }
.trr-gal-btn--next { right: clamp(-18px, -1vw, -6px); }

.trr-gal__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.trr-dots { display: flex; gap: 9px; align-items: center; }
.trr-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(7, 55, 39, .25); transition: background-color var(--trr-transition-fast), transform var(--trr-transition-fast);
}
.trr-dots button[aria-current="true"] { background: var(--trr-forest-700); transform: scale(1.35); }
.trr-gal-pause {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--trr-forest-700); border: 1.5px solid rgba(7, 55, 39, .35);
}
.trr-gal-pause .trr-ico-play { display: none; }
.trr-gal-pause.is-paused .trr-ico-pause { display: none; }
.trr-gal-pause.is-paused .trr-ico-play { display: block; }

/* ---------- Phase 3: floating Buy Tickets + back to top ----------------------- */

.trr-float {
  position: fixed; z-index: 55;
  right: clamp(8px, 1.4vw, 24px);
  bottom: calc(clamp(16px, 2.6vw, 34px) + var(--trr-float-lift, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}
.trr-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.trr-float__mascot { display: block; line-height: 0; transition: transform var(--trr-transition-fast); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
.trr-float__mascot:hover { transform: translateY(-3px); }
.trr-float__mascot img { width: clamp(78px, 7.2vw, 116px); height: auto; }
.trr-float__top {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--trr-gold-400); color: #2a2208; border: 2px solid var(--trr-cream-50); box-shadow: 0 8px 18px rgba(6, 28, 17, .3);
  transition: transform var(--trr-transition-fast), background-color var(--trr-transition-fast);
}
.trr-float__top:hover { background: #f4d27a; transform: translateY(-2px); }

@media (max-width: 860px) {
  .trr-strip__item { flex-basis: 52%; margin-left: -4%; }
  .trr-gal-btn--prev { left: 4px; }
  .trr-gal-btn--next { right: 4px; }
  .trr-float { bottom: calc(86px + var(--trr-float-lift, 0px)); } /* clear the mobile bottom bar */
  .trr-float__mascot img { width: 72px; }
}
@media (max-width: 560px) {
  .trr-strip__item { flex-basis: 78%; margin-left: -6%; }
  .trr-hero__controls { left: 20px; bottom: 22px; }
}
@media (max-width: 380px) {
  .trr-float__mascot { display: none; }
}

/* In-page jumps should not land under the sticky header. */
.trr-hero, .trr-section { scroll-margin-top: 124px; }

@media (prefers-reduced-motion: reduce) {
  .trr-strip { scroll-behavior: auto; }
  .trr-strip__item, .trr-strip__frame img, .trr-strip__frame::after { transition: none; }
  .trr-strip__item:hover { --y: 0px; --s: 1; }
  .trr-float { transition: none; transform: none; }
  .trr-hero__video { transition: none; }
}

/* ---------- Scroll reveal: sections float up as they enter the viewport -------- */
/* Hidden only when JS has run (html.trr-js is set in <head> and .trr-reveal is added by trr-home.js),
   so the page is fully visible without JavaScript. */

.trr-js .trr-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 800ms cubic-bezier(.2, .7, .2, 1) var(--trr-delay, 0ms),
              transform 800ms cubic-bezier(.2, .7, .2, 1) var(--trr-delay, 0ms);
  will-change: opacity, transform;
}
.trr-js .trr-reveal.is-in { opacity: 1; transform: none; will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .trr-js .trr-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Home page notice pop-up (managed in the backend) ------------------- */

.trr-popup {
  position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity 280ms ease;
}
.trr-popup[hidden] { display: none; }
.trr-popup.is-open { opacity: 1; }
.trr-popup__backdrop { position: absolute; inset: 0; background: rgba(5, 25, 17, .62); }
.trr-popup__box {
  position: relative; max-width: min(92vw, 720px); max-height: 90vh;
  transform: translateY(18px) scale(.97); transition: transform 340ms cubic-bezier(.2, .7, .2, 1);
}
.trr-popup.is-open .trr-popup__box { transform: none; }
.trr-popup__box img {
  display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); background: #fff;
}
.trr-popup__link { display: block; line-height: 0; }
.trr-popup__close {
  position: absolute; top: -14px; right: -14px; z-index: 2; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  background: #111; color: #fff; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  transition: transform var(--trr-transition-fast), background-color var(--trr-transition-fast);
}
.trr-popup__close:hover { background: var(--trr-forest-700); transform: scale(1.08); }
.trr-popup__close:focus-visible, .trr-popup__link:focus-visible { outline: 3px solid var(--trr-gold-400); outline-offset: 3px; }
@media (max-width: 560px) {
  .trr-popup { padding: 16px; }
  .trr-popup__close { top: -12px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .trr-popup, .trr-popup__box { transition: none; }
  .trr-popup__box { transform: none; }
}
