/* =========================================================================
   06 · Digital Impact — rebuilt from the Framer "ImpactMap" component
   (floating layout: dotted Malaysia map with 4 glass stat cards around it)
   ========================================================================= */
.sec.sec-navy { background: #011E41; }
.im { width: min(1280px, 100%); color: #FFFFFF; }

/* header */
.im-head { margin-bottom: 44px; }
.im-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #C8A96A; }
.im-eyebrow i { width: 0; height: 1px; background: #C8A96A; opacity: .8; transition: width .5s cubic-bezier(0.22, 1, 0.36, 1) .3s; }
.is-in .im-eyebrow i { width: 40px; }
.im-title { margin: 22px 0 0; font-size: 52px; font-weight: 400; line-height: 1.12; }
.im-sub { margin-top: 32px; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #C8A96A; }

/* every part rises in (0.5s), delay via --d */
.im [data-in] { opacity: 0; transform: translateY(28px); transition: opacity .5s ease var(--d, 0s), transform .5s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s); }
.is-in .im [data-in] { opacity: 1; transform: none; }

/* stage: map in the middle-left, cards floating around it */
.im-stage { position: relative; padding: 40px 0; }
.im-mapwrap { width: 47%; margin-left: -1.5%; transform: translateY(4px); }
.im-map { position: relative; display: flex; flex-direction: column; justify-content: center; border-radius: 18px; opacity: 0; transform: scale(.97); transition: opacity .5s ease .35s, transform .6s cubic-bezier(0.22, 1, 0.36, 1) .35s; }
.is-in .im-map { opacity: 1; transform: none; }
.im-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.im-dots { opacity: 0; transition: opacity .7s ease .45s; }
.is-in .im-dots { opacity: 1; }
.im-pin { cursor: pointer; opacity: 0; transform: scale(0); transform-box: view-box; transition: opacity .5s ease .85s, transform .7s cubic-bezier(0.34, 1.56, 0.64, 1) .85s; }
.is-in .im-pin { opacity: 1; transform: scale(1); }
.im-pulse { transform-box: view-box; animation: imPulse 2.2s ease-out infinite; }
@keyframes imPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.im-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.im-legend > div { display: flex; gap: 16px; }
.im-legend span { display: flex; align-items: center; gap: 6px; }
.im-legend i { width: 7px; height: 7px; border-radius: 50%; background: #C8A96A; opacity: .8; }
.im-legend i.is-hq { width: 10px; height: 10px; opacity: 1; box-shadow: 0 0 8px #C8A96A; }
.im-legend b { font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #C8A96A; }

/* stat cards */
.im-fc { position: absolute; width: 281px; z-index: 2; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.im-float { animation: imFloat 6s ease-in-out infinite; }
.im-float:hover { animation-play-state: paused; }
@keyframes imFloat { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-10px) rotate(calc(var(--r) * -0.4)); } }
.im-card {
  display: flex; flex-direction: column; justify-content: center; width: 100%; padding: 24px 22px; border-radius: 14px; background: rgba(14, 26, 58, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  transform: rotate(var(--t, 0deg)) translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: transform .5s ease, border-color .3s ease, box-shadow .3s ease;
}
.im-card:hover { transform: rotate(0deg) translateY(-4px); border-color: #C8A96A; box-shadow: 0 0 0 1px #C8A96A, 0 16px 44px -14px rgba(200, 169, 106, .4); }
.im-card.is-gold { background: linear-gradient(135deg, #C8A96A 0%, #E3C98F 55%, #C8A96A 100%); border-color: transparent; color: #0F1B3D; }
.im-num { position: relative; font-size: 44px; font-weight: 700; line-height: 1; color: #C8A96A; font-variant-numeric: tabular-nums; white-space: nowrap; }
.im-num b { visibility: hidden; font-weight: inherit; }
.im-num span { position: absolute; left: 0; top: 0; }
.is-gold .im-num { color: #0F1B3D; }
.im-label { margin-top: 14px; font-size: 14px; line-height: 1.4; opacity: .85; }
.is-gold .im-label { opacity: .9; }

/* highlight pills */
.im-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.im-pill {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: rgba(14, 26, 58, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600;
  transform: rotate(var(--t, 0deg)); transition: border-color .3s ease;
}
.im-pill:hover { border-color: #C8A96A; }
.im-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C8A96A; box-shadow: 0 0 10px #C8A96A; flex-shrink: 0; }

/* narrower than ~800px of content: cards in 2 columns, map below in a frame (Framer "Phone" layout) */
@media (max-width: 959.98px) {
  .im-title { font-size: 44px; }
  /* order (same as Framer's phone layout): header · 2×2 cards · pills · map */
  .im { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 14px; }
  .im-head { grid-column: 1 / -1; }
  .im-stage { display: contents; }
  .im-pills { grid-column: 1 / -1; order: 50; margin-top: 8px !important; }
  .im-fc { position: static; width: auto; transform: none; display: flex; }
  .im-fc:nth-child(even) { margin-top: 14px; }
  .im-float { animation: none; width: 100%; display: flex; }
  .im-card { --t: var(--tp, 0deg); }
  .im-mapwrap { order: 99; grid-column: 1 / -1; width: auto; margin: 10px 0 0; transform: none; }
  .im-map { border: 1px solid rgba(255, 255, 255, .12); background: radial-gradient(ellipse at 30% 50%, rgba(200, 169, 106, .08) 0%, transparent 60%), rgba(255, 255, 255, .05); padding: 26px 24px 20px; }
  .im-legend { justify-content: space-between; }
  .im-pills { justify-content: flex-start; margin-top: 22px; }
}
@media (max-width: 639.98px) {
  .im-head { margin-bottom: 28px; }
  .im-title { font-size: 32px; }
  .im-sub { margin-top: 24px; }
  .im-card { padding: 18px 16px; }
  .im-num { font-size: 29px; }
  .im-label { margin-top: 10px; font-size: 12.5px; }
  .im-map { padding: 18px 12px 16px; }
  .im-pill { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .im-pulse, .im-float { animation: none !important; }
}
