.modern-delivery-top {
  position: relative;
}

.modern-delivery-visual.lanyard-showcase {
  min-height: 560px;
  isolation: isolate;
  perspective: 1500px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.lanyard-showcase::before,
.lanyard-showcase::after {
  content: none;
}

.lanyard-scene {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: absolute;
  z-index: 2;
  top: -8%;
  left: 57%;
  width: min(82%, 500px);
  aspect-ratio: 2 / 3;
  opacity: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 2%;
  transform: translate3d(-50%, -112%, 180px) rotateX(-20deg) rotateZ(-7deg);
  will-change: transform, opacity;
}

.lanyard-scene.is-dropped {
  animation: lanyardFall 1.45s cubic-bezier(.19,.78,.18,1) both;
}

.lanyard-scene.is-settled {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(-.7deg);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.lanyard-product,
.lanyard-brand-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.lanyard-product {
  filter: drop-shadow(0 28px 22px rgba(4, 28, 20, .22));
}

.lanyard-brand-overlay {
  z-index: 2;
}

.lanyard-id-card {
  position: absolute;
  z-index: 3;
  left: 39.1%;
  top: 74.1%;
  width: 21.8%;
  height: 21.5%;
  color: #10241d;
  border-radius: 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5%;
  overflow: hidden;
  transform: none;
  pointer-events: none;
}

.lanyard-id-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7%;
  background: linear-gradient(90deg, #008c67, #62b650);
}

.lanyard-id-brand {
  display: flex;
  align-items: center;
  gap: 5%;
  width: 100%;
  margin-bottom: 10%;
}

.lanyard-id-brand img {
  width: 27%;
  height: auto;
}

.lanyard-id-brand span {
  font-size: clamp(5px, .52vw, 9px);
  font-weight: 900;
  letter-spacing: .08em;
}

.lanyard-id-role {
  color: #078a61;
  font-size: clamp(4px, .42vw, 7px);
  font-weight: 900;
  letter-spacing: .14em;
  margin-bottom: 4%;
}

.lanyard-id-card strong {
  max-width: 100%;
  font-size: clamp(7px, .78vw, 13px);
  line-height: 1.03;
  letter-spacing: -.025em;
}

.lanyard-id-number {
  margin-top: 7%;
  padding: 4% 7%;
  color: #fff;
  background: #10241d;
  border-radius: 99px;
  font-size: clamp(5px, .48vw, 8px);
  font-weight: 900;
  letter-spacing: .08em;
}

@keyframes lanyardFall {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -112%, 180px) rotateX(-20deg) rotateZ(-7deg);
  }
  32% { opacity: 1; }
  57% {
    transform: translate3d(-50%, 6%, 0) rotateX(8deg) rotateZ(5deg);
  }
  72% {
    transform: translate3d(-50%, -2.8%, 0) rotateX(-4deg) rotateZ(-3deg);
  }
  86% {
    transform: translate3d(-50%, 1.2%, 0) rotateX(2deg) rotateZ(1.4deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) rotateX(0) rotateZ(-.7deg);
  }
}

@media (max-width: 900px) {
  .modern-delivery-visual.lanyard-showcase { min-height: 500px; }
  .lanyard-scene { left: 55%; width: min(88%, 450px); }
}

@media (max-width: 560px) {
  .modern-delivery-top { gap: 8px; }
  .modern-delivery-visual.lanyard-showcase {
    min-height: 390px;
    margin-inline: -20px;
  }
  .lanyard-scene {
    top: -12%;
    left: 55%;
    width: min(88vw, 390px);
  }
  .lanyard-id-brand span { font-size: 5px; }
  .lanyard-id-role { font-size: 4px; }
  .lanyard-id-card strong { font-size: 7px; }
  .lanyard-id-number { font-size: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .lanyard-scene,
  .lanyard-scene.is-dropped,
  .lanyard-scene.is-settled {
    animation: none;
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
    transition: none;
  }
}

/* One shared image coordinate system keeps the printing attached to the strap.
   The upper loop stays above the section; the identity card remains visible. */
.modern-delivery-panel { padding-top: 0; }
.modern-delivery-top { align-items: start; }
.modern-delivery-top > .modern-eligibility-copy { padding-top: 96px; }
.modern-delivery-visual.lanyard-showcase {
  align-self: start;
  margin-top: 0;
  height: 600px;
  min-height: 600px;
}
.lanyard-scene,
.lanyard-scene.is-settled,
.lanyard-scene.is-dropped {
  width: 660px;
  height: 990px;
  top: -445px;
  left: 50%;
  opacity: 1;
  animation: none;
  transition: none;
  transform-origin: 50% 45%;
  transform: translate3d(-50%, 0, 0);
}
.lanyard-id-card { box-sizing: border-box; }
.modern-delivery-visual.lanyard-showcase .lanyard-scene > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: none;
  transition: none;
  filter: none;
}
.modern-delivery-visual.lanyard-showcase .lanyard-id-brand img {
  position: static;
  width: 27%;
  height: auto;
  max-width: 27%;
  transform: none;
  transition: none;
  filter: none;
}
.lanyard-id-brand { flex-shrink: 0; }
.lanyard-id-card strong { font-size: 15px; line-height: 1.18; }
.lanyard-id-role { font-size: 8px; }
.lanyard-id-number { font-size: 9px; white-space: nowrap; }
.lanyard-id-brand span { font-size: 8px; }
@media (max-width: 760px) {
  .modern-delivery-panel { padding-top: 0; }
  .modern-delivery-top > .modern-eligibility-copy { padding-top: 0; }
  .modern-delivery-visual.lanyard-showcase { order: -1; height: 470px; min-height: 470px; margin-inline: -20px; }
  .lanyard-scene, .lanyard-scene.is-settled, .lanyard-scene.is-dropped { width: 520px; height: 780px; top: -351px; left: 50%; }
  .lanyard-id-card strong { font-size: 12px; }
  .lanyard-id-role, .lanyard-id-brand span { font-size: 7px; }
  .lanyard-id-number { font-size: 8px; }
}

/* Keep the first paint empty; reveal the map on scroll before the card falls. */
.lanyard-showcase .lanyard-scene {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, -120%, 0);
  left: 64%;
}
.lanyard-showcase.is-card-revealed .lanyard-scene {
  opacity: 1;
  visibility: visible;
}
.peninsula-world {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 16px;
  width: min(86%, 390px);
  aspect-ratio: 2 / 3;
  opacity: 0;
  transform: translateY(26px) scale(.96);
  transition: opacity .65s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.is-map-visible .peninsula-world { opacity: 1; transform: translateY(0) scale(1); }
.modern-delivery-visual.lanyard-showcase .peninsula-terrain {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; transform: none; filter: none; mix-blend-mode: multiply;
}
.peninsula-car {
  position: absolute; left: 0; top: 0; width: 58px; height: 38px;
  offset-path: polygon(19% 17%, 21% 34%, 28% 46%, 40% 60%, 55% 70%, 75% 77%, 87% 84%, 76% 73%, 67% 61%, 67% 43%, 58% 33%, 45% 28%, 32% 34%);
  offset-rotate: 0deg;
  animation: peninsula-drive 22s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity .6s ease;
  filter: drop-shadow(0 5px 3px #16341f55);
}
.peninsula-car-two { animation-delay: -11s; width: 49px; height: 33px; }
.is-map-visible .peninsula-car { opacity: 1; }
.is-map-visible.is-in-view .peninsula-car { animation-play-state: running; }
.modern-delivery-visual.lanyard-showcase .peninsula-car img {
  position: static; width: 100%; height: 100%; max-width: none;
  object-fit: contain; transform: none; filter: none;
}
@keyframes peninsula-drive {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}
@media (max-width: 760px) {
  .peninsula-world { width: 290px; max-width: 79%; top: 12px; left: 4%; }
  .lanyard-showcase .lanyard-scene { left: 65%; }
  .peninsula-car { width: 46px; height: 31px; }
  .peninsula-car-two { width: 40px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .peninsula-world { transition: none; }
  .peninsula-car { animation: none; offset-distance: 20%; }
  .peninsula-car-two { offset-distance: 65%; }
  .lanyard-showcase .lanyard-scene { opacity: 0; visibility: hidden; }
  .lanyard-showcase.is-card-revealed .lanyard-scene { opacity: 1; visibility: visible; }
}
.modern-delivery-visual.lanyard-showcase .peninsula-terrain { z-index: 0; }
.peninsula-car { z-index: 1; }

/* Blend the white image canvas into the page, keeping terrain and car together. */
.modern-delivery-visual.lanyard-showcase { isolation: auto; }
.peninsula-world {
  mix-blend-mode: multiply;
  transform-origin: 50% 65%;
  transform: perspective(1000px) translateY(18px) rotateX(9deg) rotateY(-12deg) scale(.97);
  transition: opacity .18s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}
.is-map-visible .peninsula-world {
  transform: perspective(1000px) translateY(0) rotateX(9deg) rotateY(-12deg) scale(1);
}
.modern-delivery-visual.lanyard-showcase .peninsula-terrain {
  mix-blend-mode: normal;
  filter: contrast(1.08) saturate(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .peninsula-world { transition: none; }
}
.modern-delivery-visual.lanyard-showcase { perspective: none; }

/* The standalone delivery/chat block is removed; keep the first section compact. */
.modern-delivery-panel { min-height: 100svh; }
.loan-selection-status { color: #28604b; font-size: 14px; line-height: 1.5; }
.loan-summary a[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.loan-summary .animated-number { font-variant-numeric: tabular-nums; }
.loan-summary .animated-number.is-animating { animation: loan-number-roll .24s ease-out infinite; }
@keyframes loan-number-roll { from { transform: translateY(4px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loan-summary .animated-number.is-animating { animation: none; } }
@media (max-width: 760px) {
  .modern-delivery-panel { min-height: auto; }
}

/* Photo ID insert: clean reference card, single horizontal Perodua lockup. */
.lanyard-id-card{align-items:center;justify-content:flex-start;padding:1.3% 1.1%;background:#dbdbdb;border-radius:5%;text-align:center;gap:0;box-shadow:inset 0 0 5px #00000006}
.lanyard-id-card::before{content:none}
.lanyard-id-brand{display:block;width:82%;aspect-ratio:132/30;flex-shrink:0;margin:0 0 7%;background-image:url('/media/lanyard-reference.webp');background-size:378.788% 1666.667%;background-position:50% 35.106%;background-repeat:no-repeat}
.lanyard-id-portrait{position:relative;flex-shrink:0;width:54%;aspect-ratio:3/4;overflow:hidden;border:1.5px solid #111;background:#fff;margin-bottom:7%;box-sizing:border-box}
.modern-delivery-visual.lanyard-showcase .lanyard-id-portrait img{position:static;display:block;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center;transform:none;filter:none;transition:none}
.lanyard-id-card strong{font-size:12px;line-height:1.2;letter-spacing:-.015em;font-weight:750;white-space:nowrap;color:#111;margin:0 0 4%;text-transform:none}
.lanyard-id-role{font-size:9px;line-height:1.2;letter-spacing:.025em;font-weight:600;color:#222;margin:0 0 4%;text-transform:none}
.lanyard-id-number{font-size:9px;line-height:1.2;letter-spacing:.06em;font-weight:700;color:#111;background:none;border-radius:0;margin:0;padding:0}
@media(max-width:760px){.lanyard-id-card strong{font-size:9.5px}.lanyard-id-role,.lanyard-id-number{font-size:7.2px}.lanyard-id-portrait{border-width:1px}}
.lanyard-id-card{left:38.55%;top:74.05%;width:22.9%;height:22.8%}
.modern-delivery-visual.lanyard-showcase .lanyard-id-portrait img{transform:scale(1.25);transform-origin:50% 0}

/* Flat white card, clean logo and compact regular-weight identity text. */
.lanyard-id-card{background:#fff;box-shadow:none}
.lanyard-id-brand{display:flex;align-items:center;justify-content:center;gap:5%;width:86%;aspect-ratio:4.4;margin-bottom:7%;background:none;filter:none;text-shadow:none}
.lanyard-id-emblem{display:block;flex:0 0 24%;aspect-ratio:1.45;background:url('/perodua-logo-transparent.png') 50% 0 / 130% auto no-repeat}
.lanyard-id-brand span{color:#111;font-family:Arial,sans-serif;font-size:13px;font-weight:700;line-height:1;letter-spacing:-.025em;text-shadow:none}
.lanyard-id-portrait{width:51%;border:.6px solid #111;border-radius:5px;margin-bottom:5%}
.lanyard-id-card strong{font-weight:400;line-height:1.15;letter-spacing:0;margin:0 0 1.5%}
.lanyard-id-role,.lanyard-id-number{font-weight:400;line-height:1.15;letter-spacing:0;margin:0;padding:0}
.lanyard-id-role{margin-bottom:1.5%}
@media(max-width:760px){.lanyard-id-brand span{font-size:10px}.lanyard-id-portrait{border-width:.5px;border-radius:4px}}
