/* ==========================================================================
   Dayasakti: master stylesheet
   Sections: fonts, reset, tokens (colours, type, spacing), base, layout,
   components (buttons, header), sections (01 hero ...), utilities.
   Cascade layers keep the order predictable: later layers win.
   ========================================================================== */
@layer reset, tokens, base, layout, components, sections, utilities;

/* ---------- Fonts: Archivo variable (weight + width), stored locally ---------- */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../assets/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../assets/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  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;
}

/* ========== base/reset.css ========== */
@layer reset {
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100svh; }
img, svg, video, picture { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
[hidden] { display: none !important; }
}

/* ========== base/tokens.css ========== */
@layer tokens {
/* ==========================================================================
   Design tokens: "Strait & Porcelain"
   Cool, daylight-premium palette. Deliberately shares nothing with the brand
   mark (hibiscus red, leaf green) or the two reference mocks (plum/gold/cream,
   rainforest/hibiscus/pollen), so the logo is the only warm note on the page.
   ========================================================================== */
:root {
  /* Core palette */
  --strait:    #0D1F2D;  /* deep base, dark sections, primary ink on light   */
  --harbour:   #183247;  /* secondary dark, hover fills                      */
  --slate:     #5A6A77;  /* muted text on light (5.4:1 on porcelain)         */
  --mist:      #9FB0BD;  /* muted text on dark (7:1 on strait)               */
  --haze:      #D6DFE5;  /* light fills, hairlines on light                  */
  --porcelain: #F4F6F6;  /* light sections, text on dark                     */
  --white:     #FFFFFF;  /* raised surfaces on light (form card, drawer)     */
  --error:     #A1413B;  /* form errors only                                 */
  --sky:       #A8CBE6;  /* focus ring + active states only, never decoration */

  /* Semantic roles (sections flip these via .tone-dark / .tone-light) */
  --bg:        var(--porcelain);
  --fg:        var(--strait);
  --fg-muted:  var(--slate);
  --line:      color-mix(in srgb, var(--strait) 14%, transparent);
  --focus:     var(--harbour);

  /* Type: Archivo variable. Width axis carries the personality. */
  --font: 'Archivo Variable', 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --wdth-display: 118%;   /* expanded: livery, kit, motion  */
  --wdth-ui: 108%;        /* nav, buttons, labels           */
  --wdth-text: 100%;      /* body copy                      */

  /* Type scale (fluid) */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.875rem;
  --fs-base: 1.0625rem;
  --fs-md:   clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-lg:   clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-xl:   clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  --fs-2xl:  clamp(2.6rem, 1.2rem + 5.6vw, 7rem);

  /* Space (8pt base) */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);

  /* Layout */
  --max: 1440px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --header-h: 84px;

  /* Shape: hierarchy, not one radius everywhere */
  --r-pill: 999px;  /* buttons only            */
  --r-media: 6px;   /* photography, video      */
  --r-card: 10px;   /* slider cards            */
  --r-panel: 14px;  /* dropdowns, drawers      */

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 900ms;

  /* Layers */
  --z-header: 50;
  --z-menu: 60;
}

/* Tone switches: any section can opt in */
.tone-dark {
  --bg: var(--strait);
  --fg: var(--porcelain);
  --fg-muted: var(--mist);
  --line: color-mix(in srgb, var(--porcelain) 16%, transparent);
  --focus: var(--sky);
  background: var(--bg);
  color: var(--fg);
}
.tone-light {
  --bg: var(--porcelain);
  --fg: var(--strait);
  --fg-muted: var(--slate);
  --line: color-mix(in srgb, var(--strait) 14%, transparent);
  --focus: var(--harbour);
  background: var(--bg);
  color: var(--fg);
}
}

/* ========== base/typography.css ========== */
@layer base {
html {
  font-family: var(--font);
  font-size: 100%;
  font-stretch: var(--wdth-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { font-size: var(--fs-base); line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4 {
  font-weight: 560;
  font-stretch: var(--wdth-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; max-width: 68ch; }
}

/* ========== base/global.css ========== */
@layer base {
html { background: var(--strait); }
body { background: var(--bg); color: var(--fg); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky); color: var(--strait); }

.skip-link {
  position: fixed; left: var(--gutter); top: var(--sp-3); z-index: 100;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  background: var(--porcelain); color: var(--strait); font-weight: 600;
  transform: translateY(-160%); transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
}

/* ========== layout/container.css ========== */
@layer layout {
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
}

/* ========== components/button.css ========== */
@layer components {
/* Buttons: pill only here; radius hierarchy lives in tokens. */
.btn {
  --btn-bg: var(--strait);
  --btn-fg: var(--porcelain);
  --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 3.25rem; padding: 0 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-sm); font-weight: 560; font-stretch: var(--wdth-ui);
  letter-spacing: 0.005em; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 2.75rem; padding: 0 1.25rem; }

.btn--light { --btn-bg: var(--porcelain); --btn-fg: var(--strait); }
.btn--light:hover { --btn-bg: #FFFFFF; }

.btn--outline {
  --btn-bg: transparent; --btn-fg: currentColor;
  --btn-border: color-mix(in srgb, currentColor 45%, transparent);
}
.btn--outline:hover { --btn-border: currentColor; --btn-bg: color-mix(in srgb, currentColor 8%, transparent); }

.btn--dark { --btn-bg: var(--strait); --btn-fg: var(--porcelain); }
.btn--dark:hover { --btn-bg: var(--harbour); }

/* Quiet tertiary action: underline that draws on hover */
.text-link {
  position: relative; display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: var(--fs-sm); font-weight: 560; font-stretch: var(--wdth-ui);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.85em) / 100% 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.text-link:hover { background-size: 0% 1px; background-position-x: 100%; }
}

/* ========== components/header.css ========== */
@layer components {
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  color: var(--porcelain);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--strait) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--porcelain) 10%, transparent);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.menu-open { background: var(--strait); transform: none; }
/* A transform or backdrop-filter on the header would trap the fixed menu inside it */
.site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; }

.site-header__bar {
  display: flex; align-items: center; gap: var(--sp-5);
  height: var(--header-h);
}

.brand { display: block; flex: none; }
.brand__logo { height: 38px; width: auto; }

.brand-partner {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding-left: var(--sp-5);
  border-left: 1px solid color-mix(in srgb, var(--porcelain) 22%, transparent);
  flex: none;
}
.brand-partner__label { font-size: 0.625rem; line-height: 1; color: var(--mist); font-stretch: var(--wdth-ui); }
.brand-partner__logo { height: 32px; width: auto; }

/* Primary nav */
.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); }
.nav__item { position: relative; }
.nav__trigger, .nav__link {
  display: inline-flex; align-items: center; gap: 0.4em; height: 2.75rem; padding: 0 0.85rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; font-stretch: var(--wdth-ui);
  text-decoration: none; color: inherit;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav__trigger::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.7;
  transition: transform var(--dur) var(--ease-out), margin var(--dur) var(--ease-out);
}
.nav__trigger:hover, .nav__link:hover, .nav__trigger[aria-expanded="true"] {
  background: color-mix(in srgb, var(--porcelain) 10%, transparent);
}
.nav__trigger[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 19rem; padding: var(--sp-3);
  border-radius: var(--r-panel);
  background: var(--strait);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--porcelain) 10%, transparent),
              0 24px 48px -12px rgb(4 10 16 / 0.55);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.nav__item.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition-delay: 0s;
}
.dropdown ul { list-style: none; padding: 0; }
.dropdown a {
  display: block; padding: 0.6rem 0.75rem; border-radius: 8px;
  font-size: var(--fs-sm); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.dropdown a:hover { background: var(--harbour); }
.dropdown__note {
  margin: var(--sp-2) 0.75rem var(--sp-1); padding-top: var(--sp-3);
  border-top: 1px solid color-mix(in srgb, var(--porcelain) 12%, transparent);
  font-size: var(--fs-xs); line-height: 1.45; color: var(--mist);
}

/* Burger */
.burger { display: none; position: relative; width: 2.75rem; height: 2.75rem; margin-left: auto; border-radius: var(--r-pill); }
.burger span {
  position: absolute; left: 50%; width: 20px; height: 1.5px; margin-left: -10px; background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.burger span:first-child { top: calc(50% - 4px); }
.burger span:last-child  { top: calc(50% + 3px); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0; z-index: var(--z-menu);
  background: var(--strait); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu__inner {
  display: grid; gap: var(--sp-6); padding-block: var(--sp-5) var(--sp-8);
}
.mobile-menu__group ul { list-style: none; padding: 0; display: grid; }
.mobile-menu__title { font-size: var(--fs-xs); color: var(--mist); margin-bottom: var(--sp-2); }
.mobile-menu a:not(.btn) {
  display: block; padding: 0.55rem 0; font-size: var(--fs-md); font-stretch: var(--wdth-ui);
  text-decoration: none;
}

@media (max-width: 1180px) {
  .nav, .site-header__cta { display: none; }
  .burger { display: inline-block; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand__logo { height: 30px; }
  .brand-partner { padding-left: var(--sp-4); }
  .brand-partner__logo { height: 26px; }
  .site-header__bar { gap: var(--sp-4); }
}
@media (max-width: 380px) {
  .brand-partner__label { display: none; }
}
}

/* ========== sections/hero.css ========== */
@layer sections {
/* ==========================================================================
   01 Hero: Signature Experiences slider
   Stacking (inside .hero, isolated):
     0 bg layers, 1 scrim, 3 expander, 4 copy + deck + controls
   The old title fades out before the growing card reaches it.
   ========================================================================== */
.hero {
  --fg: var(--porcelain);
  --fg-muted: var(--mist);
  --line: color-mix(in srgb, var(--porcelain) 22%, transparent);
  --focus: var(--sky);
  --card-w: clamp(9.5rem, 6rem + 7.4vw, 13.5rem);
  --card-gap: clamp(0.75rem, 0.4rem + 0.8vw, 1.25rem);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(100svh, 680px);
  color: var(--fg);
  background: var(--strait);
  overflow: hidden;
}

/* ---------- Tonal fallbacks (shown until real media lands) ---------- */
[data-ph="golf"]               { --ph: radial-gradient(120% 80% at 70% 30%, #7E98A3 0%, transparent 60%), linear-gradient(165deg, #4F6B78 0%, #24404F 55%, #0F2130 100%); }
[data-ph="cycling"]            { --ph: radial-gradient(120% 80% at 60% 25%, #A3B4BF 0%, transparent 55%), linear-gradient(165deg, #6A8090 0%, #33495A 55%, #132434 100%); }
[data-ph="motorsport"]         { --ph: radial-gradient(90% 60% at 75% 70%, #3F5A7C 0%, transparent 60%), linear-gradient(165deg, #22344B 0%, #142234 55%, #091320 100%); }
[data-ph="team-sport"]         { --ph: radial-gradient(90% 70% at 30% 20%, #6E86A0 0%, transparent 55%), linear-gradient(165deg, #3E566C 0%, #213548 55%, #0D1B29 100%); }
[data-ph="kl-langkawi"]        { --ph: radial-gradient(120% 80% at 65% 35%, #9CC0CF 0%, transparent 55%), linear-gradient(165deg, #5F8798 0%, #2E5568 55%, #122C3B 100%); }
[data-ph="incentive"]          { --ph: radial-gradient(90% 60% at 50% 75%, #556C8C 0%, transparent 60%), linear-gradient(165deg, #2F4260 0%, #1B2A40 55%, #0B1522 100%); }
[data-ph="malaysia-singapore"] { --ph: radial-gradient(110% 70% at 70% 40%, #8A9DB0 0%, transparent 55%), linear-gradient(165deg, #55697E 0%, #2D4256 55%, #102131 100%); }

/* ---------- Background layers ---------- */
.hero__bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero__layer {
  position: absolute; inset: 0; opacity: 0;
  background: var(--ph, var(--harbour));
}
.hero__layer.is-current { opacity: 1; z-index: 1; }
.hero__layer img, .hero__layer video,
.hero__expander img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__layer video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__layer.has-video video { opacity: 1; }
.is-missing { display: none; }

/* Stand-in for video: the still slowly pushes in. Starts at scale 1 so it matches
   the expander exactly at the hand-over. */
.motion .hero__layer.is-current:not(.has-video) > img {
  animation: hero-push 16s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
@keyframes hero-push {
  from { transform: scale(1); }
  to   { transform: scale(1.08) translateX(-1%); }
}

/* Scrim: protects the logo band (top), the copy (left) and the controls (bottom) */
.hero__scrim,
.hero__expander-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(13 31 45 / 0.62) 0%, rgb(13 31 45 / 0) 24%),
    linear-gradient(90deg, rgb(13 31 45 / 0.72) 0%, rgb(13 31 45 / 0.28) 46%, rgb(13 31 45 / 0) 70%),
    linear-gradient(0deg, rgb(13 31 45 / 0.85) 0%, rgb(13 31 45 / 0) 38%);
}
.hero__scrim { z-index: 1; }
/* Phones: text runs full width, so shade from the bottom up instead of from the left */
@media (max-width: 760px) {
  .hero__scrim,
  .hero__expander-scrim {
    background:
      linear-gradient(180deg, rgb(13 31 45 / 0.6) 0%, rgb(13 31 45 / 0) 20%),
      linear-gradient(0deg, rgb(13 31 45 / 0.94) 0%, rgb(13 31 45 / 0.84) 50%, rgb(13 31 45 / 0.62) 70%, rgb(13 31 45 / 0) 88%);
  }
}

/* Expander: the card that grows into the next background */
.hero__expander {
  position: absolute; z-index: 3; overflow: hidden;
  border-radius: var(--r-card);
  background: var(--ph, var(--harbour));
  pointer-events: none;
  will-change: left, top, width, height;
}
.hero__expander-scrim { opacity: 0; }

/* ---------- Stage: copy + deck ---------- */
.hero__stage {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: var(--sp-7);
  padding-top: calc(var(--header-h) + var(--sp-7));
}
.hero__copy { position: relative; z-index: 4; }

.hero__title {
  max-width: 32ch;
  margin-bottom: clamp(var(--sp-6), 6vh, var(--sp-8));
  font-size: var(--fs-sm);
  font-weight: 450;
  font-stretch: var(--wdth-ui);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--fg-muted);
}

.hero__slides { display: grid; }
.xp { grid-area: 1 / 1; }
.xp__meta {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm); font-stretch: var(--wdth-ui); font-weight: 500;
  color: var(--sky);
}
.xp__meta::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.xp__title {
  font-size: clamp(2.25rem, 1rem + 3.4vw, 4.4rem);
  font-weight: 540;
  font-stretch: var(--wdth-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  outline: none;
}
.xp__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.xp__title .w > span { display: inline-block; will-change: transform; }
.xp__text {
  max-width: 44ch;
  margin-top: var(--sp-5);
  color: color-mix(in srgb, var(--porcelain) 84%, transparent);
}
.xp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-6); }

/* ---------- Deck ---------- */
.hero__deck { position: relative; z-index: 4; min-width: 0; }
.deck { display: flex; gap: var(--card-gap); width: max-content; }
.deck__item { flex: none; }
.deck__item.is-current { display: none; }

.card {
  position: relative; display: block;
  width: var(--card-w); aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: var(--r-card);
  background: var(--ph, var(--harbour));
  text-align: left; color: var(--porcelain);
  box-shadow: 0 18px 40px -18px rgb(4 10 16 / 0.7);
  transition: transform var(--dur) var(--ease-out);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(13 31 45 / 0.82) 0%, rgb(13 31 45 / 0) 58%);
}
.card__body { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 0.3rem; padding: 0.9rem; }
.card__meta { font-size: 0.6875rem; font-stretch: var(--wdth-ui); color: var(--mist); }
.card__title { font-size: 0.875rem; font-weight: 560; font-stretch: var(--wdth-ui); line-height: 1.2; }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); }
  .card:hover img { transform: scale(1.06); }
}
.card:active { transform: scale(0.97); }
.card:focus-visible { outline-offset: 4px; border-radius: var(--r-card); }

/* ---------- Controls ---------- */
.hero__controls {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: var(--sp-6);
  padding-block: var(--sp-6) var(--sp-5);
}
.hero__buttons { display: flex; gap: var(--sp-2); }
.round-btn {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--porcelain);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.round-btn:hover { background: color-mix(in srgb, var(--porcelain) 10%, transparent); border-color: color-mix(in srgb, var(--porcelain) 50%, transparent); }
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn .i-play { fill: currentColor; stroke: none; }
.round-btn .i-play, .round-btn.is-paused .i-pause { display: none; }
.round-btn.is-paused .i-play { display: block; }

.hero__progress { position: relative; height: 1px; background: var(--line); }
.hero__progress span { position: absolute; inset: 0; background: var(--porcelain); transform: scaleX(0); transform-origin: left; }

.hero__count { display: flex; align-items: baseline; gap: var(--sp-2); font-stretch: var(--wdth-display); font-variant-numeric: tabular-nums; }
.hero__count [data-count] { font-size: var(--fs-lg); font-weight: 540; letter-spacing: -0.02em; }
.hero__count-total { font-size: var(--fs-sm); color: var(--fg-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__stage { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .hero__title { margin-bottom: var(--sp-6); }
}
@media (max-width: 560px) {
  .hero { --card-w: 7.5rem; }
  .hero__stage { padding-top: calc(var(--header-h) + var(--sp-6)); gap: var(--sp-5); }
  .hero__title { font-size: var(--fs-xs); margin-bottom: var(--sp-5); color: color-mix(in srgb, var(--porcelain) 78%, transparent); }
  .xp__meta { margin-bottom: var(--sp-3); }
  .xp__title { font-size: clamp(2rem, 9.4vw, 2.6rem); font-stretch: 108%; }
  .xp__text { margin-top: var(--sp-3); font-size: 0.9375rem; line-height: 1.5; }
  .xp__actions { margin-top: var(--sp-4); gap: var(--sp-3) var(--sp-4); }
  .card__body { padding: 0.6rem; }
  .card__title { font-size: 0.75rem; }
  .card__meta { font-size: 0.625rem; }
  .hero__controls { gap: var(--sp-4); padding-block: var(--sp-5) var(--sp-4); }
  .hero__buttons { gap: var(--sp-1); }
}
/* Short phones (iPhone SE class): tighten so the slide, deck and controls fit one screen */
@media (max-width: 560px) and (max-height: 700px) {
  .hero { --card-w: 6.25rem; min-height: 100svh; }
  .hero__stage { padding-top: calc(var(--header-h) + var(--sp-4)); gap: var(--sp-4); }
  .hero__title { margin-bottom: var(--sp-4); }
  .xp__title { font-size: 1.9rem; }
  .xp__text { -webkit-line-clamp: 2; line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .xp__actions .btn { min-height: 2.75rem; }
  .card__meta { display: none; }
  .hero__controls { padding-block: var(--sp-4) var(--sp-3); }
}
}

/* ========== home sections 02-07 + footer ========== */
@layer components {
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.section-title {
  font-size: var(--fs-xl); font-weight: 560; font-stretch: var(--wdth-display);
  line-height: 1; letter-spacing: -0.03em;
}
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-5) var(--sp-8); margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head p { margin-top: var(--sp-4); max-width: 46ch; color: var(--fg-muted); font-size: var(--fs-md); }
.btn--dark { --btn-bg: var(--strait); --btn-fg: var(--porcelain); }
.btn--dark:hover { --btn-bg: var(--harbour); }
}

@layer sections {
/* ---------- 02 Intro ---------- */
.intro { padding-block: var(--section-y); }
.intro__head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-6) clamp(2rem, 6vw, 7rem); align-items: end;
}
.intro__statement {
  font-size: clamp(2.6rem, 1rem + 5vw, 6.25rem); font-weight: 540;
  line-height: 0.94; letter-spacing: -0.04em;
}
.intro__lead { max-width: 34ch; font-size: var(--fs-lg); line-height: 1.38; font-weight: 450; letter-spacing: -0.01em; }
.motion .intro__lead .w { opacity: 0.16; }

.facts-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5);
  margin-top: clamp(4rem, 8vw, 7rem); padding-top: var(--sp-6); border-top: 1px solid var(--line);
}
.facts-grid li { display: grid; align-content: start; gap: var(--sp-3); font-size: var(--fs-sm); font-weight: 500; font-stretch: var(--wdth-ui); line-height: 1.35; }
.facts-grid .icon { color: var(--harbour); }

/* Pillars: big rows; a photo follows the cursor on desktop */
.pillars { position: relative; margin-top: clamp(5rem, 10vw, 9rem); border-top: 1px solid var(--line); }
.pillar__link {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 4fr) auto;
  align-items: center; gap: var(--sp-6);
  padding-block: clamp(1.75rem, 3.2vw, 3rem);
  border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: opacity var(--dur) var(--ease-out);
}
.pillar__thumb { display: none; }
.pillar__cat { font-size: var(--fs-sm); font-stretch: var(--wdth-ui); color: var(--fg-muted); }
.pillar__title { font-size: clamp(1.6rem, 0.9rem + 2.2vw, 3rem); font-weight: 560; letter-spacing: -0.03em; transition: transform var(--dur) var(--ease-out); }
.pillar__text { color: var(--fg-muted); font-size: var(--fs-sm); line-height: 1.5; }
.pillar__go {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--strait);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pillars:hover .pillar__link { opacity: 0.32; }
  .pillars .pillar__link:hover, .pillars .pillar__link:focus-visible { opacity: 1; }
  .pillar__link:hover .pillar__title { transform: translateX(0.5rem); }
  .pillar__link:hover .pillar__go { background: var(--strait); border-color: var(--strait); color: var(--porcelain); }
}
.pillars__float {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: clamp(13rem, 16vw, 18rem); aspect-ratio: 3 / 4;
  border-radius: var(--r-card); overflow: hidden; pointer-events: none;
  opacity: 0; visibility: hidden;
  box-shadow: 0 30px 60px -24px rgb(13 31 45 / 0.5);
}
.pillars__float.is-on { visibility: visible; }
.pillars__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--ease-out); }
.pillars__float img.is-active { opacity: 1; }

/* ---------- 03 Partner ---------- */
.partner { padding-block: var(--section-y); }
.partner__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 8rem); }
.partner__intro { margin-top: var(--sp-5); max-width: 44ch; color: var(--fg-muted); font-size: var(--fs-md); }
.steps { list-style: none; padding: 0; margin-top: var(--sp-8); }
.step {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-5);
  min-height: 34vh; padding: var(--sp-5) 0 var(--sp-5) var(--sp-5);
  border-left: 1px solid var(--line);
  opacity: 0.32; transition: opacity 0.6s var(--ease-out);
}
.step::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 100%;
  background: var(--porcelain); transform: scaleY(0); transform-origin: top;
  transition: transform 0.8s var(--ease-out);
}
.step.is-active { opacity: 1; }
.step.is-active::before { transform: scaleY(1); }
.step__n { padding-top: 0.45em; font-size: var(--fs-sm); font-stretch: var(--wdth-display); color: var(--sky); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.35rem, 0.9rem + 1.4vw, 2.1rem); font-weight: 540; letter-spacing: -0.02em; }
.step p { margin-top: var(--sp-2); color: var(--fg-muted); }
.step__media { display: none; }

.partner__media { position: relative; }
.partner__frame {
  position: sticky; top: 12vh; height: 76vh; min-height: 420px;
  border-radius: var(--r-media); overflow: hidden; background: var(--harbour);
}
.partner__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  clip-path: inset(100% 0 0 0); transform: scale(1.08);
  /* losing "active": stay visible under the incoming image, then reset */
  transition: clip-path 0s linear 1.1s, transform 0s linear 1.1s;
}
.partner__frame img.is-active {
  z-index: 2; clip-path: inset(0 0 0 0); transform: scale(1);
  transition: clip-path 1.05s var(--ease-out), transform 1.5s var(--ease-out);
}
.partner__count {
  position: absolute; left: var(--sp-5); bottom: var(--sp-4); z-index: 3;
  font-size: var(--fs-sm); font-stretch: var(--wdth-display); font-variant-numeric: tabular-nums;
  color: var(--porcelain); text-shadow: 0 1px 12px rgb(0 0 0 / 0.4);
}

/* ---------- 04 Proof ---------- */
.proof { padding-block: var(--section-y) clamp(4rem, 8vw, 7rem); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.case { position: relative; display: grid; align-content: start; gap: var(--sp-3); }
.case__media { margin: 0 0 var(--sp-3); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-media); background: var(--haze); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .case:hover .case__media img { transform: scale(1.05); } }
.case__tag { font-size: var(--fs-xs); font-stretch: var(--wdth-ui); color: var(--fg-muted); }
.case__title { font-size: clamp(1.3rem, 1rem + 0.9vw, 1.85rem); font-weight: 540; letter-spacing: -0.02em; line-height: 1.1; max-width: 18ch; }
.case__open {
  justify-self: start; margin-top: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 560; font-stretch: var(--wdth-ui);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px;
}
.case__open::after { content: ""; position: absolute; inset: 0; } /* whole card opens the drawer */
.case__open:focus-visible { outline: none; }
.case:has(.case__open:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: var(--r-media); }

/* Drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(38rem, 100%); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); color: var(--strait);
  transform: translateX(100%); transition: transform 0.6s var(--ease-out);
}
.drawer.is-in { transform: none; }
.drawer::backdrop { background: rgb(13 31 45 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer__panel { display: grid; gap: var(--sp-4); padding: var(--sp-5) clamp(1.25rem, 4vw, 3rem) var(--sp-8); }
.drawer__close { position: sticky; top: 0; z-index: 2; justify-self: end; color: var(--strait); border-color: var(--line); background: var(--white); }
.drawer__close:hover { background: var(--porcelain); }
.drawer__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.drawer__media { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--r-media); overflow: hidden; background: var(--haze); }
.drawer__media img { width: 100%; height: 100%; object-fit: cover; }
.drawer__tag { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--slate); font-stretch: var(--wdth-ui); }
.drawer__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 560; }
.drawer__body h4 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-sm); font-weight: 560; font-stretch: var(--wdth-ui); color: var(--slate); }
.drawer__body ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.drawer__body li { position: relative; padding-left: 1.25rem; }
.drawer__body li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.6rem; height: 1px; background: var(--strait); }
.drawer__body .outcome { margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5) var(--sp-5); border-radius: var(--r-card); background: var(--porcelain); }
.drawer__body .outcome h4 { margin-top: 0; }
.drawer__cta { margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid color-mix(in srgb, var(--strait) 14%, transparent); }
.drawer__cta p { color: var(--slate); }
.drawer__cta strong { color: var(--strait); font-weight: 560; }
.drawer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); }

/* ---------- 05 Clients ---------- */
.clients { padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.clients__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5) var(--sp-8); align-items: end; }
.clients__head p { color: var(--fg-muted); font-size: var(--fs-md); max-width: 46ch; }
.marquee {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__list { display: flex; align-items: center; list-style: none; padding: 0; }
.marquee__list li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: clamp(1.6rem, 0.9rem + 2.6vw, 3.4rem); font-weight: 600; font-stretch: 125%;
  letter-spacing: -0.02em; color: var(--slate); transition: color var(--dur) var(--ease-out);
}
.marquee__list li::after {
  content: ""; width: 0.5rem; height: 0.5rem; margin-inline: clamp(1.75rem, 4vw, 3.75rem);
  border: 1px solid var(--haze); transform: rotate(45deg); background: var(--haze);
}
@media (hover: hover) { .marquee__list li:hover { color: var(--strait); } }

/* ---------- 06 Visit Malaysia ---------- */
.vmy { background: var(--porcelain); }
.vmy__stage { position: relative; display: grid; align-items: end; height: 100svh; min-height: 640px; overflow: hidden; }
.vmy__frame { position: absolute; inset: 0; overflow: hidden; }
.vmy__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.vmy__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgb(13 31 45 / 0.9) 0%, rgb(13 31 45 / 0.45) 45%, rgb(13 31 45 / 0.1) 75%),
    linear-gradient(90deg, rgb(13 31 45 / 0.55) 0%, rgb(13 31 45 / 0) 60%);
}
.vmy__copy {
  position: relative; z-index: 1; display: grid; justify-items: start; gap: var(--sp-4);
  padding-bottom: clamp(3rem, 9vh, 6.5rem); color: var(--porcelain);
}
.vmy__logo { height: clamp(64px, 3rem + 3vw, 96px); width: auto; margin-bottom: var(--sp-3); }
.vmy__label { font-size: var(--fs-sm); color: var(--sky); font-stretch: var(--wdth-ui); }
.vmy__copy h2 { max-width: 15ch; font-size: var(--fs-xl); font-weight: 560; letter-spacing: -0.03em; }
.vmy__text { max-width: 46ch; color: rgb(244 246 246 / 0.86); }
.vmy__copy .btn { margin-top: var(--sp-3); }

/* ---------- 07 Closing + enquiry ---------- */
.closing { padding-block: var(--section-y); }
.closing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.closing__copy > p { margin-top: var(--sp-5); max-width: 44ch; color: var(--fg-muted); font-size: var(--fs-md); }
.closing__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.contact-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-6);
  margin: var(--sp-8) 0 0; padding-top: var(--sp-6); border-top: 1px solid var(--line);
}
.contact-list dt { font-size: var(--fs-xs); color: var(--fg-muted); font-stretch: var(--wdth-ui); }
.contact-list dd { margin: var(--sp-1) 0 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.enquiry {
  padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--r-panel);
  background: var(--white); box-shadow: 0 40px 80px -48px rgb(13 31 45 / 0.45), 0 0 0 1px rgb(13 31 45 / 0.05);
}
.enquiry__title { font-size: var(--fs-lg); font-weight: 560; }
.enquiry__intro { margin-top: var(--sp-2); color: var(--fg-muted); }
.enquiry__form { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chips legend { width: 100%; margin-bottom: var(--sp-3); font-size: var(--fs-sm); font-weight: 500; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-stretch: var(--wdth-ui); font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chips label:hover span { border-color: var(--strait); }
.chips input:checked + span { background: var(--strait); border-color: var(--strait); color: var(--porcelain); }
.chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-1); }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 0.65rem 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--strait) 22%, transparent);
  border-radius: 0; background: transparent; font-size: var(--fs-base); color: var(--strait);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--slate) 70%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--strait); box-shadow: 0 1px 0 var(--strait); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.field__error { min-height: 1.2em; font-size: var(--fs-xs); color: var(--error); }
.enquiry__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.form-status { font-size: var(--fs-sm); color: var(--slate); max-width: 34ch; }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(4rem, 8vw, 7rem); }
.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--sp-6);
  padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line);
}
.footer__sign { font-size: clamp(2.6rem, 1rem + 6vw, 7.5rem); font-weight: 560; font-stretch: 125%; letter-spacing: -0.045em; line-height: 0.9; max-width: none; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--sp-7) var(--sp-6); padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.footer__brand > img { height: 42px; width: auto; }
.footer__brand p { margin-top: var(--sp-4); max-width: 34ch; font-size: var(--fs-sm); color: var(--mist); }
.footer__vmy { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--mist); }
.footer__vmy img { height: 40px; width: auto; }
.site-footer h3 { margin-bottom: var(--sp-4); font-size: var(--fs-xs); font-weight: 500; font-stretch: var(--wdth-ui); color: var(--mist); letter-spacing: 0; }
.site-footer nav ul, .footer__contact { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.site-footer a:not(.btn) { color: rgb(244 246 246 / 0.88); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:not(.btn):hover { color: var(--porcelain); text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; font-size: var(--fs-sm); color: var(--mist); line-height: 1.6; margin-bottom: var(--sp-4); }
.footer__contact li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--sp-2); font-size: var(--fs-sm); }
.footer__contact span { color: var(--mist); }
.footer__contact a { overflow-wrap: anywhere; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6);
  padding-block: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--mist);
}
.footer__bottom p { max-width: none; }
.footer__bottom a { font-size: var(--fs-xs); }
.footer__top-btn { margin-left: auto; }
.footer__top-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* WhatsApp */
.wa-float {
  position: fixed; right: var(--gutter); bottom: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 3rem; padding: 0 1.15rem 0 0.95rem;
  border-radius: var(--r-pill); background: var(--strait); color: var(--porcelain);
  font-size: var(--fs-sm); font-weight: 560; font-stretch: var(--wdth-ui); text-decoration: none;
  box-shadow: 0 14px 30px -12px rgb(4 10 16 / 0.6), 0 0 0 1px rgb(244 246 246 / 0.08);
  transform: translateY(160%); transition: transform 0.6s var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: var(--harbour); }
.wa-float .icon { width: 20px; height: 20px; color: var(--sky); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillar__link { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-5); }
  .pillar__cat { grid-column: 1 / -1; }
  .pillar__text { grid-column: 1; max-width: 52ch; }
  .pillar__go { grid-row: 2 / span 2; grid-column: 2; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .intro__head, .clients__head, .closing__grid { grid-template-columns: minmax(0, 1fr); }
  .partner__grid { grid-template-columns: minmax(0, 1fr); }
  .partner__media { display: none; }
  .step { min-height: 0; opacity: 1; }
  .step::before { transform: scaleY(1); opacity: 0.3; }
  .step__media { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: var(--sp-4); border-radius: var(--r-media); }
  /* Cases become a swipeable row */
  .cases {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 22rem);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-3);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cases::-webkit-scrollbar { display: none; }
  .case { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .pillar__thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-media); margin-bottom: var(--sp-3); }
  .pillar__cat { grid-row: 2; }
  .pillar__title { grid-row: 3; grid-column: 1; }
  .pillar__go { grid-row: 3; grid-column: 2; width: 2.75rem; height: 2.75rem; }
  .pillar__text { grid-row: 4; }
}
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row, .contact-list { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 3rem; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: var(--sp-4); }
  .marquee__list[aria-hidden="true"] { display: none; }
}
}

/* ========== preloader ========== */
@layer components {
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--porcelain);
  background: radial-gradient(70% 60% at 50% 42%, #183247 0%, var(--strait) 72%);
}
.js .preloader { display: grid; }
.no-preloader .preloader { display: none; }

.preloader__center {
  display: grid; justify-items: center; align-content: center;
  gap: clamp(1.75rem, 5vh, 3rem);
  padding-top: var(--sp-6);
}
.preloader__logo { height: clamp(34px, 1.6rem + 1.6vw, 50px); width: auto; }
.preloader__tagline {
  font-size: var(--fs-sm); font-stretch: var(--wdth-ui); font-weight: 450;
  color: var(--mist); letter-spacing: 0.01em;
}

/* Stack: cards are absolutely placed on one spot, then fanned by GSAP */
.preloader__stack {
  position: relative;
  width: clamp(7.25rem, 4.5rem + 7.5vw, 11.5rem);
  aspect-ratio: 3 / 4;
  margin-block: var(--sp-4);
}
.pl-card {
  position: absolute; inset: 0;
  overflow: hidden; border-radius: var(--r-card);
  background: var(--ph, var(--harbour));
  box-shadow: 0 30px 60px -24px rgb(2 8 14 / 0.75), 0 0 0 1px rgb(244 246 246 / 0.06);
  transform-origin: 50% 140%;
  visibility: hidden;
}
.pl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.preloader__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: var(--sp-6);
  padding-block: var(--sp-6) var(--sp-5);
}
.preloader__meter { position: relative; height: 1px; background: color-mix(in srgb, var(--porcelain) 18%, transparent); }
.preloader__meter span { position: absolute; inset: 0; background: var(--porcelain); transform: scaleX(0); transform-origin: left; }
.preloader__count {
  display: flex; align-items: baseline; min-width: 4.5ch; justify-content: flex-end;
  font-size: var(--fs-xl); font-weight: 540; font-stretch: var(--wdth-display);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1;
}
.preloader__pct { margin-left: 0.15em; font-size: var(--fs-sm); color: var(--mist); letter-spacing: 0; }
}

/* While preloading: page cannot scroll, background still waits to start its slow push-in */
@layer utilities {
html.is-preloading { overflow: hidden; }
html.is-preloading .hero__layer > img { animation: none; }
}

/* ========== utilities.css ========== */
@layer utilities {
/* Intro states: only hidden when JS + motion are available, revealed by GSAP.
   .intro-done is the 3s safety net set in index.html. */
.motion:not(.intro-done) [data-intro],
.motion:not(.intro-done) .hero__slides,
.motion:not(.intro-done) .hero__deck,
.motion:not(.intro-done) .hero__controls { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

}

/* ========== mobile optimisation ========== */
@layer utilities {
html { -webkit-tap-highlight-color: transparent; }
/* Notches and home indicators */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
.preloader__foot { padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }
.hero__controls { padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }

/* Enquiry card flashes when a link prefills it */
.enquiry.is-flash { animation: enquiry-flash 1.4s var(--ease-out); }
@keyframes enquiry-flash {
  0%, 30% { box-shadow: 0 0 0 3px var(--sky), 0 40px 80px -48px rgb(13 31 45 / 0.45); }
  100% { box-shadow: 0 40px 80px -48px rgb(13 31 45 / 0.45), 0 0 0 1px rgb(13 31 45 / 0.05); }
}

@media (pointer: coarse) {
  /* Comfortable 44px+ tap targets */
  .chips span { min-height: 2.875rem; padding: 0 1.15rem; }
  .site-footer nav a, .footer__contact a, .contact-list a { display: inline-block; padding-block: 0.72rem; }
  .contact-list dd { margin-top: 0; }
  .brand { display: flex; align-items: center; min-height: 2.875rem; }
  .site-footer nav ul, .footer__contact { gap: 0; }
  .text-link { min-height: 2.875rem; }
  .mobile-menu a:not(.btn) { padding-block: 0.7rem; }
  .round-btn { width: 2.875rem; height: 2.875rem; }
}

@media (max-width: 560px) {
  :root { --section-y: clamp(4.25rem, 3rem + 6vw, 5.5rem); }
  .intro__statement { font-size: clamp(2.5rem, 11.5vw, 3.25rem); }
  .intro__lead { font-size: 1.3rem; }
  .facts-grid { margin-top: var(--sp-8); gap: var(--sp-5) var(--sp-4); }
  .pillars { margin-top: var(--sp-8); }
  .pillar__link { padding-block: var(--sp-6); }
  .steps { margin-top: var(--sp-6); }
  .step { padding-block: var(--sp-4); }
  .section-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .vmy__stage { height: auto; min-height: 92svh; }
  .vmy__copy h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .enquiry { margin-inline: calc(var(--gutter) * -0.5); }
  .footer__sign { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .footer__top .btn { width: 100%; }
  .footer__bottom { gap: var(--sp-2); }
  .footer__top-btn { position: absolute; right: var(--gutter); }
  .footer__bottom { position: relative; padding-right: 3.5rem; }
}

/* Phones held sideways: short screens */
@media (max-height: 520px) and (orientation: landscape) {
  .preloader__center { gap: var(--sp-3); padding-top: var(--sp-3); }
  .preloader__stack { width: 5.5rem; margin-block: var(--sp-2); }
  .preloader__logo { height: 28px; }
  .preloader__tagline { display: none; }
  .preloader__foot { padding-block: var(--sp-3); }
  .preloader__count { font-size: var(--fs-lg); }
  .hero { min-height: 100svh; }
  .hero__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: calc(var(--header-h) + var(--sp-3)); gap: var(--sp-5); align-items: end; }
  .hero__title { display: none; }
  .xp__title { font-size: 1.75rem; }
  .xp__text { display: none; }
  .xp__actions { margin-top: var(--sp-3); }
  .hero { --card-w: 6.5rem; }
  .card__meta { display: none; }
  .hero__controls { padding-block: var(--sp-3); }
  .vmy__stage { min-height: 100svh; }
  .vmy__copy { gap: var(--sp-2); padding-bottom: var(--sp-5); }
  .vmy__logo { height: 48px; }
  .vmy__text { display: none; }
}
}
