/* Interactive product tour in the hero (fictitious project, drawn; no real project images or names).
   One light UI theme throughout. Mobile first: phone, controls, chapter chips.
   Scenes reveal their steps through cumulative classes s1..s8 set by demo.js. */
.demo {
  display: grid;
  /* minmax(0, 1fr): the scrolling chip strip must never widen the column */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  justify-items: center;
  width: 100%;
  --d-bg: #f3f2ec;
  --d-card: #ffffff;
  --d-line: #e0ded4;
  --d-text: #17201a;
  --d-muted: #5d675f;
  --d-accent: #2f6420;
  --d-lime: #c3ef9d;
  --d-free: #2ba272;
  --d-option: #f08a3c;
  --d-sold: #e0484d;
  --d-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --d-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
}

/* Phone frame */
.demo-phone {
  width: min(330px, 88vw);
  max-width: calc(72svh * 9 / 17 + 18px);
  padding: 9px;
  border-radius: 42px;
  background: #050706;
  border: 1px solid var(--ink-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.demo-screen {
  position: relative;
  aspect-ratio: 9 / 17;
  max-height: 72svh;
  width: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: var(--d-bg);
  color: var(--d-text);
  font-size: 13px;
  line-height: 1.4;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}

@supports not (height: 1svh) {
  .demo-screen {
    max-height: 72vh;
  }

  .demo-phone {
    max-width: calc(72vh * 9 / 17 + 18px);
  }
}

.demo-stories {
  position: absolute;
  top: 10px;
  left: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  gap: 4px;
}

.demo-stories span {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(23, 32, 26, 0.14);
  overflow: hidden;
}

.demo-stories i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--d-accent);
  transition: width 0.1s linear;
}

.demo-badge {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 30;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(23, 32, 26, 0.55);
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Subtitles inside the frame are only used in recording mode (?opname=1&ondertitels=1) */
.demo-subtitle {
  display: none;
}

/* Scene transitions: fade with a slight lift */
.scene {
  position: absolute;
  inset: 0;
  padding: 26px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.55s var(--d-ease), visibility 0s linear 0.55s;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.55s var(--d-ease);
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--d-card);
  box-shadow: 0 2px 10px rgba(23, 32, 26, 0.06);
  font-size: 13.5px;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ecebe3;
  white-space: nowrap;
}

.pill-green {
  background: #e3f3d6;
  color: var(--d-accent);
}

.pill.is-optie {
  background: #ffe7d6;
  color: #9a4a12;
}

.pill.is-verkocht {
  background: #fde0e0;
  color: #9b1c1f;
}

/* Tap indicator */
.finger {
  position: absolute;
  z-index: 12;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(23, 32, 26, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: left 0.9s var(--d-ease), top 0.9s var(--d-ease), opacity 0.3s ease, transform 0.15s ease;
}

.finger.is-tap {
  transform: scale(0.82);
}

.finger.is-tap::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(47, 100, 32, 0.8);
  animation: demo-ripple 0.6s ease-out forwards;
}

@keyframes demo-ripple {
  from {
    transform: scale(0.5);
    opacity: 1;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------- 1. 360° */
.splash,
.endcard {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, #ffffff, var(--d-bg) 70%);
  transition: opacity 0.6s ease, transform 0.7s var(--d-ease);
}

.splash strong,
.endcard strong {
  font-size: 26px;
  letter-spacing: -0.01em;
}

.splash > span:last-child,
.endcard > span:not(.splash-mark) {
  color: var(--d-muted);
}

.splash-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(47, 100, 32, 0.18);
}

.scene-360.is-active .splash .splash-mark {
  animation: demo-pop 0.7s var(--d-spring) both;
}

.scene-360.is-active .splash strong {
  animation: demo-rise 0.7s var(--d-ease) 0.25s both;
}

.scene-360.is-active .splash > span:last-child {
  animation: demo-rise 0.7s var(--d-ease) 0.45s both;
}

@keyframes demo-pop {
  from {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
}

@keyframes demo-rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

.scene-360.s1 .splash {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 6px;
}

.chip-f {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--d-card);
  color: var(--d-muted);
  border: 1px solid var(--d-line);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.chip-f:first-child {
  background: var(--d-text);
  color: var(--d-lime);
  border-color: var(--d-text);
}

.scene-360.s9 .chip-f:first-child {
  background: var(--d-card);
  color: var(--d-muted);
  border-color: var(--d-line);
}

.scene-360.s9 .f-rooms {
  background: var(--d-text);
  color: var(--d-lime);
  border-color: var(--d-text);
}

/* 3D stage */
.stage3d {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  border-radius: 18px;
  overflow: hidden;
  perspective: 760px;
  perspective-origin: 50% 30%;
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(#d9ebf4, #eef4ea 62%, #dfeccd 62%, #cfe2bd);
}

.world {
  --ry: -392deg;
  --rx: -26deg;
  --zoom: 0.86;
  position: absolute;
  left: 50%;
  top: 70%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale3d(calc(var(--zoom) * var(--world-scale, 1)), calc(var(--zoom) * var(--world-scale, 1)), calc(var(--zoom) * var(--world-scale, 1)));
  transition: transform 1.7s var(--d-ease);
}

/* s1: the building spins a full 360° into place; s3/s5: turn to the next viewpoint.
   While turning the camera tilts and pulls back a little, then settles (s2/s4/s6). */
.scene-360.s1 .world {
  --ry: -32deg;
  --rx: -24deg;
  --zoom: 0.94;
  transition-duration: 1.8s;
}

.scene-360.s2 .world {
  --rx: -16deg;
  --zoom: 1;
}

.scene-360.s3 .world {
  --ry: -122deg;
  --rx: -25deg;
  --zoom: 0.92;
}

.scene-360.s4 .world {
  --rx: -16deg;
  --zoom: 1;
}

.scene-360.s5 .world {
  --ry: -212deg;
  --rx: -25deg;
  --zoom: 0.92;
}

.scene-360.s6 .world {
  --rx: -16deg;
  --zoom: 1;
}

.ground {
  position: absolute;
  left: -140px;
  top: -140px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #c2dcae 0 55%, rgba(194, 220, 174, 0) 72%);
  transform: rotateX(90deg);
}

.ground .path {
  position: absolute;
  left: 44%;
  top: 0;
  width: 12%;
  height: 100%;
  background: #e9e1cf;
  border-radius: 8px;
  opacity: 0.8;
}

.bush {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #86b86c;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.08);
}

.b1 {
  left: 16%;
  top: 22%;
}

.b2 {
  right: 16%;
  top: 26%;
}

.b3 {
  left: 20%;
  bottom: 18%;
}

.b4 {
  right: 22%;
  bottom: 20%;
}

.building {
  position: absolute;
  transform-style: preserve-3d;
  transform: translateY(-76px);
}

.ground .shadow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 108px;
  margin: -54px 0 0 -62px;
  border-radius: 40%;
  background: rgba(40, 60, 30, 0.28);
  filter: blur(6px);
}

/* Lower wing next to the tower (decorative, not selectable) */
.wing {
  position: absolute;
  transform-style: preserve-3d;
  transform: translate3d(104px, -30px, -8px);
}

.wing .face {
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 255, 255, 0.75) 6px 16px, transparent 16px 20px),
    linear-gradient(#e8e1d2, #d8cfbc);
  background-size: 100% 14px, 100% 100%;
  background-repeat: repeat-y, no-repeat;
  background-position: 0 6px, 0 0;
}

.wing .w-front,
.wing .w-back {
  width: 88px;
  height: 60px;
  left: -44px;
  top: -30px;
}

.wing .w-left,
.wing .w-right {
  width: 60px;
  height: 60px;
  left: -30px;
  top: -30px;
}

.wing .w-front {
  transform: translateZ(30px);
}

.wing .w-back {
  transform: rotateY(180deg) translateZ(30px);
}

.wing .w-right {
  transform: rotateY(90deg) translateZ(44px);
}

.wing .w-left {
  transform: rotateY(-90deg) translateZ(44px);
}

.wing .w-roof {
  width: 88px;
  height: 60px;
  left: -44px;
  top: -30px;
  background: #b3a998;
  transform: rotateX(90deg) translateZ(30px);
}

/* Trees: two crossed planes, so they keep their volume while the world turns */
.tree {
  position: absolute;
  transform-style: preserve-3d;
}

.tree i {
  position: absolute;
  left: -14px;
  top: -44px;
  width: 28px;
  height: 44px;
  background: linear-gradient(#7fb069 0 72%, #6b5a45 72% 100%);
  clip-path: polygon(50% 0, 100% 72%, 60% 72%, 60% 100%, 40% 100%, 40% 72%, 0 72%);
}

.tree i + i {
  transform: rotateY(90deg);
}

.t1 {
  transform: translate3d(-92px, 0, 58px);
}

.t2 {
  transform: translate3d(-104px, 0, -46px) scale3d(0.8, 0.8, 0.8);
}

.t3 {
  transform: translate3d(70px, 0, 82px) scale3d(0.9, 0.9, 0.9);
}

.t4 {
  transform: translate3d(28px, 0, -104px) scale3d(1.1, 1.1, 1.1);
}

.face {
  position: absolute;
  display: grid;
  gap: 3px;
  padding: 6px 5px;
  background: linear-gradient(#efe9dc, #e2dac8);
  border: 1px solid #d2c9b5;
  backface-visibility: hidden;
}

.f-front,
.f-back {
  width: 120px;
  height: 152px;
  left: -60px;
  top: -76px;
  grid-template-columns: repeat(4, 1fr);
}

.f-right,
.f-left {
  width: 76px;
  height: 152px;
  left: -38px;
  top: -76px;
  grid-template-columns: repeat(2, 1fr);
  background: linear-gradient(#e2dac8, #d5ccb8);
}

.f-front {
  transform: translateZ(38px);
}

.f-back {
  transform: rotateY(180deg) translateZ(38px);
}

.f-right {
  transform: rotateY(90deg) translateZ(60px);
}

.f-left {
  transform: rotateY(-90deg) translateZ(60px);
}

.f-roof {
  width: 120px;
  height: 76px;
  left: -60px;
  top: -38px;
  padding: 0;
  background: #a79d8c;
  border-color: #978c7a;
  transform: rotateX(90deg) translateZ(76px);
}

.u {
  display: block;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(160, 150, 130, 0.35);
  transition: background 0.5s ease, opacity 0.4s ease, box-shadow 0.3s ease, transform 0.3s var(--d-spring);
}

/* Unit layer: coloured by status whenever the model stands still, plain while rotating (like the real viewer) */
.scene-360.s2 .u.vrij {
  background: rgba(43, 162, 114, 0.78);
}

.scene-360.s2 .u.optie {
  background: rgba(240, 138, 60, 0.85);
}

.scene-360.s2 .u.verkocht {
  background: rgba(224, 72, 77, 0.8);
}

.scene-360.s3:not(.s4) .u,
.scene-360.s5:not(.s6) .u {
  background: rgba(255, 255, 255, 0.7);
}

.u.is-selected {
  box-shadow: 0 0 0 2px #17201a, 0 0 12px 2px rgba(195, 239, 157, 0.9);
  transform: scale(1.12);
}

.scene-360.s9 .u:not(.r3) {
  opacity: 0.18;
}

.orbit {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.orbit span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--d-muted);
  transition: background 0.4s ease, color 0.4s ease;
}

.orbit [data-v="0"],
.scene-360.s3 .orbit [data-v="1"],
.scene-360.s5 .orbit [data-v="2"] {
  background: var(--d-text);
  color: var(--d-lime);
}

.scene-360.s3 .orbit [data-v="0"],
.scene-360.s5 .orbit [data-v="1"] {
  background: rgba(255, 255, 255, 0.85);
  color: var(--d-muted);
}

.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23, 32, 26, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swipe-hint i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  animation: demo-swipe 1s var(--d-ease) infinite;
}

@keyframes demo-swipe {
  from {
    transform: translateX(10px);
  }
  to {
    transform: translateX(-10px);
    opacity: 0.2;
  }
}

.scene-360.s2:not(.s3) .swipe-hint {
  opacity: 1;
}

.legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--d-muted);
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
}

.legend i:first-child {
  margin-left: 0;
}

.l-free {
  background: var(--d-free);
}

.l-option {
  background: var(--d-option);
}

.l-sold {
  background: var(--d-sold);
}

.sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 30px;
  z-index: 14;
  background: var(--d-card);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 -6px 30px rgba(23, 32, 26, 0.18);
  transform: translateY(calc(100% + 120px));
  transition: transform 0.5s var(--d-spring);
}

.scene-360.s8 .sheet,
.scene-360.is-user .sheet {
  transform: none;
}

.scene-360.s9:not(.is-user) .sheet {
  transform: translateY(calc(100% + 120px));
  transition-timing-function: var(--d-ease);
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.sheet p {
  margin-top: 4px;
  color: var(--d-muted);
}

.sheet .price {
  color: var(--d-text);
  font-weight: 700;
  font-size: 15px;
}

.sheet-btn {
  display: block;
  margin-top: 10px;
  text-align: center;
  background: var(--d-lime);
  color: #1d3218;
  font-weight: 700;
  padding: 8px;
  border-radius: 999px;
}

/* ---------------------------------------------------------------- 2. Embed on the developer's website */
.scene-embed {
  padding: 22px 0 0;
}

.site-mock {
  position: relative;
  flex: 1;
  margin-top: 4px;
  overflow: hidden;
  background: #fbfaf6;
}

.site-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--d-line);
}

.site-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #3b4a6b;
}

.site-burger {
  display: grid;
  gap: 3px;
}

.site-burger i {
  width: 16px;
  height: 2px;
  background: #3b4a6b;
  border-radius: 2px;
}

.site-scroll {
  transition: transform 1.4s var(--d-ease);
}

.scene-embed.s1 .site-scroll {
  transform: translateY(-150px);
}

.site-hero {
  display: grid;
  gap: 6px;
  height: 190px;
  align-content: end;
  padding: 18px 16px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(20, 30, 50, 0) 20%, rgba(20, 30, 50, 0.65)),
    linear-gradient(135deg, #8fb3d9, #c9b99a 60%, #a3c48a);
}

.site-hero small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.site-hero strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 24px;
}

.site-hero span {
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  color: #3b4a6b;
  padding: 5px 11px;
  border-radius: 999px;
}

/* The embedded unit selector: light by default, dark after the theme switch */
.embed-card {
  --e-bg: #ffffff;
  --e-text: #17201a;
  --e-muted: #5d675f;
  --e-sky: #e3eef4;
  --e-ground: #cfe2bd;
  --e-front: #ece6d9;
  --e-side: #d6cebd;
  --e-bar: #f0efe8;
  margin: 14px 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--e-bg);
  color: var(--e-text);
  box-shadow: 0 10px 30px rgba(23, 32, 26, 0.12);
  outline: 2px solid transparent;
  transition: background 0.8s ease, color 0.8s ease, outline-color 0.4s ease, box-shadow 0.8s ease;
}

.scene-embed.s2:not(.s3) .embed-card {
  outline-color: var(--d-lime);
}

.scene-embed.s3 .embed-card {
  --e-bg: #141a17;
  --e-text: #eef2ec;
  --e-muted: #9aa69d;
  --e-sky: #22303a;
  --e-ground: #2b3a2c;
  --e-front: #3c4540;
  --e-side: #2e3632;
  --e-bar: #232b26;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.embed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.embed-theme {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--e-bar);
  font-size: 10px;
  font-weight: 700;
  transition: background 0.8s ease;
}

.embed-theme i {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--e-muted);
  transition: background 0.4s ease, color 0.4s ease;
}

.embed-theme .t-light,
.scene-embed.s3 .embed-theme .t-dark {
  background: var(--d-lime);
  color: #1d3218;
}

.scene-embed.s3 .embed-theme .t-light {
  background: transparent;
  color: var(--e-muted);
}

.embed-svg {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.embed-svg rect,
.embed-svg polygon {
  transition: fill 0.8s ease;
}

.e-sky {
  fill: var(--e-sky);
}

.e-ground {
  fill: var(--e-ground);
}

.e-front {
  fill: var(--e-front);
}

.e-side {
  fill: var(--e-side);
}

.e-roof {
  fill: #a79d8c;
}

.e-units rect {
  rx: 2px;
  fill-opacity: 0.85;
}

.e-units .v {
  fill: var(--d-free);
}

.e-units .o {
  fill: var(--d-option);
}

.e-units .s {
  fill: var(--d-sold);
}

.navstyles {
  position: relative;
  height: 34px;
  margin-top: 8px;
}

.ns {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--e-muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s var(--d-ease);
}

.ns b {
  color: var(--e-text);
}

.ns-bar {
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--e-bar);
}

.ns-bar,
.scene-embed.s4 .ns-rose,
.scene-embed.s5 .ns-tabs {
  opacity: 1;
  transform: none;
}

.scene-embed.s4 .ns-bar,
.scene-embed.s5 .ns-rose {
  opacity: 0;
  transform: translateY(-6px);
}

.rose {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--e-muted);
}

.rose i {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 2px;
  height: 9px;
  margin-left: -1px;
  background: var(--d-sold);
  transform-origin: 50% 9px;
  animation: demo-needle 2.4s var(--d-ease) infinite alternate;
}

@keyframes demo-needle {
  to {
    transform: rotate(90deg);
  }
}

.ns-tabs span,
.ns-tabs b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border-radius: 9px;
  background: var(--e-bar);
}

.ns-tabs b {
  background: var(--d-lime);
  color: #1d3218;
}

.ns-label {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 10px;
  color: var(--e-muted);
}

.nl-2,
.nl-3,
.scene-embed.s4 .nl-1,
.scene-embed.s5 .nl-2 {
  display: none;
}

.scene-embed.s4 .nl-2,
.scene-embed.s5 .nl-3 {
  display: inline;
}

.code-chip {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 34px;
  z-index: 5;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #17201a;
  color: #eef2ec;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.5s var(--d-spring);
}

.code-chip span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-lime);
}

.code-chip code {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-embed.s2 .code-chip {
  opacity: 1;
  transform: none;
}

.scene-embed.s3 .code-chip {
  opacity: 0;
  transform: translateY(20px);
}

/* ---------------------------------------------------------------- 3. Form */
.step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--d-muted);
}

.st-b,
.scene-form.s3 .st-a {
  display: none;
}

.scene-form.s3 .st-b {
  display: inline;
}

.form-progress {
  height: 5px;
  border-radius: 5px;
  background: #e2e0d6;
  overflow: hidden;
}

.form-progress i {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--d-accent);
  transition: width 0.6s var(--d-ease);
}

.scene-form.s3 .form-progress i {
  width: 83%;
}

.scene-form.s5 .form-progress i {
  width: 100%;
}

.form-panel {
  display: grid;
  gap: 8px;
  transition: opacity 0.4s ease, transform 0.5s var(--d-ease);
}

.form-panel h4 {
  margin: 4px 0 0;
  font-size: 15px;
}

.panel-b {
  position: absolute;
  top: 104px;
  left: 14px;
  right: 14px;
  opacity: 0;
  transform: translateX(40px);
}

.scene-form.s3 .panel-a {
  opacity: 0;
  transform: translateX(-40px);
}

.scene-form.s3 .panel-b {
  opacity: 1;
  transform: none;
}

.f-field {
  display: grid;
  gap: 3px;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 8px 11px;
}

.f-field span {
  font-size: 10.5px;
  color: var(--d-muted);
}

.f-field b {
  font-size: 14px;
  min-height: 1.4em;
}

.f-typing {
  border-color: var(--d-accent);
  box-shadow: 0 0 0 3px rgba(47, 100, 32, 0.12);
}

.typing {
  display: inline-block;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  transition: width 1s steps(7, end);
}

.scene-form.s1 .typing:not(.typing-2),
.scene-form.s2 .typing-2 {
  width: 7ch;
}

.f-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 9px 11px;
}

.f-toggle i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #b9bdb2;
  transition: background 0.25s ease;
}

.f-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.3s var(--d-spring);
}

.scene-form.s2 .f-toggle i {
  background: var(--d-accent);
}

.scene-form.s2 .f-toggle i::after {
  transform: translateX(16px);
}

.f-partner {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scene-form.s2 .f-partner {
  opacity: 1;
  transform: none;
}

.hint {
  font-size: 11px;
  color: var(--d-muted);
}

.prefs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.prefs li {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 9px 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.45s var(--d-spring);
}

.prefs li small {
  margin-left: auto;
  font-weight: 400;
  color: var(--d-muted);
}

.prefs li b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--d-text);
  color: var(--d-lime);
  font-size: 11px;
}

.scene-form.s3 .prefs li:nth-child(1),
.scene-form.s4 .prefs li {
  opacity: 1;
  transform: none;
}

.scene-form.s4 .prefs li:nth-child(2) {
  transition-delay: 0.12s;
}

.scene-form.s4 .prefs li:nth-child(3) {
  transition-delay: 0.26s;
}

.done {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(243, 242, 236, 0.96);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.done strong {
  font-size: 17px;
}

.done p {
  color: var(--d-muted);
}

.done-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--d-lime);
  color: #1d3218;
  font-size: 28px;
  font-weight: 700;
  transform: scale(0.5);
  transition: transform 0.5s var(--d-spring);
}

/* Soft burst behind the check mark */
.done-check::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--d-lime);
  opacity: 0;
}

.scene-form.s5 .done {
  opacity: 1;
}

.scene-form.s5 .done-check {
  transform: none;
}

.scene-form.s5 .done-check::before {
  animation: demo-burst 0.9s ease-out 0.15s forwards;
}

@keyframes demo-burst {
  from {
    transform: scale(0.8);
    opacity: 1;
  }
  to {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------- 4. Lottery */
.lot-state {
  font-size: 12px;
  color: var(--d-muted);
}

.ls-b,
.scene-lottery.s2 .ls-a {
  display: none;
}

.scene-lottery.s2 .ls-b {
  display: inline;
  color: var(--d-accent);
  font-weight: 700;
}

.lot-list {
  position: relative;
  height: 150px;
}

.lot {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--a) * 50px);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 13px;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  font-weight: 700;
  transition: top 0.8s var(--d-ease), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.scene-lottery.s1 .lot {
  animation: demo-shuffle 0.32s ease-in-out infinite alternate;
}

.scene-lottery.s1 .lot:nth-child(2) {
  animation-delay: 0.11s;
}

.scene-lottery.s1 .lot:nth-child(3) {
  animation-delay: 0.22s;
}

@keyframes demo-shuffle {
  from {
    transform: translateX(-6px) rotate(-1deg);
  }
  to {
    transform: translateX(6px) rotate(1deg);
  }
}

.scene-lottery.s2 .lot {
  top: calc(var(--b) * 50px);
  animation: none;
}

.rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ecebe3;
  color: var(--d-muted);
  font-size: 11px;
}

.rank::before {
  content: "?";
}

.scene-lottery.s2 .lot[style*="--b:0"] .rank::before {
  content: "1";
}

.scene-lottery.s2 .lot[style*="--b:1"] .rank::before {
  content: "2";
}

.scene-lottery.s2 .lot[style*="--b:2"] .rank::before {
  content: "3";
}

.scene-lottery.s3 .lot[style*="--b:0"] {
  border-color: var(--d-accent);
  box-shadow: 0 0 0 3px rgba(47, 100, 32, 0.12);
}

.scene-lottery.s3 .lot[style*="--b:0"] .rank {
  background: var(--d-lime);
  color: #1d3218;
}

.proposal {
  font-size: 12px;
  color: var(--d-muted);
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--d-card);
  border: 1px dashed var(--d-line);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.scene-lottery.s3 .proposal {
  opacity: 1;
}

.scene-lottery.s5 .proposal {
  opacity: 0.45;
}

.confirm-wrap {
  position: relative;
}

.confirm-btn {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--d-text);
  color: var(--d-lime);
  opacity: 0.3;
  transition: opacity 0.3s ease, background 0.4s ease, color 0.4s ease, transform 0.3s var(--d-spring);
}

.scene-lottery.s3 .confirm-btn {
  opacity: 1;
}

.cb-b,
.scene-lottery.s5 .cb-a {
  display: none;
}

.scene-lottery.s5 .cb-b {
  display: inline;
}

.scene-lottery.s5 .confirm-btn {
  background: var(--d-lime);
  color: #1d3218;
  transform: scale(1.03);
}

.finger-confirm {
  left: 80%;
  top: 180%;
}

.scene-lottery.s4 .finger-confirm {
  opacity: 1;
  left: 50%;
  top: 50%;
}

.scene-lottery.s5 .finger-confirm {
  opacity: 0;
}

.audit {
  font-size: 11px;
  color: var(--d-muted);
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.scene-lottery.s5 .audit {
  opacity: 1;
}

/* ---------------------------------------------------------------- 5. Portal */
.hello {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 22px;
}

.home-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 16px;
  padding: 12px;
}

.home-card div {
  display: grid;
}

.home-card small {
  color: var(--d-muted);
}

.home-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--d-lime);
  color: #1d3218;
  font-size: 20px;
}

.timeline {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 4px;
  display: grid;
  gap: 12px;
}

.timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.45s var(--d-spring);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 25px;
  width: 2px;
  height: 12px;
  background: #cfd6c8;
}

.timeline i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--d-accent);
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
}

.t-live i {
  background: #ffffff;
  border: 2px solid var(--d-accent);
}

.t-live i::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--d-accent);
  animation: demo-pulse 1.2s ease-in-out infinite;
}

@keyframes demo-pulse {
  50% {
    transform: scale(0.5);
    opacity: 0.5;
  }
}

.scene-portal.s1 .t1,
.scene-portal.s2 .t2,
.scene-portal.s3 .t3 {
  opacity: 1;
  transform: none;
}

.portal-actions {
  display: grid;
  gap: 8px;
}

.pa {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.45s var(--d-spring);
}

.scene-portal.s4 .pa-1,
.scene-portal.s5 .pa-2 {
  opacity: 1;
  transform: none;
}

.endcard {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.endcard em {
  margin-top: 6px;
  font-style: normal;
  font-weight: 700;
  color: var(--d-accent);
}

.scene-portal.s6 .endcard {
  opacity: 1;
  transform: none;
}

.scene-portal.s6 .endcard .splash-mark {
  animation: demo-pop 0.7s var(--d-spring) both;
}

.scene-portal.s6 .endcard strong {
  animation: demo-rise 0.7s var(--d-ease) 0.2s both;
}

.scene-portal.s6 .endcard > span:not(.splash-mark),
.scene-portal.s6 .endcard em {
  animation: demo-rise 0.7s var(--d-ease) 0.4s both;
}

/* ---------------------------------------------------------------- Controls & chapters */
.demo-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(240, 242, 236, 0.28);
  background: transparent;
  color: var(--text-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.demo-btn[hidden] {
  display: none;
}

.demo-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.demo-play {
  width: 56px;
  height: 56px;
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
  font-size: 15px;
}

.demo-play:hover {
  background: var(--lime-strong);
  color: var(--lime-ink);
}

.demo-sound {
  font-size: 17px;
}

.ico-play,
.demo[data-state="paused"] .ico-pause,
.demo[data-state="idle"] .ico-pause,
.ico-sound,
.demo-sound[aria-pressed="true"] .ico-muted {
  display: none;
}

.demo[data-state="paused"] .ico-play,
.demo[data-state="idle"] .ico-play,
.demo-sound[aria-pressed="true"] .ico-sound {
  display: inline;
}

.demo-side {
  width: 100%;
  min-width: 0;
}

.demo-chapters {
  list-style: none;
  margin: 0;
  padding: 0 2px 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.demo-chapters::-webkit-scrollbar {
  display: none;
}

.demo-chapters li {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

/* Centre the chips when they fit; scroll from the start when they do not */
.demo-chapters li:first-child {
  margin-left: auto;
}

.demo-chapters li:last-child {
  margin-right: auto;
}

.demo-chapters button {
  position: relative;
  display: grid;
  text-align: left;
  font: inherit;
  color: var(--muted-light);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  padding: 10px 14px 12px;
  cursor: pointer;
  overflow: hidden;
}

.demo-chapters b {
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
}

.demo-chapters .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
}

.demo-chapters .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 0.1s linear;
}

.demo-chapters button[aria-current="step"] {
  border-color: var(--lime);
}

.demo-chapters button[aria-current="step"] b {
  color: var(--lime);
}

.demo-caption {
  max-width: 420px;
  min-height: 3em;
  text-align: center;
  color: var(--muted-light);
  font-size: 15px;
}

/* ---------------------------------------------------------------- Recording mode (?opname=1): full-screen 9:16 */
html.opname,
html.opname body {
  height: 100%;
  overflow: hidden;
  background: #000000;
}

html.opname .site-header,
html.opname .site-footer,
html.opname main > section:not(.hero),
html.opname .hero-copy,
html.opname .demo-controls,
html.opname .demo-side,
html.opname .demo-caption,
html.opname .site-cookie-banner,
html.opname .skip-link {
  display: none !important;
}

html.opname .hero {
  position: fixed;
  inset: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: #000000;
}

html.opname .hero-grid {
  display: block;
  padding: 0;
  max-width: none;
}

html.opname .demo-phone {
  width: 360px;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transform: scale(var(--opname-scale, 1));
  transform-origin: 50% 50%;
}

html.opname .demo-screen {
  width: 360px;
  height: 640px;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}

html.opname.ondertitels .demo-subtitle {
  display: block;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 34px;
  z-index: 40;
  margin: 0;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(23, 32, 26, 0.82);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

html.opname.ondertitels .demo-subtitle:empty {
  display: none;
}

/* Keep room for the subtitle: lift the bottom sheet and code chip, move the swipe hint up */
html.opname.ondertitels .sheet,
html.opname.ondertitels .code-chip {
  bottom: 86px;
}

html.opname.ondertitels .swipe-hint {
  bottom: auto;
  top: 44px;
}

.opname-start {
  position: fixed;
  inset: 0;
  z-index: 100;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font: 600 22px/1.4 system-ui, sans-serif;
  cursor: pointer;
}

/* ---------------------------------------------------------------- Desktop version (16:9, designed at 960x540, scaled) */
.desk-bar,
.site-links,
.sh-mouse {
  display: none;
}

.demo.is-desk .sh-touch {
  display: none;
}

.demo.is-desk .sh-mouse {
  display: inline;
}

.demo.is-desk .demo-phone {
  width: 100%;
  max-width: 1100px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0e0c;
}

.demo.is-desk .desk-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #1b211d;
  border-bottom: 1px solid var(--ink-line);
}

.desk-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a443d;
}

.desk-bar span {
  margin: 0 auto;
  padding: 3px 48px;
  border-radius: 8px;
  background: #101512;
  color: var(--muted-light);
  font-size: 12px;
}

.demo.is-desk .demo-screen {
  width: 960px;
  height: 540px;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  transform: scale(var(--desk-scale, 1));
  transform-origin: 0 0;
}

.demo.is-desk .demo-stories {
  left: 28px;
  right: 28px;
}

.demo.is-desk .scene {
  padding: 28px 28px 22px;
}

/* 1. 360°: large 3D stage with a side panel */
.demo.is-desk .scene-360 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px 22px;
}

.demo.is-desk .scene-360 .stage3d {
  grid-column: 1;
  grid-row: 1 / 5;
  --world-scale: 1.3;
}

.demo.is-desk .scene-360 .world {
  top: 72%;
}

.demo.is-desk .scene-360 .app-bar {
  grid-column: 2;
  grid-row: 1;
}

.demo.is-desk .scene-360 .filters {
  grid-column: 2;
  grid-row: 2;
  flex-wrap: wrap;
}

.demo.is-desk .scene-360 .legend {
  grid-column: 2;
  grid-row: 4;
}

.demo.is-desk .scene-360 .sheet {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  position: relative;
  inset: auto !important;
  box-shadow: 0 10px 30px rgba(23, 32, 26, 0.12);
  opacity: 0;
  transform: translateX(40px);
  transition: transform 0.5s var(--d-spring), opacity 0.35s ease;
}

.demo.is-desk .scene-360.s8 .sheet,
.demo.is-desk .scene-360.is-user .sheet {
  opacity: 1;
  transform: none;
}

.demo.is-desk .scene-360.s9:not(.is-user) .sheet {
  opacity: 0;
  transform: translateX(40px);
}

/* 2. Embed: a desktop website with the unit selector in the page */
.demo.is-desk .scene-embed {
  padding: 26px 0 0;
}

.demo.is-desk .site-bar {
  padding: 12px 28px;
}

.demo.is-desk .site-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  margin-right: 22px;
  font-size: 12px;
  color: #3b4a6b;
}

.demo.is-desk .site-links i {
  font-style: normal;
}

.demo.is-desk .site-burger {
  display: none;
}

.demo.is-desk .site-hero {
  height: 200px;
  padding: 26px 28px;
}

.demo.is-desk .site-hero strong {
  font-size: 34px;
}

.demo.is-desk .scene-embed.s1 .site-scroll {
  transform: translateY(-170px);
}

.demo.is-desk .embed-card {
  width: 500px;
  margin: 16px auto;
}

.demo.is-desk .code-chip {
  left: auto;
  right: 28px;
  bottom: 28px;
  width: 360px;
}

/* 3. Form: both steps side by side */
.demo.is-desk .scene-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 14px 26px;
  align-content: start;
}

.demo.is-desk .scene-form .app-bar,
.demo.is-desk .scene-form .form-progress {
  grid-column: 1 / -1;
}

.demo.is-desk .scene-form .panel-a {
  grid-column: 1;
  align-self: start;
}

.demo.is-desk .scene-form.s3 .panel-a {
  opacity: 1;
  transform: none;
}

.demo.is-desk .scene-form .panel-b {
  grid-column: 2;
  align-self: start;
  position: static;
  transform: translateY(16px);
}

.demo.is-desk .scene-form.s3 .panel-b {
  transform: none;
}

/* 4. Allocation: candidates left, decision right */
.demo.is-desk .scene-lottery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 12px 26px;
  align-content: start;
}

.demo.is-desk .scene-lottery .app-bar {
  grid-column: 1 / -1;
}

.demo.is-desk .scene-lottery .lot-state {
  grid-column: 1;
  grid-row: 2;
}

.demo.is-desk .scene-lottery .lot-list {
  grid-column: 1;
  grid-row: 3 / 6;
}

.demo.is-desk .scene-lottery .proposal {
  grid-column: 2;
  grid-row: 3;
}

.demo.is-desk .scene-lottery .confirm-wrap {
  grid-column: 2;
  grid-row: 4;
}

.demo.is-desk .scene-lottery .audit {
  grid-column: 2;
  grid-row: 5;
  align-self: start;
}

/* 5. Portal: a small dashboard */
.demo.is-desk .scene-portal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px 26px;
  align-content: start;
}

.demo.is-desk .scene-portal .app-bar {
  grid-column: 1 / -1;
}

.demo.is-desk .scene-portal .hello {
  grid-column: 1;
}

.demo.is-desk .scene-portal .home-card {
  grid-column: 1;
}

.demo.is-desk .scene-portal .portal-actions {
  grid-column: 1;
}

.demo.is-desk .scene-portal .timeline {
  grid-column: 2;
  grid-row: 2 / 5;
  align-self: start;
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--d-card);
  border: 1px solid var(--d-line);
}

.demo.is-desk .splash strong,
.demo.is-desk .endcard strong {
  font-size: 34px;
}

/* Hero on wide screens: text on top, the desktop tour full width underneath */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: 56px;
    align-items: end;
  }

  .hero-copy .eyebrow,
  .hero-copy h1 {
    grid-column: 1;
  }

  .hero-copy .lead,
  .hero-copy .hero-actions,
  .hero-copy .hero-points {
    grid-column: 2;
  }

  .hero-copy .lead {
    grid-row: 1 / 3;
    align-self: end;
    margin-top: 0;
  }

  .hero-copy .hero-actions {
    grid-row: 3;
    margin-top: 26px;
  }

  .hero-copy .hero-points {
    grid-row: 3;
    grid-column: 1;
    margin-top: 26px;
    align-self: center;
  }
}

/* Recording the desktop version (?opname=1&formaat=desktop) */
html.opname .demo.is-desk .demo-phone {
  width: 960px;
  height: 540px;
  border-radius: 0;
}

html.opname .demo.is-desk .desk-bar {
  display: none;
}

html.opname .demo.is-desk .demo-screen {
  width: 960px;
  height: 540px;
  transform: none;
}

html.opname.ondertitels .demo.is-desk .demo-subtitle {
  left: 50%;
  right: auto;
  bottom: 26px;
  width: min(640px, 80%);
  transform: translateX(-50%);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.opname) .scene,
  html:not(.opname) .scene *,
  html:not(.opname) .finger {
    transition: none !important;
    animation: none !important;
  }
}
