/* =====================================================================
   "Our Journey" page (inc/journey.php + journey.js) – cinematic, real photos in a 3D room (2026-11-14)
   ---------------------------------------------------------------------
   CHANGE HERE
   - Colours ................. --jr-red (QST red), --jr-bg (near black), --jr-paper (off-white) in .qst-jr
   - Hero photo .............. .qst-jr-hero (background-image)
   - Photo size in a scene ... FILM MODE block: .qst-jr__img (width / height)
   - Time each scene stays ... FILM MODE block: margin under .qst-jr__ch (80vh)
   Words, years, figures, photos and buttons are edited in Elementor.
   3D MODE = html.qst-jr-3d (added by journey.js when WebGL works): one 3D world behind the whole page, the words float over it.
   FILM MODE = html.qst-jr-film: each chapter is a pinned full-screen scene (in 3D mode and in the flat fallback).
   Without JavaScript, with reduced motion and in the Elementor editor the page is a normal stacked timeline.
   ===================================================================== */

.elementor .e-con.qst-jr {
  --jr-bg: #0b0b0c;
  --jr-ink: #f4f2ee;
  --jr-dim: rgba(244, 242, 238, 0.72);
  --jr-line: rgba(244, 242, 238, 0.14);
  --jr-red: #d5132f;
  --jr-paper: #efeeea;
  --jr-pad: clamp(1.25rem, 5vw, 5.5rem);
  position: relative;
  display: block;
  padding: 0;
  background: var(--jr-bg);
  color: var(--jr-ink);
  overflow: clip;
}
.qst-jr .elementor-widget { margin: 0; width: 100%; }
.qst-jr .elementor-heading-title { margin: 0; }
.wd-page-content .wd-content-layout:has(.qst-jr),
.wd-content-layout:has(.qst-jr) { padding-top: 0; padding-bottom: 0; }

.qst-jr .qst-jr__label .elementor-heading-title,
.qst-jr .qst-jr__eyebrow .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: clamp(0.68rem, 0.8vw, 0.8rem); font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--jr-ink);
}
.qst-jr .qst-jr__label .elementor-heading-title::before,
.qst-jr .qst-jr__eyebrow .elementor-heading-title::before { content: ""; width: 2.2rem; height: 2px; background: var(--jr-red); }
.qst-jr .qst-jr__title .elementor-heading-title {
  margin-top: 1rem;
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400;
  font-size: clamp(2.5rem, 4.8vw, 5rem); line-height: 0.92; text-transform: uppercase; color: var(--jr-ink);
}
.qst-jr .qst-jr__accent { color: var(--jr-red); }
.qst-jr .qst-jr__outline { color: transparent; -webkit-text-stroke: 1.5px var(--jr-ink); }
.qst-jr .qst-jr__text { margin-top: 1.2rem; }
.qst-jr .qst-jr__text p { max-width: 34rem; margin: 0; font-size: clamp(1rem, 1.1vw, 1.12rem); line-height: 1.7; color: var(--jr-dim); }

/* ---------- hero ---------- */
.elementor .e-con.qst-jr-hero {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(94vh, 58rem);
  padding: clamp(7rem, 16vh, 10rem) var(--jr-pad) clamp(3rem, 7vh, 5rem);
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.9) 0%, rgba(11, 11, 12, 0.55) 45%, rgba(11, 11, 12, 0.15) 100%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0) 40%, var(--jr-bg) 100%),
    url("img/contact-hero.webp") center 35% / cover no-repeat;
}
.qst-jr-hero .qst-jr-hero__title .elementor-heading-title {
  margin-top: 1.2rem; max-width: 12ch;
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400;
  font-size: clamp(3.6rem, 10.5vw, 11rem); line-height: 0.86; text-transform: uppercase; color: var(--jr-ink);
}
.qst-jr-hero .qst-jr__outline { -webkit-text-stroke: 2px var(--jr-red); }
.qst-jr-hero .qst-jr-hero__text { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.qst-jr-hero .qst-jr-hero__text p { max-width: 36rem; margin: 0; font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.65; color: rgba(244, 242, 238, 0.86); }
.qst-jr-hero .qst-jr-hero__cue { margin-top: clamp(2.2rem, 6vh, 4rem); }
.qst-jr-hero .qst-jr-hero__cue .elementor-heading-title { display: inline-flex; align-items: center; gap: 0.9rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--jr-ink); }
.qst-jr-hero .qst-jr-hero__cue .elementor-heading-title::before { content: ""; width: 2px; height: 3.2rem; background: linear-gradient(var(--jr-red), transparent); animation: qst-jr-cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes qst-jr-cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- timeline: stacked layout (no JS / editor / reduced motion) ---------- */
.elementor .e-con.qst-jr-line { position: relative; padding: clamp(2rem, 6vh, 5rem) var(--jr-pad); }
.elementor .e-con.qst-jr__ch {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: center;
  width: 100%; padding: clamp(3rem, 8vh, 5rem) 0; border-top: 1px solid var(--jr-line);
}
.elementor .e-con.qst-jr__ch > .qst-jr__mark { grid-column: 1; grid-row: 1; width: auto; }
.qst-jr .qst-jr__mark .elementor-heading-title {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400;
  font-size: clamp(5rem, 13vw, 13rem); line-height: 0.8; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px var(--jr-red);
}
.elementor .e-con.qst-jr__body { display: block; padding: 0; grid-column: 1; grid-row: 2; margin-top: 1.2rem; }
.elementor .e-con.qst-jr__ch > .qst-jr__img { grid-column: 2; grid-row: 1 / span 2; }
.qst-jr .qst-jr__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.elementor .e-con.qst-jr__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; width: auto; margin-top: 1.6rem; padding: 1.1rem 0 0; border-top: 1px solid var(--jr-line); }
.qst-jr .qst-jr__stat .elementor-widget { width: auto; }
.qst-jr .qst-jr__num .elementor-heading-title { font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400; font-size: clamp(3.4rem, 6vw, 6rem); line-height: 0.9; color: var(--jr-red); font-variant-numeric: tabular-nums; }
.qst-jr .qst-jr__num-label .elementor-heading-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--jr-dim); }

/* ---------- FILM MODE: one pinned full-screen scene per chapter ---------- */
.qst-jr-stage { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; }
.qst-jr-stage__in { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--jr-bg, #0b0b0c); }
.qst-jr-bd { position: absolute; inset: -8%; background: center / cover no-repeat; filter: blur(34px) saturate(0.7) brightness(0.55); opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 7s ease-out; }
.qst-jr-bd.on { opacity: 1; transform: scale(1); }
.qst-jr-bd--plain { filter: none; background: radial-gradient(70% 90% at 78% 50%, rgba(213, 19, 47, 0.3), rgba(11, 11, 12, 0) 70%), #0b0b0c; }
.qst-jr-stage__in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 12, 0.88) 0%, rgba(11, 11, 12, 0.5) 46%, rgba(11, 11, 12, 0.15) 100%), linear-gradient(180deg, rgba(11, 11, 12, 0.5), rgba(11, 11, 12, 0) 25%, rgba(11, 11, 12, 0) 70%, rgba(11, 11, 12, 0.75)); }

html.qst-jr-film .elementor .e-con.qst-jr-line { padding: 0 var(--jr-pad); }
html.qst-jr-film .elementor .e-con.qst-jr-line::after { content: ""; display: block; position: static; width: 100%; height: 80vh; background: none; }   /* the last scene's dwell */
html.qst-jr-film .elementor .e-con.qst-jr__ch {
  position: sticky; top: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  height: 100vh; margin: 0 0 80vh; padding: 0 0 clamp(6.5rem, 16vh, 9.5rem); border: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
html.qst-jr-film .elementor .e-con.qst-jr__ch:last-of-type { margin-bottom: 0; }
html.qst-jr-film .elementor .e-con.qst-jr__ch.is-active { opacity: 1; visibility: visible; transition: opacity 0.5s ease 0.1s, visibility 0s; }
html.qst-jr-film .elementor .e-con.qst-jr__ch > .qst-jr__mark { opacity: 0; transform: translateY(60px); transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s ease; }
html.qst-jr-film .qst-jr__ch:not(.qst-jr__ch--text) .qst-jr__mark .elementor-heading-title { font-size: clamp(4.2rem, min(9vw, 17vh), 9.5rem); }
html.qst-jr-film .elementor .e-con.qst-jr__ch > .e-con.qst-jr__body { width: 100%; max-width: min(40rem, 46vw); margin-top: clamp(0.8rem, 2vh, 1.4rem); }
html.qst-jr-film .qst-jr__ch > .e-con.qst-jr__body > .elementor-element { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.qst-jr-film .elementor .e-con.qst-jr__ch.is-active > .qst-jr__mark { opacity: 1; transform: none; transition-delay: 0.15s; }
html.qst-jr-film .qst-jr__ch.is-active > .e-con.qst-jr__body > .elementor-element { opacity: 1; transform: none; transition-delay: 0.3s; }
html.qst-jr-film .qst-jr__ch.is-active > .e-con.qst-jr__body > .elementor-element:nth-child(2) { transition-delay: 0.4s; }
html.qst-jr-film .qst-jr__ch.is-active > .e-con.qst-jr__body > .elementor-element:nth-child(3) { transition-delay: 0.5s; }
html.qst-jr-film .qst-jr__ch.is-active > .e-con.qst-jr__body > .elementor-element:nth-child(4) { transition-delay: 0.65s; }
html.qst-jr-film .elementor .e-con.qst-jr__ch.is-past > .qst-jr__mark,
html.qst-jr-film .qst-jr__ch.is-past > .e-con.qst-jr__body > .elementor-element { transform: translateY(-40px); }
html.qst-jr-film .qst-jr__ch .qst-jr__text p { color: rgba(244, 242, 238, 0.88); }

/* the photo: a large frame on the right, wiped in from below, slowly zooming out, drifting with the scroll */
html.qst-jr-film .elementor .e-con.qst-jr__ch { perspective: 1500px; perspective-origin: 62% 46%; }
html.qst-jr-film .elementor .e-con.qst-jr__ch > .qst-jr__img {
  position: absolute; right: 2.5vw; top: 46%; width: min(40vw, 44rem); height: min(62vh, 38rem);
  transform-style: preserve-3d; opacity: 0;
  transform: translateY(-50%) translate3d(26%, 0, -420px) rotateY(-62deg);          /* waits far right, turned away */
  transition: transform 1.25s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.7s ease;
}
html.qst-jr-film .elementor .e-con.qst-jr__ch.is-active > .qst-jr__img { opacity: 1; transform: translateY(-50%); transition-delay: 0.15s; }
html.qst-jr-film .elementor .e-con.qst-jr__ch.is-past > .qst-jr__img { transform: translateY(-50%) translate3d(-30%, 0, -300px) rotateY(48deg); }
/* the panel itself: turns with the scroll (--p) and leans towards the mouse (--mx / --my, set by journey.js) */
html.qst-jr-film .qst-jr__ch > .qst-jr__img .qst-jr__panel {
  position: relative; width: 100%; height: 100%; overflow: hidden; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px + var(--jr-drift, 0px)), 0)
             rotateY(calc(-15deg + var(--p, 0.5) * 9deg + var(--mx, 0) * 8deg)) rotateX(calc(var(--my, 0) * -5deg));
  box-shadow: 0 60px 110px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(244, 242, 238, 0.08);
  -webkit-box-reflect: below 10px linear-gradient(transparent 62%, rgba(0, 0, 0, 0.28));
}
html.qst-jr-film .qst-jr__ch > .qst-jr__img .qst-jr__panel::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 62%); background-size: 260% 100%;
  background-position: calc(110% - var(--p, 0.5) * 120% - var(--mx, 0) * 12%) 0; }                                   /* light passing over the picture */
html.qst-jr-film .qst-jr__ch > .qst-jr__img img { width: 100%; height: 100%; aspect-ratio: auto; max-width: none; object-fit: cover; transform: scale(1.16); transition: transform 7s cubic-bezier(0.2, 0.6, 0.2, 1); }
html.qst-jr-film .qst-jr__ch.is-active > .qst-jr__img img { transform: scale(1); }
html.qst-jr-film .qst-jr__ch > .qst-jr__img .qst-jr__panel::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 5px; background: var(--jr-red); }
/* scenes without a photo: the year itself is the picture */
html.qst-jr-film .elementor .e-con.qst-jr__ch--text > .qst-jr__mark { position: absolute; right: -1vw; top: 50%; transform: translateY(-50%) translateX(8vw); }
html.qst-jr-film .elementor .e-con.qst-jr__ch--text.is-active > .qst-jr__mark { transform: translateY(-50%); }
html.qst-jr-film .elementor .e-con.qst-jr__ch--text.is-past > .qst-jr__mark { transform: translateY(-50%) translateX(-6vw); }
html.qst-jr-film .qst-jr__ch--text .qst-jr__mark .elementor-heading-title { position: relative; font-size: clamp(9rem, 30vw, 34rem); -webkit-text-stroke: 3px var(--jr-red);
  transform-style: preserve-3d; will-change: transform;
  transform: rotateY(calc(-20deg + var(--p, 0.5) * 10deg + var(--mx, 0) * 12deg)) rotateX(calc(var(--my, 0) * -7deg)); }
html.qst-jr-film .qst-jr__ch--text .qst-jr__mark .elementor-heading-title::before,
html.qst-jr-film .qst-jr__ch--text .qst-jr__mark .elementor-heading-title::after { content: attr(data-t); position: absolute; left: 0; top: 0; color: transparent; pointer-events: none; }
html.qst-jr-film .qst-jr__ch--text .qst-jr__mark .elementor-heading-title::before { -webkit-text-stroke: 2px rgba(213, 19, 47, 0.42); transform: translateZ(-150px); }
html.qst-jr-film .qst-jr__ch--text .qst-jr__mark .elementor-heading-title::after { -webkit-text-stroke: 1.5px rgba(244, 242, 238, 0.16); transform: translateZ(-320px); }

/* the room: a floor that runs to the horizon and moves as you scroll, dust in the air */
.qst-jr-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; overflow: hidden; perspective: 420px; perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 55%); mask-image: linear-gradient(to bottom, transparent 0, #000 55%); opacity: 0.7; }
.qst-jr-floor > i { position: absolute; left: -120%; right: -120%; top: 0; height: 260%; transform-origin: 50% 0; transform: rotateX(72deg);
  background-image: linear-gradient(rgba(213, 19, 47, 0.6) 2px, transparent 2px), linear-gradient(90deg, rgba(244, 242, 238, 0.22) 2px, transparent 2px);
  background-size: 100% 70px, 70px 100%; background-position: 0 var(--fy, 0px), calc(50% + var(--fx, 0px)) 0; }
.qst-jr-dust { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; }
.qst-jr-hero .qst-jr-hero__title .elementor-heading-title { transform: perspective(1100px) rotateY(calc(var(--mx, 0) * 5deg)) rotateX(calc(var(--my, 0) * -4deg)) translate3d(calc(var(--mx, 0) * 10px), 0, 0); transform-origin: 0 60%; will-change: transform; }

/* chapter bar */
.qst-jr-hud { position: fixed; z-index: 40; left: clamp(1.25rem, 5vw, 5.5rem); right: max(5.5rem, 5vw); bottom: clamp(1.1rem, 3.4vh, 2rem); display: flex; justify-content: space-between; gap: 0.5rem; padding-top: 14px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.qst-jr-hud.show { opacity: 1; transform: none; pointer-events: auto; }
.qst-jr-hud::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: rgba(244, 242, 238, 0.25); }
.qst-jr-hud > i { position: absolute; left: 0; top: 3px; height: 3px; width: 0; background: #d5132f; }
.qst-jr-hud button { position: relative; flex: 0 1 auto; min-height: 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: rgba(244, 242, 238, 0.55); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; transition: color 0.3s; }
.qst-jr-hud button:hover { background: none; color: #f4f2ee; }
.qst-jr-hud button::before { content: ""; position: absolute; left: 0; top: -14px; width: 9px; height: 9px; border-radius: 50%; background: #0b0b0c; border: 1px solid rgba(244, 242, 238, 0.45); transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.qst-jr-hud button.past::before { background: #d5132f; border-color: #d5132f; }
.qst-jr-hud button.on { color: #f4f2ee; }
.qst-jr-hud button.on::before { background: #d5132f; border-color: #d5132f; box-shadow: 0 0 0 5px rgba(213, 19, 47, 0.28); }

/* ---------- shipping (light) ---------- */
.elementor .e-con.qst-jr-ship { padding: clamp(4rem, 12vh, 8rem) var(--jr-pad); background: var(--jr-paper); color: #0b0b0c; --jr-ink: #0b0b0c; --jr-dim: rgba(11, 11, 12, 0.7); --jr-line: rgba(11, 11, 12, 0.14); }
.elementor .e-con.qst-jr__head { display: block; padding: 0; max-width: 46rem; }
.elementor .e-con.qst-jr__route { display: block; width: 100%; margin: clamp(2rem, 5vh, 3.5rem) 0 clamp(1.5rem, 4vh, 2.5rem); padding: 0; min-height: 4rem; }
.qst-jr__route svg { display: block; width: 100%; height: auto; overflow: visible; }
.qst-jr__route .rt { fill: none; stroke: var(--jr-red); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.qst-jr__route .rt--sea { stroke: #0b0b0c; stroke-dasharray: 0.012 0.012; stroke-dashoffset: 0; opacity: 0; }
.qst-jr-ship.is-in .qst-jr__route .rt { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(0.6, 0, 0.2, 1) 0.2s; }
.qst-jr-ship.is-in .qst-jr__route .rt--sea { opacity: 0.7; transition: opacity 1.2s ease 0.9s; }
html:not(.qst-jr-js) .qst-jr__route .rt { stroke-dashoffset: 0; }
html:not(.qst-jr-js) .qst-jr__route .rt--sea { opacity: 0.7; }
.qst-jr__route .nd { fill: var(--jr-paper); stroke: #0b0b0c; stroke-width: 1.6; }
.qst-jr__route .nd--on { fill: var(--jr-red); stroke: var(--jr-red); }
.qst-jr__route .mv { fill: var(--jr-red); }
.qst-jr__route text { paint-order: stroke; stroke: #efeeea; stroke-width: 7px; stroke-linejoin: round; font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; fill: #0b0b0c; }
.qst-jr__route text.sm { font-size: 11px; fill: rgba(11, 11, 12, 0.6); letter-spacing: 0.24em; }
.elementor .e-con.qst-jr__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 1.4vw, 1.4rem); width: 100%; padding: 0; }
.elementor .e-con.qst-jr__card { position: relative; display: block; width: 100%; padding: clamp(1.4rem, 2.4vw, 2.2rem); background: #fff; border-top: 4px solid var(--jr-red); box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.35); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.elementor .e-con.qst-jr__card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -26px rgba(0, 0, 0, 0.45); }
.qst-jr .qst-jr__card-tag .elementor-heading-title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; color: var(--jr-red); }
.qst-jr .qst-jr__card-title .elementor-heading-title { margin-top: 0.9rem; font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1; text-transform: uppercase; color: #0b0b0c; }
.qst-jr .qst-jr__card-text { margin-top: 0.6rem; }
.qst-jr .qst-jr__card-text p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: rgba(11, 11, 12, 0.7); }

/* ---------- today ---------- */
.elementor .e-con.qst-jr-now { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: clamp(4rem, 12vh, 8rem) var(--jr-pad); }
.elementor .e-con.qst-jr-now > .e-con.qst-jr__head { grid-column: 1; grid-row: 1; }
.elementor .e-con.qst-jr__counter { grid-column: 1; grid-row: 2; display: flex; align-items: baseline; gap: 1rem; width: auto; margin-top: clamp(1.6rem, 4vh, 2.6rem); padding: 0; }
.qst-jr .qst-jr__counter .elementor-widget { width: auto; }
.qst-jr .qst-jr__count .elementor-heading-title { min-width: 2.2ch; font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400; font-size: clamp(6rem, 15vw, 15rem); line-height: 0.8; color: var(--jr-red); font-variant-numeric: tabular-nums; }
.qst-jr .qst-jr__count-label .elementor-heading-title { font-size: clamp(0.8rem, 1vw, 1rem); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--jr-ink); line-height: 1.5; }
.elementor .e-con.qst-jr-now > .qst-jr__nowimg { grid-column: 2; grid-row: 1 / span 2; }
.qst-jr .qst-jr__nowimg { position: relative; }
.qst-jr .qst-jr__nowimg img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9); }
.qst-jr .qst-jr__nowimg::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 5px; background: var(--jr-red); }
.elementor .e-con.qst-jr__figs { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: 100%; margin-top: clamp(2.5rem, 7vh, 4.5rem); padding: 0; border-top: 1px solid var(--jr-line); }
.elementor .e-con.qst-jr__fig { display: block; width: 100%; padding: 1.4rem 1.2rem 0 0; }
.qst-jr .qst-jr__fig-num .elementor-heading-title { font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 1; color: var(--jr-ink); }
.qst-jr .qst-jr__fig-label .elementor-heading-title { margin-top: 0.4rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--jr-dim); line-height: 1.4; }

/* ---------- closing (red) ---------- */
.elementor .e-con.qst-jr-end { padding: clamp(5rem, 16vh, 10rem) var(--jr-pad); text-align: center; background: var(--jr-red); --jr-dim: rgba(255, 255, 255, 0.9); }
.qst-jr-end .qst-jr__label .elementor-heading-title { color: #fff; }
.qst-jr-end .qst-jr__label .elementor-heading-title::before { background: #fff; }
.qst-jr-end .qst-jr-end__title .elementor-heading-title { margin-top: 1rem; font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400; font-size: clamp(3rem, 8vw, 8rem); line-height: 0.88; text-transform: uppercase; color: #fff; }
.qst-jr-end .qst-jr__accent { color: #0b0b0c; }
.qst-jr-end .qst-jr__text p { margin: 0 auto; }
.elementor .e-con.qst-jr__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; width: 100%; margin-top: clamp(1.8rem, 4vh, 2.6rem); padding: 0; }
.qst-jr .qst-jr__btn { width: auto; }
.qst-jr .qst-jr__btn .elementor-button { min-height: 54px; display: inline-flex; align-items: center; padding: 0 1.8rem; border: 2px solid #0b0b0c; border-radius: 0; background: #0b0b0c; color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.qst-jr .qst-jr__btn .elementor-button:hover { background: #fff; border-color: #fff; color: #0b0b0c; }
.qst-jr .qst-jr__btn--ghost .elementor-button { background: transparent; color: #fff; border-color: #fff; }
.qst-jr .qst-jr__btn--ghost .elementor-button:hover { background: #fff; color: var(--jr-red); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .elementor .e-con.qst-jr__ch { grid-template-columns: 1fr; }
  .elementor .e-con.qst-jr__ch > .qst-jr__img { grid-column: 1; grid-row: 3; margin-top: 1.6rem; }
  .elementor .e-con.qst-jr__cards { grid-template-columns: 1fr; }
  .elementor .e-con.qst-jr-now { grid-template-columns: 1fr; }
  .elementor .e-con.qst-jr-now > .qst-jr__nowimg { grid-column: 1; grid-row: 3; margin-top: 2rem; }
  .elementor .e-con.qst-jr__figs { grid-row: 4; grid-template-columns: 1fr 1fr; }
  .qst-jr__route text { font-size: 20px; } .qst-jr__route text.sm { font-size: 17px; }
  .qst-jr-stage__in::after { background: linear-gradient(0deg, rgba(11, 11, 12, 0.95) 0%, rgba(11, 11, 12, 0.7) 45%, rgba(11, 11, 12, 0.25) 100%); }
  html.qst-jr-film .elementor .e-con.qst-jr__ch { padding-bottom: 5.2rem; }
  html.qst-jr-film .elementor .e-con.qst-jr__ch > .e-con.qst-jr__body { max-width: 100%; }
  html.qst-jr-film .elementor .e-con.qst-jr__ch { perspective: none; }
  html.qst-jr-film .elementor .e-con.qst-jr__ch > .qst-jr__img,
  html.qst-jr-film .elementor .e-con.qst-jr__ch.is-active > .qst-jr__img,
  html.qst-jr-film .elementor .e-con.qst-jr__ch.is-past > .qst-jr__img { left: calc(-1 * var(--jr-pad)); right: calc(-1 * var(--jr-pad)); top: 9vh; width: auto; height: 34vh; margin: 0; transform: none; }
  html.qst-jr-film .qst-jr__ch > .qst-jr__img .qst-jr__panel { transform: none; -webkit-box-reflect: unset; }
  .qst-jr-floor { display: none; }
  html.qst-jr-film .qst-jr .qst-jr__mark .elementor-heading-title { font-size: clamp(3.6rem, 19vw, 6rem); -webkit-text-stroke-width: 1.5px; }
  html.qst-jr-film .elementor .e-con.qst-jr__ch--text > .qst-jr__mark { right: auto; left: 0; top: 24vh; }
  html.qst-jr-film .qst-jr__ch--text .qst-jr__mark .elementor-heading-title { font-size: clamp(7rem, 40vw, 14rem); -webkit-text-stroke-width: 2px; }
  html.qst-jr-film .qst-jr__ch .qst-jr__title .elementor-heading-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .qst-jr-hud button span { display: none; }
  .qst-jr-hud button.on span { display: inline; position: absolute; left: 0; top: 4px; white-space: nowrap; }
  .qst-jr-hud button:last-child.on span { left: auto; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .qst-jr *, .qst-jr *::before, .qst-jr *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   3D MODE (html.qst-jr-3d): the world is drawn by journey.js on one canvas that stays behind the whole page.
   Here: the sections lose their own backgrounds, photos and big years (the 3D world shows those), text gets a soft dark side.
   ===================================================================== */
.qst-jr-root { position: relative; }
.qst-jr-stage--3d { left: calc(50% - 50vw); right: auto; width: 100vw; }
.qst-jr-stage--3d .qst-jr-stage__in { background: #03040a; }
.qst-jr-stage--3d canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.qst-jr-stage--3d .is-ready canvas { opacity: 1; }
.qst-jr-stage--3d .qst-jr-stage__in::after { background:
  linear-gradient(90deg, rgba(3, 4, 10, 0.82) 0%, rgba(3, 4, 10, 0.5) 30%, rgba(3, 4, 10, 0) 58%),
  linear-gradient(180deg, rgba(3, 4, 10, 0.45) 0%, rgba(3, 4, 10, 0) 22%, rgba(3, 4, 10, 0) 72%, rgba(3, 4, 10, 0.7) 100%); }
html.qst-jr-3d .elementor .e-con.qst-jr { background: transparent; overflow: visible; }
html.qst-jr-3d .elementor .e-con.qst-jr-hero { min-height: 100vh; background: none; }
html.qst-jr-3d .elementor .e-con.qst-jr__ch { perspective: none; justify-content: center; padding: 6vh 0 10vh; }
html.qst-jr-3d .elementor .e-con.qst-jr__ch > .qst-jr__mark { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }   /* the year stands in the 3D world */
html.qst-jr-3d .elementor .e-con.qst-jr__ch.is-active > .qst-jr__mark { opacity: 0; }
html.qst-jr-3d .elementor .e-con.qst-jr__ch > .qst-jr__img,
html.qst-jr-3d .elementor .e-con.qst-jr__ch.is-active > .qst-jr__img,
html.qst-jr-3d .elementor .e-con.qst-jr__ch.is-past > .qst-jr__img { position: absolute; left: 0; top: 0; right: auto; width: 2px; height: 2px; overflow: hidden; opacity: 0; transform: none; pointer-events: none; }   /* the photo is on the signboard */
html.qst-jr-3d .elementor .e-con.qst-jr__ch > .e-con.qst-jr__body { max-width: min(34rem, 42vw); margin-top: 0; }
html.qst-jr-3d .qst-jr__ch .qst-jr__title .elementor-heading-title { font-size: clamp(2.6rem, 5vw, 5.4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
html.qst-jr-3d .qst-jr__ch .qst-jr__text p { color: rgba(244, 242, 238, 0.92); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8); }
html.qst-jr-3d .elementor .e-con.qst-jr__ch { transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
html.qst-jr-3d .elementor .e-con.qst-jr-end { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 2rem; padding-bottom: clamp(3rem, 9vh, 6rem); background: linear-gradient(180deg, rgba(3, 4, 10, 0) 38%, rgba(3, 4, 10, 0.72) 78%, rgba(3, 4, 10, 0.9) 100%); --jr-dim: rgba(255, 255, 255, 0.92); }
html.qst-jr-3d .qst-jr-end .qst-jr-end__title .elementor-heading-title { font-size: clamp(2.8rem, 6.4vw, 6.4rem); }
html.qst-jr-3d .qst-jr-end .qst-jr__accent { color: var(--jr-red); }
html.qst-jr-3d .qst-jr-end .qst-jr-end__title .elementor-heading-title { text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55); }
html.qst-jr-3d .qst-jr .qst-jr__btn .elementor-button { background: var(--jr-red); border-color: var(--jr-red); }
html.qst-jr-3d .qst-jr .qst-jr__btn--ghost .elementor-button { background: rgba(3, 4, 10, 0.35); border-color: #fff; }
/* shipping chapter: the three ways, small, under the words */
.elementor .e-con.qst-jr__ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; width: 100%; margin-top: 1.6rem; padding: 0; }
.elementor .e-con.qst-jr__way { display: block; width: 100%; padding: 0.9rem 1rem; border-top: 3px solid var(--jr-red); background: rgba(244, 242, 238, 0.06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qst-jr .qst-jr__way-tag .elementor-heading-title { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; color: var(--jr-red); }
.qst-jr .qst-jr__way-title .elementor-heading-title { margin-top: 0.45rem; font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400; font-size: clamp(1.15rem, 1.5vw, 1.5rem); line-height: 1; text-transform: uppercase; color: var(--jr-ink); }
html.qst-jr-film .elementor .e-con.qst-jr__ch--wide > .e-con.qst-jr__body { max-width: min(40rem, 50vw); }
@media (max-width: 900px) {
  .qst-jr-stage--3d .qst-jr-stage__in::after { background: linear-gradient(180deg, rgba(3, 4, 10, 0.3) 0%, rgba(3, 4, 10, 0) 30%, rgba(3, 4, 10, 0.55) 55%, rgba(3, 4, 10, 0.93) 100%); }
  html.qst-jr-3d .elementor .e-con.qst-jr__ch { justify-content: flex-end; padding: 0 0 5.4rem; }
  html.qst-jr-3d .elementor .e-con.qst-jr__ch > .e-con.qst-jr__body,
  html.qst-jr-film .elementor .e-con.qst-jr__ch--wide > .e-con.qst-jr__body { max-width: 100%; }
  .elementor .e-con.qst-jr__ways { grid-template-columns: 1fr; gap: 0.35rem; margin-top: 1rem; }
  .elementor .e-con.qst-jr__way { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.5rem 0.7rem; border-top: 0; border-left: 3px solid var(--jr-red); }
  .elementor .e-con.qst-jr__way .elementor-widget { width: auto; }
  .qst-jr .qst-jr__way-title .elementor-heading-title { margin-top: 0; }
  .qst-jr .qst-jr__way-tag { order: 2; }
}
