/* Liantis case study. The layout (sidebar, slides, grid) is shared: case.css and
   case.js. This file holds each slide's backdrop (.stage) and the pieces of the
   Liantis website laid out on it: images cut from 2x exports of the Sketch and
   Figma files, and the Starters GPS illustration as inline SVG. */

:root {
  --purple: #7843a5; /* the brand purple */
  --lilac: #f7eeff; /* the 2020 case's backdrop, the purple's lightest tint */
  --mint: #ddf8f1; /* a tint of the accent mint (#9eefe1) */
  --screen-shadow: 0 30px 70px rgba(30, 20, 40, 0.16), 0 6px 16px rgba(30, 20, 40, 0.08);
  --pad: clamp(20px, 5vw, 64px);
}

img {
  -webkit-user-drag: none;
}

/* ── Stages ─────────────────────────────────────────────── */

.stage {
  position: relative;
  overflow: hidden;
  padding: var(--pad);
}

.stage-lilac { background: var(--lilac); }
.stage-purple { background: var(--purple); }
.stage-grey { background: #e7e6e9; }
.stage-mint { background: var(--mint); }

/* the design's own pointer (a hand), clicking in the office finder */
.cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: clamp(18px, 2vw, 28px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

/* ── 1. Homepage ────────────────────────────────────────── */

.hero {
  padding-bottom: 0;
  perspective: 1400px;
}

.hero-screen {
  width: 88%;
  margin: 0 auto;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(60, 30, 90, 0.18), 0 6px 18px rgba(60, 30, 90, 0.1);
  transform-origin: 50% 0;
}

.hero-screen img {
  width: 100%;
}

/* ── 2. Detail pages ────────────────────────────────────── */

/* the shape is set on the slide, not on its stretched backdrop (Firefox) */
.shot-details {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.dwins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
  align-items: center;
}

/* a window onto the page, which scrolls inside it */
.dwin {
  aspect-ratio: 8 / 15;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(30, 10, 50, 0.4), 0 6px 16px rgba(30, 10, 50, 0.25);
}

.dwins.dwins-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 4%;
  width: 100%;
  margin: 0;
}

/* two windows fill the slide: wider than tall-ish, the stage's padding around them */
.dwins-2 .dwin {
  aspect-ratio: 5 / 6;
}

.dpage {
  width: 100%;
  will-change: transform;
}

/* ── 4. Starters GPS ────────────────────────────────────── */

/* the page (header, intro, banner) with the banner's drawing laid over it, in page px */
.gps-screen {
  position: relative;
  width: 88%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--screen-shadow);
}

.gps-screen > img {
  width: 100%;
}

.gps {
  position: absolute;
  left: calc(20 / 1440 * 100%);
  top: calc(205 / 900 * 100%);
  width: calc(1400 / 1440 * 100%);
  height: calc(430 / 900 * 100%);
  overflow: visible;
  fill: none;
  stroke: var(--purple);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gps .gps-gaps rect {
  fill: #f7f7f7;
  stroke: none;
}

.gps .gps-check,
.gps polygon {
  fill: var(--purple);
  stroke: none;
}

.gps .gps-waves {
  stroke: #9eefe1;
}

/* ── 5. Kantoren ────────────────────────────────────────── */

.kant {
  position: relative;
  width: 100%;
  aspect-ratio: 1344 / 674;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(20, 70, 60, 0.16), 0 6px 16px rgba(20, 70, 60, 0.08);
}

.kant-list {
  position: absolute;
  inset: 0;
  width: 100%;
}

.kant-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  opacity: 0;
  background: #fff;
}

.kant-map {
  position: absolute;
  overflow: hidden;
  border-radius: calc(12 / 632 * 100%) / calc(12 / 630 * 100%);
}

.kant-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kant-zoom > img:first-child {
  width: 100%;
  height: 100%;
}

.kant .pin {
  position: absolute;
  width: calc(64 / 1264 * 100%);
  height: auto;
  transform-origin: 50% 100%;
}

/* ── 6. Content blocks ──────────────────────────────────── */

.shot-masonry {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.shot-masonry > .stage {
  padding: 0;
}

/* liantis.js lays the blocks out (three columns, two on phones), sizes them and
   hides the one of each same-size pair that waits to swap in */
.masonry {
  position: absolute;
  inset: var(--pad) var(--pad) 0;
}

.mitem {
  position: absolute;
  top: 0;
  left: 0;
}

/* each block is cut with its soft shadow around it; the image is placed so the
   block itself fills the item */
.mitem img {
  position: absolute;
  max-width: none;
}

/* ── Phones ─────────────────────────────────────────────── */

@media (max-width: 699px) {
  .shot-details { aspect-ratio: 4 / 5; }
  .dwins { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .shot-masonry { aspect-ratio: 5 / 4; } /* the two columns end unevenly lower down */
}
