/* =========================================================
   MSC — Maple Software Creation
   Design System: Executive AI & Digital Transformation Consultancy
   Corporate / Premium / Global-consultancy feel. Orange accent, no blue.
   ========================================================= */

:root {
  /* --- Color: orange family (accessible variants + decorative variants) --- */
  --color-orange-900: #7a2e0c;
  --color-orange-700: #b8430f;
  --color-orange-600: #d1520f;   /* accessible on white, ~4.6:1 — use for text/links */
  --color-orange-500: #e8621a;   /* primary brand orange — buttons, accents */
  --color-orange-400: #f4703c;   /* brighter decorative orange — gradients, large shapes */
  --color-orange-100: #fdece1;   /* tint background */
  --color-orange-50:  #fdf6f0;

  /* --- Color: charcoal / ink (corporate dark, not pure black) --- */
  --color-ink-900: #14171a;
  --color-ink-800: #1c2024;
  --color-ink-700: #2a2f34;
  --color-ink-600: #3c4147;
  --color-ink-400: #6b7278;
  --color-ink-200: #b9bec2;

  /* --- Neutrals --- */
  --color-paper: #ffffff;
  --color-mist: #f7f5f3;
  --color-mist-dark: #efece8;
  --color-border: #e4e0da;

  /* --- Semantic --- */
  --color-bg: var(--color-paper);
  --color-bg-alt: var(--color-mist);
  --color-bg-dark: var(--color-ink-900);
  --color-text: var(--color-ink-700);
  --color-text-muted: var(--color-ink-400);
  --color-text-inverse: #ffffff;
  --color-accent: var(--color-orange-500);
  --color-accent-text: var(--color-orange-600);
  --color-focus: var(--color-orange-700);

  /* --- Typography --- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --fs-display-lg: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  --fs-display: clamp(2rem, 1.6rem + 2vw, 3rem);
  --fs-h2: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.6rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --lh-tight: 1.15;
  --lh-normal: 1.6;

  /* --- Spacing scale --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  /* --- Layout --- */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 450ms;
  --dur-slow: 800ms;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--color-accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); margin: 0 0 var(--space-2); color: var(--color-ink-900); overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: var(--fs-display-lg); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.25em; }
button { font-family: inherit; font-size: inherit; }

/* Visible, on-brand focus ring everywhere — never the browser default blue */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: 0; z-index: 1000;
  background: var(--color-ink-900); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm); transform: translateY(-120%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0.5rem); }

/* =========================================================
   Layout helpers
   ========================================================= */
.container { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-3); }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--alt { background: var(--color-bg-alt); }
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .grid-6 .card { padding-inline: var(--space-2); }
  .grid-6 h3 { font-size: 1.05rem; }
}
/* Fixed 3-column grid — used where exactly 2 rows of 3 is wanted (more
   breathing room per card than grid-6's 6-across layout). */
.grid-3x2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid-3x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3x2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.grid-2x2 { grid-template-columns: repeat(1, minmax(0, 1fr)); max-width: 50em; }
@media (min-width: 560px) { .grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: var(--space-2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.eyebrow {
  display: inline-block; font-size: var(--fs-small); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-text);
  margin-bottom: var(--space-1);
}
.lead { font-size: var(--fs-lead); color: var(--color-text); max-width: 46em; }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.6em; border-radius: 999px; font-weight: 700;
  font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-orange-700); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(232, 98, 26, 0.08); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-lg { padding: 1.05em 2.1em; font-size: 1.05rem; }
.btn-whatsapp { background: #1ea952; color: #fff; }
.btn-whatsapp:hover { background: #178a43; }

/* Native cross-document page transitions (progressive enhancement —
   unsupported browsers simply navigate with no transition, no JS needed) */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; color: var(--color-ink-900); }
.brand .brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--color-orange-400), var(--color-orange-700));
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
.brand-logo { height: 65px; width: auto; display: block; }
.site-footer .brand-logo { height: 48px; }
.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav-list { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a, .nav-toggle-btn, .has-mega {
  font-weight: 600; font-size: 1rem; line-height: 1; color: var(--color-ink-700); padding: 0.5rem 0;
  display: inline-flex; align-items: center; border-bottom: 2px solid transparent;
}
.nav-list > li > a:hover, .nav-list > li.is-open > .nav-toggle-btn { color: var(--color-accent-text); text-decoration: none; }
.has-mega { gap: 0.3em; background: none; border: 0; cursor: pointer; }
.has-mega .chev { transition: transform var(--dur-fast) var(--ease-out); }
.has-mega[aria-expanded="true"] .chev { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 24px 48px -12px rgba(20,23,26,0.18);
  padding: var(--space-3); min-width: 340px;
  display: grid; gap: 0.35rem;
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.nav-list > li.is-open > .mega-menu { opacity: 1; visibility: visible; translate: 0 0; }
.mega-menu a { color: var(--color-ink-700); padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); font-weight: 600; }
.mega-menu a:hover { background: var(--color-orange-50); color: var(--color-accent-text); text-decoration: none; }
.mega-menu .tier-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); padding: 0.25rem 0.75rem; }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta .btn-lg { padding: 0.85em 1.5em; font-size: 0.95rem; white-space: nowrap; }
.mobile-toggle { display: none; }

@media (max-width: 1010px) {
  .nav-list { display: none; }
  .nav-list > li { flex-direction: column; align-items: stretch; }
  .mobile-toggle {
    display: inline-flex; background: none; border: 2px solid var(--color-ink-700); border-radius: 10px;
    width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
  }
  .nav.is-mobile-open .nav-list {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: var(--space-3); border-bottom: 1px solid var(--color-border);
    box-shadow: 0 24px 32px -16px rgba(0,0,0,0.15);
  }
  .nav.is-mobile-open .mega-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding-left: var(--space-2); display: none; }
  .nav.is-mobile-open li.is-open .mega-menu { display: grid; }
  .nav-cta .btn-lg { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--color-ink-900) 0%, var(--color-ink-800) 55%, var(--color-orange-900) 130%);
  color: #fff; padding-block: var(--space-7) var(--space-6);
}
.hero-bg-shape {
  position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 30% 30%, rgba(244,112,60,0.55), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.hero-bg-shape--secondary {
  inset: auto auto -18% -8%; width: 42vw; height: 42vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at 60% 60%, rgba(120,60,20,0.5), transparent 70%);
  filter: blur(6px);
}
.hero-network {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none; opacity: 0.55;
}
.hero-network--near { opacity: 0.85; }
.hero-content { position: relative; z-index: 2; max-width: 44em; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,0.85); }
.hero-actions { margin-top: var(--space-3); }
.hero-stats {
  margin-top: var(--space-6); display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid rgba(255,255,255,0.16); padding-top: var(--space-4);
}
.stat-num { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.6rem); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.stat-label { color: rgba(255,255,255,0.7); font-size: var(--fs-small); }

/* =========================================================
   Framework diagram (SVG-driven, no image assets required)
   ========================================================= */
.framework {
  position: relative; display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; row-gap: var(--space-4);
}
.framework::before {
  content: ""; position: absolute; left: 2%; right: 2%; top: 50px; height: 0;
  border-top: 2px dashed rgba(232, 98, 26, 0.4); z-index: 0;
}
.framework-step {
  flex: 1 1 150px; max-width: 190px; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--space-3) var(--space-2); position: relative; z-index: 1;
  border-radius: var(--radius-md); transition: background var(--dur-base) var(--ease-out);
}
.framework-step:hover { background: var(--color-orange-50); }
.framework-step .step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-orange-50); border: 2px solid var(--color-orange-400);
  color: var(--color-orange-700); font-weight: 800; margin-bottom: var(--space-2); flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
}
.framework-step:hover .step-num { background: var(--color-orange-500); color: #fff; transform: scale(1.1); }
@keyframes step-num-pop {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.3) rotate(-10deg); }
  65% { transform: scale(1.18) rotate(8deg); }
  100% { transform: scale(1.18) rotate(0deg); }
}
.step-num:hover {
  animation: step-num-pop 0.5s var(--ease-out) forwards;
  background: var(--color-orange-500); color: #fff;
  box-shadow: 0 10px 22px -6px rgba(232, 98, 26, 0.6);
}
.step-text { display: flex; flex-direction: column; align-items: center; }
.framework-step .step-label { font-weight: 700; font-size: 0.95rem; }
.step-desc {
  font-size: 0.82rem; line-height: 1.45; color: var(--color-text-muted); margin-top: 0.35rem;
  transition: color var(--dur-base) var(--ease-out);
}
.framework-step:hover .step-desc { color: var(--color-ink-700); }

@media (max-width: 900px) {
  .framework::before { display: none; }
  .framework { flex-direction: column; row-gap: var(--space-2); }
  .framework-step {
    flex-direction: row; align-items: flex-start; text-align: left; gap: var(--space-2);
    max-width: none; width: 100%;
  }
  .step-text { align-items: flex-start; }
  .framework-step .step-num { margin-bottom: 0; }
}

/* =========================================================
   Approach page — vertical timeline (deep-dive version of the
   homepage's horizontal framework diagram, same visual language:
   numbered circle + dashed connector).
   ========================================================= */
.approach-timeline { position: relative; }
.approach-timeline::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 0;
  border-left: 2px dashed rgba(232, 98, 26, 0.4); z-index: 0;
}
.approach-step { display: flex; gap: var(--space-4); position: relative; padding-bottom: var(--space-6); }
.approach-step:last-child { padding-bottom: 0; }
.approach-num {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-orange-50); border: 2px solid var(--color-orange-400);
  color: var(--color-orange-700); font-weight: 800; font-size: 1.3rem; position: relative; z-index: 1;
}
.approach-step-content { flex: 1; padding-top: 0.5rem; min-width: 0; }
.approach-step-content .pill { margin-bottom: var(--space-1); }
@media (max-width: 640px) {
  .approach-timeline::before { left: 21px; }
  .approach-num { width: 44px; height: 44px; font-size: 1.1rem; }
}

/* =========================================================
   Flow map — a milestone "journey" diagram (zigzag: row 1 left-to-right,
   row 2 right-to-left) built from the same numbered-circle language as
   the Framework diagram, for visual consistency. Pure CSS, no SVG path
   math, so it degrades safely to a vertical stack on small screens.
   ========================================================= */
.flow-map { display: flex; flex-direction: column; gap: var(--space-4); }
.flow-row { display: flex; align-items: flex-start; gap: 0; }
.flow-row--reverse { flex-direction: row-reverse; }
.flow-node {
  flex: 1 1 0; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-3); text-align: center;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.flow-node:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(20,23,26,0.25); }
.flow-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto var(--space-2); background: var(--color-orange-500); color: #fff; font-weight: 800;
  transition: transform var(--dur-base) var(--ease-out);
}
.flow-node:hover .flow-num { transform: scale(1.1); }
.flow-connector {
  flex: 0 0 40px; align-self: flex-start; height: 2px; margin-top: 46px; position: relative;
  background: repeating-linear-gradient(90deg, var(--color-orange-400) 0 8px, transparent 8px 14px);
}
/* Static arrowhead — points right for row 1, flipped to point left for the
   reversed row 2 (row 2 visually flows right-to-left). */
.flow-connector::after {
  content: ""; position: absolute; right: -1px; top: 50%; translate: 0 -50%;
  border-style: solid; border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--color-orange-400);
}
.flow-row--reverse .flow-connector::after {
  right: auto; left: -1px; border-width: 5px 7px 5px 0;
  border-color: transparent var(--color-orange-400) transparent transparent;
}
/* Traveling dot — a subtle animated pulse along the line so the direction
   of movement is unmistakable, not just implied by a static arrow. */
.flow-connector::before {
  content: ""; position: absolute; top: 50%; left: 0; width: 7px; height: 7px;
  border-radius: 50%; background: var(--color-orange-600); translate: 0 -50%;
  animation: flow-travel 2.2s linear infinite;
}
.flow-row--reverse .flow-connector::before { animation-name: flow-travel-reverse; }
@keyframes flow-travel {
  0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}
@keyframes flow-travel-reverse {
  0% { left: 100%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 0; opacity: 0; }
}
.flow-turn {
  align-self: flex-end; margin-right: calc((100% - 80px) / 6); width: 2px; height: 36px; position: relative;
  background: repeating-linear-gradient(180deg, var(--color-orange-400) 0 8px, transparent 8px 14px);
}
.flow-turn::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; translate: -50% 0;
  border-style: solid; border-width: 7px 5px 0 5px;
  border-color: var(--color-orange-400) transparent transparent transparent;
}
.flow-turn::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px;
  border-radius: 50%; background: var(--color-orange-600); translate: -50% 0;
  animation: flow-travel-vertical 2.2s linear infinite;
}
@keyframes flow-travel-vertical {
  0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; }
}
@media (max-width: 860px) {
  .flow-row, .flow-row--reverse { flex-direction: column; gap: var(--space-3); }
  .flow-connector, .flow-turn { display: none; }
}

/* =========================================================
   Case study blocks — one full-width block per row, each with a
   Problem / Solution / Outcome tab switcher. Tabs are progressive
   enhancement: without JS, all three panels are visible by default
   via the [data-js-required] rule below.
   ========================================================= */
.case-block {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--color-ink-900); border-radius: var(--radius-lg);
  padding: var(--space-4); margin-bottom: var(--space-3);
}
.case-block-header { flex: 0 0 260px; }
.case-block-header h3 { color: #fff; }
.case-block-body { flex: 1; min-width: 0; }
.case-tabs { display: none; gap: var(--space-3); border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: var(--space-3); }
.case-tab {
  background: none; border: 0; color: rgba(255,255,255,0.5); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0.7em 0; margin-bottom: -1px;
  border-bottom: 2px solid transparent; cursor: pointer; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.case-tab:hover { color: rgba(255,255,255,0.8); }
.case-tab.is-active { color: var(--color-orange-400); border-bottom-color: var(--color-orange-400); }
.case-tab-panel { display: block; margin-bottom: var(--space-2); }
.case-tab-panel p { color: rgba(255,255,255,0.8); }
.js-tabs-ready .case-tabs { display: flex; }
.js-tabs-ready .case-tab-panel { display: none; margin-bottom: 0; }
.js-tabs-ready .case-tab-panel.is-active { display: block; }
@media (max-width: 720px) {
  .case-block { flex-direction: column; }
  .case-block-header { flex: none; }
}

/* =========================================================
   Case study carousel — horizontal scroll-snap, buttons are a
   progressive enhancement (native scroll/swipe works without JS).
   ========================================================= */
.case-carousel-wrap { position: relative; }
.case-carousel {
  display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: var(--space-1) var(--space-2); scrollbar-width: none;
}
.case-carousel::-webkit-scrollbar { display: none; }
.case-carousel .tilt-card { flex: 0 0 320px; scroll-snap-align: start; }
.case-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--color-orange-400); margin: var(--space-2) 0 0.2rem;
}
.case-label:first-of-type { margin-top: var(--space-1); }
.case-metric {
  margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: baseline; gap: 0.6rem;
}
.case-metric-num { font-size: 1.6rem; font-weight: 800; color: var(--color-orange-400); line-height: 1; }
.case-metric-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.case-metrics-row {
  margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
}
.case-metrics-row .case-metric { margin-top: 0; padding-top: 0; border-top: 0; }
.case-outcome-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 0.55rem; }
.case-outcome-list li { color: rgba(255,255,255,0.8); font-size: 0.92rem; line-height: 1.5; padding-left: 1.5em; position: relative; }
.case-outcome-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-orange-400); font-weight: 800; }
.carousel-btn {
  position: absolute; top: 45%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--color-border); box-shadow: 0 12px 24px -12px rgba(20,23,26,0.3);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 2;
  color: var(--color-ink-900); transition: transform var(--dur-fast) var(--ease-out);
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); }
.carousel-btn--prev { left: -10px; }
.carousel-btn--next { right: -10px; }
@media (max-width: 640px) { .carousel-btn { display: none; } }

/* =========================================================
   3D layered card (CSS-only, no WebGL dependency)
   ========================================================= */
.tilt-card { perspective: 1200px; }
.tilt-card-inner {
  position: relative; border-radius: var(--radius-lg); background: var(--color-ink-900);
  color: #fff; padding: var(--space-4); transform-style: preserve-3d;
  transition: transform var(--dur-base) var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(20,23,26,0.45);
}
.tilt-card:hover .tilt-card-inner { transform: rotateX(4deg) rotateY(-6deg) translateY(-4px); }
.tilt-card-layer {
  position: absolute; inset: var(--space-2); border: 1px solid rgba(244,112,60,0.35);
  border-radius: var(--radius-md); transform: translateZ(24px);
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-3); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(20,23,26,0.25); }
.card .eyebrow { margin-bottom: 0.35rem; }
.tier-card { border-top: 4px solid var(--color-orange-400); }
.cause-card { padding: 0; overflow: hidden; }
.cause-picture { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.cause-picture svg { width: 100%; height: 100%; display: block; transition: transform var(--dur-slow) var(--ease-out); }
.cause-card:hover .cause-picture svg { transform: scale(1.06); }
.cause-card-body { padding: var(--space-3); }
.pill {
  display: inline-flex; align-items: center; padding: 0.3em 0.9em; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; background: var(--color-orange-100); color: var(--color-orange-700);
}
.stat-figure { font-size: 2rem; font-weight: 800; color: var(--color-accent-text); }

/* =========================================================
   Reveal-on-scroll (progressive enhancement — content is
   ALWAYS visible by default; JS only ADDS motion if it can
   guarantee a fast, safe reveal). This fixes the old site's
   5–12s invisible-content problem by construction.
   ========================================================= */
[data-reveal] { opacity: 1; transform: none; }
.js-reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
/* Directional "fly-in" variants — same mechanism, different origin.
   Set via data-reveal="left" | "right" | "scale" | "up" (default). */
.js-reveal-ready [data-reveal="left"] { transform: translateX(-70px); }
.js-reveal-ready [data-reveal="right"] { transform: translateX(70px); }
.js-reveal-ready [data-reveal="scale"] { transform: translateY(24px) scale(0.86); }
.js-reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .js-reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-split] { transform: none !important; transition: none !important; }
  .tilt-card:hover .tilt-card-inner { transform: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* Split/join connection effect — two related elements inside a
   [data-split-group] container drift apart as the container scrolls
   away from viewport-center and converge back to their natural,
   aligned layout position as it re-centers. Transform-only, desktop
   only; with no JS the elements simply sit in their normal static
   layout (no split offset is ever applied). */
[data-split] { will-change: transform; transition: transform 0.15s var(--ease-out); }
@media (max-width: 720px), (pointer: coarse) {
  [data-split] { transform: none !important; transition: none !important; }
}

/* Parallax layers — desktop only, disabled on touch/small screens */
[data-parallax] { will-change: transform; }
@media (max-width: 720px), (pointer: coarse) {
  [data-parallax] { transform: none !important; }
}

/* Decorative parallax blobs — used to add depth to otherwise-flat
   sections without any image assets. Purely decorative (aria-hidden),
   sit behind content via z-index, and inherit the reduced-motion /
   touch-device opt-outs from [data-parallax] above. */
.section-shape {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(50px);
}
.section-shape--orange {
  background: radial-gradient(circle at 35% 35%, rgba(232,98,26,0.35), transparent 70%);
}
.section-shape--ink {
  background: radial-gradient(circle at 35% 35%, rgba(20,23,26,0.16), transparent 70%);
}
.section > .container { position: relative; z-index: 1; }

/* Tilt-card text tone (the tilt-card is dark by default — see
   .tilt-card-inner above — so headings/body copy need a light tone
   when used for content cards, e.g. Case Studies) */
.tilt-card-inner h3, .tilt-card-inner .eyebrow { color: #fff; }
.tilt-card-inner .text-muted { color: rgba(255,255,255,0.72); }

/* Big branded cursor — a normal arrow shape, just larger and on-brand,
   desktop precise-pointer only (touch devices keep their native cursor). */
@media (pointer: fine) {
  html {
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5 19 11l-6.6 1.6L9.3 19 4 2.5z' fill='%2314171a' stroke='%23ffffff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-ink-900); color: rgba(255,255,255,0.85); padding-block: var(--space-6) var(--space-4); }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-2); }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--color-orange-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-bottom {
  margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; color: rgba(255,255,255,0.55); font-size: var(--fs-small);
}

/* Partner badge — PDX2027 (Penang Digitalisation). Logo sits on its own
   light chip so its original colours stay legible against the dark
   footer, without altering the source image itself. */
.footer-partner {
  margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
}
.footer-partner-badge {
  display: inline-flex; align-items: center; background: #fff; border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem; transition: transform var(--dur-fast) var(--ease-out);
}
.footer-partner-badge:hover { transform: translateY(-2px); }
.footer-partner-badge img { height: 20px; width: auto; display: block; }
.footer-partner span { color: rgba(255,255,255,0.65); font-size: var(--fs-small); max-width: 32em; }

/* =========================================================
   WhatsApp floating button
   ========================================================= */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%; background: #1ea952; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(30,169,82,0.6);
  transition: transform var(--dur-fast) var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-accent-text); }
