/* Page styles. Loaded last (after css/base.css and css/tailwind.css). */

/* Smooth scroll, scrollbar, marquee, glass cards, panels, floating orbs */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f7;
}

::-webkit-scrollbar-thumb {
  background: #ce9482;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #df682d;
}

@keyframes loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-loop {
  animation: loop 30s linear infinite;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);

  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-panel-dark {
  background: rgba(29, 29, 31, 0.7);
  backdrop-filter: blur(20px);

  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.clip-panel {
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
}

@keyframes float-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -50px) scale(1.1);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 40px) scale(0.95);
  }
}

@keyframes float-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

.orb-1 {
  animation: float-1 12s ease-in-out infinite;
}

.orb-2 {
  animation: float-2 15s ease-in-out infinite;
}

.orb-3 {
  animation: float-3 10s ease-in-out infinite;
}

@keyframes popUpPerson {
  0%,
  20% {
    transform: translateY(50px);
  }
  30%,
  70% {
    transform: translateY(4px);
  }
  80%,
  100% {
    transform: translateY(50px);
  }
}

@keyframes winkEye {
  0%,
  45% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.1);
  }
  55%,
  100% {
    transform: scaleY(1);
  }
}

.popup-person {
  animation: popUpPerson 4s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-person-eye-right {
  transform-origin: 62px 35px;
  animation: winkEye 4s infinite;
}

/* Bento grid */
.bento-grid-failsafe {
  display: grid;
  gap: 1px;
  width: 100%;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bento-grid-failsafe {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-md-2 {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid-failsafe {
    grid-template-columns: repeat(4, 1fr);
  }

  .span-lg-1 {
    grid-column: span 1;
  }

  .span-lg-2 {
    grid-column: span 2;
  }

  .span-lg-4 {
    grid-column: span 4;
  }

  .row-lg-2 {
    grid-row: span 2;
  }
}

/* ---------- Header ---------- */
/* Row widths follow the content's breakpoints: full width on phones, then 640 / 768 / 1024 / 1280 / 1536px. */
.site-header {
  position: relative;
  z-index: 999999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.header-bar {
  padding: 10px;
  background-color: #1b2538;
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 640px) {
  .header-row {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .header-row {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .header-row {
    max-width: 1024px;
    padding: 0 15px;
  }
}
@media (min-width: 1280px) {
  .header-row {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .header-row {
    max-width: 1536px;
  }
}
.site-logo img {
  width: auto;
  height: 28px;
}
@media (min-width: 992px) {
  .site-logo img {
    height: 36px;
  }
}

/* Desktop menu (from 992px) */
.main-nav,
.header-actions {
  display: none;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li {
  position: relative;
}
.main-nav > ul > li:not(:last-child) {
  margin-right: 56px;
}
.main-nav > ul > li > a,
.nav-parent {
  display: inline-block;
  padding: 40px 0;
  background: none;
  font-family: "Marcellus", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 2.94px;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s;
}
.main-nav li:hover > a,
.main-nav li:hover > .nav-parent,
.main-nav .nav-parent[aria-expanded="true"],
.main-nav a:focus-visible,
.nav-parent:focus-visible {
  color: #ffd045;
}
.sub-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 3;
  flex-direction: column;
  min-width: 260px;
  padding: 21px 0 !important;
  background: #16171b;
  box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.main-nav .has-sub:hover > .sub-nav,
.main-nav .has-sub:focus-within > .sub-nav,
.main-nav .nav-parent[aria-expanded="true"] + .sub-nav {
  top: 100%;
  opacity: 1;
  visibility: visible;
}
.sub-nav a {
  display: block;
  padding: 8px 32px;
  font-family: "Marcellus", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  text-transform: capitalize;
  color: #fff;
  transition: color 0.3s;
}
.sub-nav a:hover,
.sub-nav a:focus-visible {
  color: #ffd045;
}
.lowercase {
  text-transform: lowercase;
}

/* Grid buttons that open the side panel */
.menu-button {
  padding: 0;
  background: none;
  color: #fff;
}
.menu-button svg {
  display: block;
  width: 16px;
  height: 16px;
}
.menu-button path {
  fill: currentcolor;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-miterlimit: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-button--desktop {
  margin-left: 40px;
}
.menu-button--desktop:hover {
  color: #ffd045;
}
.menu-button--phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #c4ef17;
}

@media (min-width: 992px) {
  .main-nav,
  .header-actions {
    display: flex;
  }
  .menu-button--phone {
    display: none;
  }
}
@media (max-width: 991px) {
  .header-inner {
    padding: 10px 0;
  }
}
@media (min-width: 1200px) and (max-width: 1500px) {
  .main-nav > ul > li:not(:last-child) {
    margin-right: 45px;
  }
}
@media (max-width: 1199px) {
  .main-nav > ul > li:not(:last-child) {
    margin-right: 35px;
  }
}

/* Copy of the header that slides in from the top when scrolling up (added by js/main.js) */
.header-inner.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #16171b;
  transform: translateY(-100%);
  visibility: hidden;
  transition: 0.5s;
}
.header-inner.is-sticky.is-shown {
  transform: translateY(0);
  visibility: visible;
  box-shadow: 0 3px 18px rgba(6, 27, 92, 0.09);
}
.is-sticky .main-nav > ul > li > a,
.is-sticky .nav-parent {
  padding: 37px 0;
}

/* ---------- Side panel: search and menu ---------- */
.site-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000001;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #000;
  transform: translateX(-100%);
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.site-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}
@media (max-width: 420px) {
  .site-panel {
    width: 100%;
  }
}
.site-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.site-panel.is-open + .site-panel-backdrop {
  opacity: 1;
  visibility: visible;
}
.site-panel-inner {
  position: relative;
  padding: 50px 25px 40px;
}
.panel-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: 9px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}
.panel-close::before,
.panel-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background-color: #fff;
  transform: rotate(45deg);
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.panel-close::after {
  transform: rotate(-45deg);
}
.panel-close:hover::before,
.panel-close:hover::after {
  transform: rotate(0);
}
.panel-logo {
  margin-bottom: 40px;
}
.panel-logo img {
  width: auto;
  height: 32px;
}

.panel-search {
  position: relative;
  margin-bottom: 20px;
}
.panel-search-field {
  width: 100%;
  height: 50px;
  padding: 12px 45px 13px 15px;
  border: 2px solid rgba(150, 144, 162, 0.09);
  border-radius: 4px;
  background: transparent;
  font-size: 16px;
  color: #fff;
  transition: 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.panel-search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.panel-search-field::placeholder {
  color: #757575;
}
.panel-search-field:focus {
  border-color: #c4ef17;
  outline: none;
}
.panel-search-submit {
  position: absolute;
  top: 5px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 40px;
  padding: 0;
  background: none;
  color: #a8a8a8;
}
.panel-search-submit:hover {
  color: #c4ef17;
}
.panel-search-submit .icon {
  width: 16px;
  height: 16px;
  fill: currentcolor;
}
.search-status {
  margin: -8px 0 8px;
  font-size: 13px;
  line-height: 20px;
}
.search-status:empty {
  display: none;
}
.search-results {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.search-result {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 20px;
}
.search-result-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}
.search-result-meta {
  display: block;
  font-size: 12px;
  color: #a8a8a8;
}
.search-result:hover .search-result-title {
  color: #c4ef17;
}

.panel-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel-nav li {
  position: relative;
}
.panel-nav a,
.panel-parent {
  display: block;
  width: 100%;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 46px;
  text-align: left;
  color: #fff;
  transition: color 0.3s;
}
.panel-nav a:hover,
.panel-parent:hover {
  color: #c4ef17;
}
.panel-chevron {
  position: absolute;
  top: 10px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  color: #fff;
}
.panel-chevron .icon {
  width: 0.625em;
  height: 1em;
  fill: currentcolor;
}
.panel-parent[aria-expanded="true"] .icon--down,
.panel-parent[aria-expanded="false"] .icon--up {
  display: none;
}
.panel-sub {
  display: none;
}
.panel-sub a {
  padding-left: 14px;
  font-weight: 500;
}

/* ---------- Footer ---------- */
/* Desktop and tablet: logo column (25%), then Penang and Kuala Lumpur. Text sizes follow the window width. */
.footer-rule {
  margin: 0 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-main {
  display: flex;
  padding: 20px 0 0 15px;
}
.footer-brand {
  width: 25%;
  padding-left: 60px;
}
.footer-logo--wide {
  padding-top: 20px;
}
.footer-logo--phone {
  display: none;
  text-align: center;
}
.footer-company {
  padding: 24px 0;
  font-family: "Marcellus", serif;
  font-size: 0.9vw;
  font-weight: 500;
  color: #fff;
}
.footer-offices {
  display: flex;
  width: 75%;
  padding: 10px 0 0 100px;
}
.footer-office {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
  padding: 10px;
}
.footer-office--penang {
  padding-left: 260px;
}
.footer-list {
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
}
.footer-list li {
  display: flex;
}
.footer-list li:not(:last-child) {
  padding-bottom: 8px;
}
.footer-list li:not(:first-child) {
  margin-top: 8px;
}
.footer-list,
.footer-phone {
  font-family: "Marcellus", serif;
  font-size: 0.8vw;
  font-weight: 600;
}
.branch {
  font-weight: 800;
  color: #fff;
}
.footer-phone-wrap {
  padding-bottom: 24px;
}
.footer-phone-wrap--phone {
  display: none;
}
.footer-phone {
  display: flex;
  align-items: center;
  color: #fff;
  transition: color 0.3s;
}
.footer-phone .icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-right: 4.25px;
  fill: currentcolor;
}
.footer-phone:hover {
  color: #ffd045;
}
.footer-social {
  display: flex;
  gap: 4px;
  margin: 0 0 0 -1.2rem;
  padding: 0 4vw 0 0;
  list-style: none;
  line-height: 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em;
  font-size: 2vw;
  line-height: 1;
  color: #ededed;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: #ffd045;
}
.footer-social .icon {
  width: 1em;
  height: 1em;
  fill: currentcolor;
}

/* Phones: everything in one centred column */
@media (max-width: 767px) {
  .footer-main {
    flex-wrap: wrap;
    margin-top: -52px;
    padding: 10px;
  }
  .footer-brand,
  .footer-offices,
  .footer-office {
    width: 100%;
  }
  .footer-brand {
    padding: 100px 15px 20px;
  }
  .footer-logo--wide,
  .footer-phone-wrap--wide {
    display: none;
  }
  .footer-logo--phone,
  .footer-phone-wrap--phone {
    display: block;
  }
  .footer-offices {
    flex-wrap: wrap;
    padding: 0;
  }
  .footer-office--penang {
    padding: 10px;
  }
  .footer-office--kl {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .footer-company,
  .footer-list,
  .footer-phone {
    font-size: 16px;
    line-height: 1.6rem;
  }
  .footer-company {
    text-align: center;
  }
  .footer-list li,
  .footer-phone {
    justify-content: center;
    text-align: center;
  }
  .footer-phone-wrap--phone {
    margin-bottom: 27px;
  }
  .footer-social {
    justify-content: center;
    gap: 10px;
    margin: 0;
  }
  .footer-social a {
    font-size: 5vw;
  }
}

/* ---------- WhatsApp chat button ---------- */
.chat-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
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-shadow: 0 6px 8px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease-in-out;
}
.chat-button:hover {
  transform: scale(1.06);
}
.chat-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  animation: chat-shockwave 2s 5.3s ease-out infinite;
}
.chat-button-label {
  position: absolute;
  right: 70px;
  bottom: 15px;
  width: max-content;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 6px 8px 2px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 700;
  line-height: 1em;
  letter-spacing: -0.03em;
  color: #000;
  user-select: none;
}
@keyframes chat-shockwave {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 2px rgba(0, 100, 0, 0.5),
      inset 0 0 1px rgba(0, 100, 0, 0.5);
  }
  95% {
    box-shadow:
      0 0 50px transparent,
      inset 0 0 30px transparent;
  }
  100% {
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-button::before {
    animation: none;
  }
}
