:root {
  --ink: #111827;
  --muted: #5d6675;
  --line: rgba(17, 24, 39, 0.1);
  --soft: #fcfcfc;
  --cream: #f5f0e6;
  --green: #0d6b4d;
  --green-soft: #d9f7e8;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(217, 247, 232, 0.7), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f7f3ea 100%);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: rgba(252, 252, 252, 0.78);
  box-shadow: var(--shadow);
}

.ambient {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.52;
  animation: floaty 9s ease-in-out infinite alternate;
}

.ambient-one {
  right: 8%;
  top: 6%;
  background: rgba(13, 107, 77, 0.16);
}

.ambient-two {
  left: 6%;
  bottom: 4%;
  background: rgba(194, 149, 77, 0.18);
  animation-delay: -3s;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}

.brand,
.topbar-link,
.primary-action,
.secondary-action,
.final-cta a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: white;
  background: var(--ink);
  letter-spacing: -0.05em;
}

.topbar-link {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 70px 38px 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(56px, 9vw, 118px);
}

.hero-lede {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.final-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
}

.primary-action,
.final-cta a {
  color: white;
  background: var(--ink);
}

.secondary-action {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.motion-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.22);
  transform: rotate(1.5deg);
  isolation: isolate;
}

.mount-video,
.motion-card::after {
  position: absolute;
  inset: 0;
}

.mount-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motion-card::after {
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34));
  z-index: 1;
}

.motion-sheen {
  position: absolute;
  inset: -40% auto -40% -20%;
  width: 36%;
  z-index: 2;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  animation: sheen 5.8s ease-in-out infinite;
}

.motion-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 36px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b7f7ce;
  box-shadow: 0 0 0 6px rgba(183, 247, 206, 0.18);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.quick-info article,
.faq-item,
.final-cta {
  border: 1px solid var(--line);
  background: rgba(252, 252, 252, 0.86);
  box-shadow: 0 16px 45px rgba(17, 24, 39, 0.06);
}

.quick-info article {
  border-radius: 24px;
  padding: 20px;
}

.quick-info span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-info strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.quick-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.faq-section {
  padding: 80px 0 40px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2,
.final-cta h2 {
  font-size: clamp(42px, 6vw, 76px);
}

.faq-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: start;
}

.faq-index {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
}

.category-pill {
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 800;
}

.category-pill.active,
.category-pill:hover {
  color: var(--ink);
  background: var(--green-soft);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.faq-item[hidden] {
  display: none;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(17, 24, 39, 0.09);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 54px 22px 24px;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: -0.04em;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.final-cta {
  margin-top: 46px;
  border-radius: 32px;
  padding: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 247, 232, 0.72), transparent 22rem),
    #fcfcfc;
}

.final-cta p {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.final-cta a {
  margin-top: 24px;
}

@keyframes floaty {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -22px, 0) scale(1.08); }
}

@keyframes sheen {
  0%, 52% { transform: translateX(-120%) rotate(18deg); opacity: 0; }
  65% { opacity: 1; }
  100% { transform: translateX(390%) rotate(18deg); opacity: 0; }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 680px);
    padding-top: 10px;
  }

  .hero {
    min-height: auto;
    border-radius: 28px;
  }

  .topbar {
    padding: 18px;
  }

  .hero-grid,
  .faq-layout,
  .quick-info {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 42px 18px 20px;
  }

  .motion-card {
    min-height: 380px;
    transform: none;
  }

  .faq-index {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .category-pill {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient,
  .motion-sheen {
    animation: none;
  }

  .mount-video {
    display: none;
  }

  .motion-card {
    background-image: url("assets/mount-kinabalu-poster.webp");
    background-size: cover;
    background-position: center;
  }
}

/* Runway-style motion */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 1.08em, 0) rotateX(68deg) rotateZ(-1.5deg) scale(0.96);
  transform-origin: 50% 100%;
  filter: blur(14px);
}

.loaded .word-reveal {
  animation: modelWalk 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.entrance-ready {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  filter: blur(10px);
}

.loaded .entrance-ready {
  animation: softEntrance 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 34px, 0) rotateX(22deg) scale(0.98);
  transform-origin: 50% 100%;
  filter: blur(9px);
}

.reveal-on-scroll.is-visible {
  animation: cardWalkIn 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.category-pill.reveal-on-scroll {
  transform: translate3d(-18px, 18px, 0) rotateZ(-2deg);
}

.motion-card {
  animation: editorialFloat 7s ease-in-out infinite alternate;
}

.faq-item summary::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 72px;
  bottom: 16px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(13, 107, 77, 0.5), transparent);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover summary::before,
.faq-item[open] summary::before {
  transform: scaleX(1);
}

.primary-action,
.secondary-action,
.final-cta a,
.topbar-link {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, background 0.28s ease;
}

.primary-action:hover,
.secondary-action:hover,
.final-cta a:hover,
.topbar-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
}

@keyframes modelWalk {
  0% {
    opacity: 0;
    transform: translate3d(0, 1.08em, 0) rotateX(68deg) rotateZ(-1.5deg) scale(0.96);
    filter: blur(14px);
  }
  58% {
    opacity: 1;
    transform: translate3d(0, -0.08em, 0) rotateX(-8deg) rotateZ(0.4deg) scale(1.015);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateZ(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes softEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.98);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes cardWalkIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 34px, 0) rotateX(22deg) scale(0.98);
    filter: blur(9px);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -5px, 0) rotateX(-3deg) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes editorialFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(1.5deg);
  }
  to {
    transform: translate3d(0, -12px, 0) rotate(-0.35deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal,
  .entrance-ready,
  .reveal-on-scroll,
  .loaded .word-reveal,
  .loaded .entrance-ready,
  .reveal-on-scroll.is-visible,
  .motion-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Cinematic hero revision */
.hero {
  min-height: auto;
  padding-bottom: 24px;
  background: rgba(252, 252, 252, 0.9);
}

.hero-stage {
  position: relative;
  z-index: 1;
  min-height: clamp(620px, 74vw, 860px);
  margin: 10px 24px 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 36px 110px rgba(17, 24, 39, 0.22);
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 12, 18, 0.76) 0%, rgba(6, 12, 18, 0.46) 42%, rgba(6, 12, 18, 0.08) 100%),
    linear-gradient(180deg, rgba(6, 12, 18, 0.08) 0%, rgba(6, 12, 18, 0.18) 100%);
}

.hero-stage .mount-video {
  transform: none;
  object-position: center center;
}

.hero-stage .hero-copy {
  position: absolute;
  left: clamp(22px, 5vw, 64px);
  bottom: clamp(34px, 7vw, 86px);
  z-index: 3;
  max-width: min(720px, calc(100% - 44px));
  color: #fff;
}

.hero-stage .eyebrow {
  color: #baf7d4;
}

.hero-stage h1 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(58px, 10vw, 138px);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.hero-stage .hero-lede {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero-stage .secondary-action {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-stage .primary-action {
  color: var(--ink);
  background: #fff;
}

.hero-stage .motion-caption {
  left: auto;
  right: 22px;
  bottom: 22px;
}

.hero-stage .motion-sheen {
  z-index: 2;
}

.motion-card {
  display: none;
}

@media (max-width: 860px) {
  .hero-stage {
    min-height: 660px;
    margin: 0 12px 12px;
    border-radius: 26px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6, 12, 18, 0.18) 0%, rgba(6, 12, 18, 0.78) 78%),
      linear-gradient(90deg, rgba(6, 12, 18, 0.38), transparent);
  }

  .hero-stage .hero-copy {
    left: 20px;
    right: 20px;
    bottom: 76px;
  }

  .hero-stage .motion-caption {
    left: 20px;
    right: auto;
    bottom: 20px;
  }
}
