/* Google Fonts, self-hosted in /fonts/g/ (latin + latin-ext only) */
/* Great Vibes latin-ext */
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/g/greatvibes-RWmMoKWR9v4ksMfaWd_JN9XLiaQ6DQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Great Vibes latin */
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/g/greatvibes-RWmMoKWR9v4ksMfaWd_JN9XFiaQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- HERO: full-width layered pixel art Kuching ---------- */
.sx-hero {
  /* --s = size of one art pixel, driven by screen height so wide screens don't blow the art up */
  --s: clamp(1.5px, calc(26vh / 120), 3.8px);
  --sky-h: calc(120 * var(--s));          /* main skyline: 500 x 120 art px */
  --far-s: calc(var(--s) * 0.78);
  --river-h: calc(193 * var(--s) * 0.44); /* river tile: 1024 x 193 art px */
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(540px, 74vh, 760px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #040c24 0%, #081f52 38%, #0b4396 66%, #1688e6 86%, #4fc3ff 100%);
}
.sx-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4,12,36,0.7) 0%, rgba(4,12,36,0.3) 36%, transparent 58%);
  pointer-events: none;
}
.sx-hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 80px) 24px 0;
}
.sx-hero-copy > * { max-width: 560px; }
.sx-hero .sx-hero-copy .sx-kicker { color: #8fd6ff; }
.sx-hero .sx-hero-copy h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,20,60,0.45); }
.sx-hero .sx-hero-copy h1 span { color: #7ccfff; }
.sx-hero .sx-hero-copy .lead { color: rgba(235,245,255,0.88); }
.sx-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.sx-hero .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.08); }

.sx-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sx-scene img, .sx-scene div { image-rendering: pixelated; }

.sx-starfield {
  position: absolute; inset: 0 0 40% 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 34% 9%, #cfeaff 50%, transparent 51%),
    radial-gradient(2px 2px at 58% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 71% 7%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 15%, #cfeaff 50%, transparent 51%),
    radial-gradient(2px 2px at 46% 31%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 95% 34%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 24% 40%, #cfeaff 50%, transparent 51%);
  animation: sx-twinkle 3.2s steps(2) infinite;
}
@keyframes sx-twinkle { 50% { opacity: 0.35; } }

.sx-city { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.sx-skyrow { position: relative; height: var(--sky-h); }
/* distant city fills the full width on any screen */
.sx-far {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(132 * var(--far-s));
  background: url('assets/hero/far-city.webp') 0 100% / calc(1024 * var(--far-s)) 100% repeat-x;
  opacity: 0.85;
}
.sx-skyline {
  position: absolute; bottom: -1px; left: 50%;
  width: calc(500 * var(--s));
  height: var(--sky-h);
  transform: translateX(-50%);
  background: url('assets/hero/skyline.webp') center bottom / 100% 100% no-repeat;
}
.sx-river {
  position: relative;
  height: var(--river-h);
  background: url('assets/hero/river.webp') 0 100% / auto 100% repeat-x;
  overflow: hidden;
}
.sx-shimmer {
  position: absolute; left: 0; right: 0; top: 0; height: 62%;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(160,220,255,0.5) 46px 58px, transparent 58px 140px),
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(255,214,120,0.4) 90px 98px, transparent 98px 210px);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 10px);
          mask: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 10px);
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: sx-glint 6s steps(12) infinite;
}
@keyframes sx-glint { to { background-position: 140px 0, -210px 0; } }

/* signal rings from the telecom tower (right end of the skyline) */
.sx-signal { position: absolute; left: 94.2%; top: 21%; width: 0; height: 0; }
.sx-signal i {
  position: absolute; left: 0; top: 0;
  width: calc(12 * var(--s)); height: calc(12 * var(--s));
  margin: calc(-6 * var(--s)) 0 0 calc(-6 * var(--s));
  border: calc(var(--s) * 0.8) solid #5fd2ff; border-radius: 50%;
  opacity: 0;
  animation: sx-ping 2.4s ease-out infinite;
}
.sx-signal i:nth-child(2) { animation-delay: 0.8s; }
.sx-signal i:nth-child(3) { animation-delay: 1.6s; }
@keyframes sx-ping { 0% { transform: scale(0.2); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

/* extra landmarks around the main skyline */
.sx-lm { position: absolute; bottom: 0; }
.sx-fort {
  width: calc(166 * var(--s) * 0.62);
  left: max(-2vw, calc(50% - 250 * var(--s) - 166 * var(--s) * 0.62 + 34 * var(--s)));
  bottom: -1px;
}
.sx-museum {
  width: calc(200 * var(--s) * 0.48);
  left: calc(50% + 250 * var(--s) - 16 * var(--s));
  bottom: -1px;
}
/* Kuching Civic Centre peeks up behind the skyline, between the bridge and the DUN */
.sx-bridge { z-index: 0; width: calc(122 * var(--s)); left: calc(50% - 250 * var(--s) + 76 * var(--s)); bottom: calc(4 * var(--s)); }
.sx-civic {
  z-index: 0;
  width: calc(121 * var(--s) * 0.42);
  left: calc(50% + 64 * var(--s));
  bottom: calc(4 * var(--s));
}
.sx-skyline { z-index: 1; }
/* sharper DUN laid over the skyline's own */
.sx-dun {
  position: absolute; left: 39%; bottom: 20.8%; width: 28%;
  filter: drop-shadow(0 0 calc(5 * var(--s)) rgba(255,190,80,0.3));
}

/* the two cat statues stand on the far bank, right at the water's edge */
.sx-shops, .sx-shops-r { position: absolute; bottom: 3.34%; }
.sx-shops { left: 39%; width: 34%; }
.sx-shops-r { left: 82.2%; width: 10.2%; }
.sx-cat { position: absolute; z-index: 2; bottom: calc(var(--river-h) + 3 * var(--s)); filter: drop-shadow(0 0 calc(4 * var(--s)) rgba(255,200,110,0.3)); }
.sx-sampan { position: absolute; z-index: 4; bottom: calc(var(--river-h) * 0.44); width: calc(72 * var(--s) * 0.46); image-rendering: pixelated; filter: brightness(1.35) drop-shadow(0 0 calc(3 * var(--s)) rgba(255,200,110,0.35)); animation: sx-rock 3.5s ease-in-out infinite; }
.sx-s1 { left: 14%; }
.sx-s2 { left: 76%; transform: scaleX(-1); animation-delay: -1.6s; }
.sx-croc { position: absolute; z-index: 4; left: 42%; bottom: calc(var(--river-h) * 0.43); width: calc(85 * var(--s) * 0.44); height: calc(25 * var(--s) * 0.44); overflow: hidden; animation: sx-croc-swim 16s linear infinite; }
.sx-croc img { display: block; width: 100%; image-rendering: pixelated; transform: translateY(105%); animation: sx-croc-peek 16s ease-in-out infinite; }
@keyframes sx-croc-swim { 0%, 12% { transform: translateX(0); } 70%, 100% { transform: translateX(calc(-40 * var(--s))); } }
@keyframes sx-croc-peek { 0%, 8% { transform: translateY(105%); } 16%, 30% { transform: translateY(0); } 34% { transform: translateY(35%); } 38%, 60% { transform: translateY(0); } 70%, 100% { transform: translateY(105%); } }
.sx-catfam { width: calc(166 * var(--s) * 0.38); left: calc(50% + 50 * var(--s)); }
.sx-whitecat { width: calc(92 * var(--s) * 0.3); left: calc(50% + 250 * var(--s) - 78 * var(--s)); }

/* river cruise sailing past on the water (moves on its own, the river stays still) */
.sx-cruise {
  position: absolute; z-index: 3; left: 0;
  bottom: calc(var(--river-h) * 0.56);
  width: calc(181 * var(--s) * 0.54);
  animation: sx-sail 55s linear infinite, sx-rock 3s ease-in-out infinite;
  animation-delay: -22s, 0s;
}
.sx-cruise img { display: block; width: 100%; }
.sx-bubble {
  position: absolute; left: 58%; bottom: 100%; margin-bottom: 8px;
  padding: 5px 10px; white-space: nowrap;
  font: 700 clamp(11px, 1.6vh, 15px)/1.2 'Poppins', sans-serif; color: #0b1a3a;
  background: #fff; border: 2px solid #0b1a3a; border-radius: 10px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(6px) scale(0.6); transform-origin: 10% 100%;
  transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.sx-bubble::after {
  content: ''; position: absolute; left: 14px; top: 100%;
  border: 7px solid transparent; border-top-color: #0b1a3a; border-left-width: 2px;
}
.sx-bubble.is-on { opacity: 1; transform: translateY(0) scale(1); }
@keyframes sx-sail { 0% { transform: translateX(-25vw); } 100% { transform: translateX(110vw); } }
@keyframes sx-rock { 50% { margin-bottom: calc(-0.8 * var(--s)); } }

/* drone flying by */
.sx-drone {
  position: absolute; z-index: 2;
  top: clamp(30px, 12vh, 110px); left: 0;
  width: calc(116 * var(--s) * 0.36);
  animation: sx-fly 18s linear infinite, sx-hover 1.4s ease-in-out infinite;
  animation-delay: -6s, 0s;
}
@keyframes sx-fly {
  0% { transform: translateX(104vw) scaleX(-1); opacity: 0; }
  6% { opacity: 1; }
  80% { transform: translateX(46vw) translateY(2vh) scaleX(-1); opacity: 1; }
  100% { transform: translateX(38vw) translateY(-4vh) scaleX(-1); opacity: 0; }
}
.sx-drone.is-following { animation: sx-hover 1.4s ease-in-out infinite; left: 0; top: 0; bottom: auto; transition: opacity .3s; }
@keyframes sx-hover { 50% { margin-top: calc(2 * var(--s)); } }

@media (max-width: 860px) {
  .sx-hero {
    --s: 1.6px;
    min-height: 0;
    padding-bottom: calc(var(--sky-h) + var(--river-h) + 30px);
  }
  .sx-hero::before { background: linear-gradient(180deg, rgba(4,12,36,0.7) 0%, rgba(4,12,36,0.25) 50%, transparent 70%); }
  .sx-cruise { animation-duration: 30s, 3s; }
  .sx-drone { top: auto; bottom: calc(var(--sky-h) + var(--river-h) + 10px); width: calc(116 * var(--s) * 0.3); }
}
@media (prefers-reduced-motion: reduce) {
  .sx-hero * { animation: none !important; }
}

.sx-kicker {
  margin: 0 0 14px;
  color: #0c9bff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sx-hero h1 {
  font-family: 'Poppins', var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #122033;
  margin: 0 0 16px;
  text-wrap: balance;
}
.sx-hero h1 span { color: #0c9bff; }
.sx-hero .lead {
  max-width: 460px;
  color: #3d4a59;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 26px;
}
.sx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sx-hero .btn { padding: 14px 18px; font-size: 15px; }

.sx-services { padding: 28px 0 80px; }
.sx-services-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.35fr;
  gap: 36px;
  align-items: center;
}
.sx-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #0c9bff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sx-label::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: #0c9bff;
}
.sx-intro h2,
.sx-work h2,
.sx-quotes h2 {
  font-family: 'Poppins', var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #122033;
  margin: 0 0 12px;
  text-wrap: balance;
}
.sx-intro p { color: #4b5866; max-width: 380px; }
.sx-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sx-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 20px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e5eef6;
  box-shadow: 0 12px 32px rgba(16, 60, 100, 0.06);
  text-decoration: none !important;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.sx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 60, 100, 0.1); }
.sx-card .mark {
  position: absolute;
  top: 16px; right: 12px;
  width: 78px; height: 78px;
  opacity: 0.09;
  pointer-events: none;
}
.sx-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: #e7f5ff;
  color: #0c9bff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.sx-ico .lucide { width: 24px; height: 24px; }
.sx-card h3 {
  font-family: 'Poppins', var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #122033;
  margin: 0 0 8px;
}
.sx-card p { margin: 0; color: #516070; font-size: 14.5px; line-height: 1.5; position: relative; z-index: 1; }
.sx-card h3, .sx-ico { position: relative; z-index: 1; }
.sx-more {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: #0c9bff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
}
.sx-why {
  position: relative;
  color: #fff;
  background: #16362e;
  overflow: hidden;
}
.sx-why-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  image-rendering: pixelated;
}
.sx-why::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 28, 24, 0.62) 0%, rgba(6, 28, 24, 0.34) 55%, rgba(6, 28, 24, 0.2) 100%);
  pointer-events: none;
}
.sx-why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: center;
  padding: 84px 0 130px;
}
.sx-why-kicker {
  margin: 0 0 10px;
  color: #ff8a1e;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.sx-why h2 {
  font-family: 'Poppins', var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 12px;
}
.sx-why p { color: #e7f3ee; max-width: 440px; }
.btn-orange {
  background: #ff7a1a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.35);
}
.btn-orange:hover { background: #f06a0c; color: #fff; }
.sx-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.sx-stats article {
  text-align: center;
  padding: 8px 12px;
  border-left: 1px solid rgba(255,255,255,0.28);
}
.sx-stats .lucide { width: 26px; height: 26px; color: #ff8a1e; margin: 0 auto 8px; }
.sx-stats b {
  display: block;
  font-family: 'Poppins', var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: #fff;
}
.sx-stats span { display: block; margin-top: 4px; font-size: 13px; color: #e4f2ec; }
.sx-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
  height: 92px;
}
.sx-wave svg { display: block; width: 100%; height: 92px; }
.sx-why .sx-script {
  position: absolute;
  right: 6%;
  bottom: 6px;
  margin: 0;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(28px, 3vw, 42px);
  color: #1a6f9c;
}

.sx-block { padding: 72px 0; }
.sx-work-grid, .sx-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sx-proof {
  background: #fff;
  border: 1px solid #e5eef6;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(16, 60, 100, 0.05);
}
.sx-proof .num {
  font-family: 'Poppins', var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: #0c9bff;
  margin: 0;
}
.sx-proof h3 {
  font-family: 'Poppins', var(--font-display);
  font-size: 20px;
  margin: 6px 0;
  color: #122033;
}
.sx-proof p { color: #516070; font-size: 14.5px; margin: 0; }
.sx-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sx-product {
  display: block;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e5eef6;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 10px 28px rgba(16, 60, 100, 0.05);
}
.sx-product img { width: 100%; height: 140px; object-fit: cover; object-position: top; background: #f4f8fb; }
.sx-product div { padding: 14px 16px 18px; }
.sx-product h3 { font-family: 'Poppins', var(--font-display); font-size: 18px; margin: 0 0 4px; color: #122033; }
.sx-product p { margin: 0; font-size: 13.5px; color: #516070; }
.sx-quote {
  margin: 0;
  padding: 22px;
  border-radius: 22px;
  background: #f5f9fc;
  border: 1px solid #e5eef6;
}
.sx-quote p { color: #243140; }
.sx-quote cite { display: block; font-style: normal; color: #5c6b7a; font-size: 13.5px; }
.sx-stars { color: #f5b400; letter-spacing: 2px; margin-bottom: 8px; }

@media (max-width: 980px) {
  .sx-services-grid, .sx-why-grid, .sx-work-grid, .sx-quote-grid { grid-template-columns: 1fr; }
  .sx-cards, .sx-products { grid-template-columns: 1fr 1fr; }
  .sx-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .sx-stats article:nth-child(odd) { border-left: 0; }
}
@media (max-width: 860px) {
  .sx-hero-copy { padding: 40px 24px 0; }
}
@media (max-width: 640px) {
  .sx-cards, .sx-products, .sx-stats { grid-template-columns: 1fr; }
  .sx-stats article { border-left: 0; }
}

/* a11y: keyword links in the intro and "Learn more" labels need AA contrast */
.sx-intro p a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.sx-more { color: var(--blue-700); }
