/* ==========================================================================
   KF Crafts — "Your garden, with your room in it." on desktop: The Reveal (Round 8, 28.09.2026)
   Linked with media="(min-width: 1000px) and (hover: hover)": a mouse or trackpad on a wide screen. Phones, tablets
   and touch screens keep the stacked layout in site.css (same markup, same js/reveal.js).
   One screen under the header, edge to edge: the example garden (CGI) on the left of a champagne hairline, the same
   garden with a KF garden office on the right. The words sit on the dark of the lawn, bottom left; the three stops
   bottom right. The whole picture takes the drag (ew-resize); the words and stops sit above it and keep their clicks.
   "After" on desktop is only the building (garden-after-overlay-*.webp, alpha) laid over "before" at its place in the
   2400 × 1350 frame: x 546, y 238, 1348 × 537 → the percentages below.
   ========================================================================== */

.vt-wrap { max-width: none; padding-inline: 0; }

.visualiser.rv {
  position: relative;
  display: grid;
  grid-template-columns:
    max(var(--gutter), env(safe-area-inset-left))
    minmax(0, 37rem)
    minmax(2rem, 1fr)
    minmax(0, 30rem)
    max(var(--gutter), env(safe-area-inset-right));
  grid-template-rows: minmax(0, 1fr) auto auto clamp(2rem, 5.5svh, 3.5rem);
  height: calc(100svh - var(--header-h));
  min-height: 34rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  scroll-margin-top: -1rem; /* html scroll-padding-top is header + 1rem: rest right under the header */
}

.rv .rv__stage {
  grid-area: 1 / 1 / -1 / -1;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  cursor: ew-resize;
}
.rv .rv__stage::after { display: none; }
.rv .rv__pic { width: max(100cqw, 177.778cqh); aspect-ratio: 16 / 9; }
.rv .rv__over { inset: auto; left: 22.75%; top: 17.63%; width: 56.17%; height: 39.78%; }

/* light: the lawn under the words dark enough to read on, the sky under the header quiet, the building untouched */
.rv .rv__shade {
  background:
    linear-gradient(0deg, rgba(10, 10, 10, 0.93) 0%, rgba(10, 10, 10, 0.8) 18%, rgba(10, 10, 10, 0.5) 34%, rgba(10, 10, 10, 0.16) 46%, rgba(10, 10, 10, 0) 56%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0) 38%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.12) 11%, rgba(10, 10, 10, 0) 20%);
}

/* the tags ride with the line: "Before" just left of it, "With your room · CGI" just right */
.rv .rv__tag { top: 1.5rem; }
.rv .rv__tag--l { left: 0; transform: translateX(calc(var(--s) * 100cqw - 100% - 1.1rem)); }
.rv .rv__tag--r { left: 0; right: auto; transform: translateX(calc(var(--s) * 100cqw + 1.1rem)); }
.rv .rv__tag--film { left: max(var(--gutter), env(safe-area-inset-left)); }
.rv .rv__stage .cgi { top: 1.6rem; bottom: auto; right: max(var(--gutter), env(safe-area-inset-right)); }

/* the words, over the lawn */
.rv .vt__head {
  grid-area: 2 / 2 / 3 / 3;
  z-index: 9;
  align-self: end;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}
.rv .vt__head { grid-template-columns: minmax(0, 1fr); }
.rv .vt__head > * { grid-column: 1 / -1; }
.rv .vt__head .h2 { color: var(--text-strong); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.rv .vt__foot {
  grid-area: 3 / 2 / 4 / 3;
  z-index: 9;
  display: grid;
  justify-items: start;
  gap: 1.6rem;
  margin: 1.15rem 0 0;
}
.rv .vt__copy { max-width: 31rem; color: var(--text); font-size: 1.0625rem; font-weight: 300; line-height: 1.6; }

/* the stops, bottom right */
.rv .rv__side { grid-area: 2 / 4 / 4 / 5; z-index: 9; align-self: end; margin: 0; }
.rv .rv__stops { gap: 0.75rem; }
.rv .rv__stop { font-size: 0.6875rem; padding-top: 0.8rem; color: rgba(244, 241, 234, 0.7); }
.rv .rv__note { margin-top: 0.9rem; color: rgba(244, 241, 234, 0.68); font-size: 0.8125rem; }

/* a shorter window (a 13" laptop, a browser with toolbars): the same composition, smaller type */
@media (max-height: 820px) {
  .rv .vt__head .h2 { font-size: clamp(2.25rem, 1rem + 4.2svh, 3.5rem); }
  .rv .vt__foot { gap: 1.2rem; }
  .rv .vt__copy { font-size: 1rem; }
}
@media (max-width: 1199.98px) {
  .visualiser.rv { grid-template-columns: max(var(--gutter), env(safe-area-inset-left)) minmax(0, 31rem) minmax(1.5rem, 1fr) minmax(0, 23rem) max(var(--gutter), env(safe-area-inset-right)); }
  .rv .vt__copy { max-width: 27rem; }
}
