/* ============================================================
   Sugarush Web Technologies — main stylesheet
   Replicates the design system from the original prototypes
   using pure CSS (no React/_ds_bundle.js)
   ============================================================ */

/* ---------- Design tokens (mirror _ds/tokens/*.css) ---------- */
:root {
  /* colors */
  --brand-teal: #2BB6CC; --brand-teal-dark: #1A8FA3;
  --brand-blue: #1D4E8F;
  --brand-magenta: #C23E8B; --brand-magenta-dark: #9C2B6E;
  --brand-purple: #5B3C8E;

  --ink-900: #12141A; --ink-800: #1B1E27; --ink-700: #2B2F3B;
  --ink-500: #5B6070; --ink-300: #9AA0AF; --ink-200: #C7CBD4;
  --ink-100: #E6E8ED; --ink-50: #F4F5F8;
  --white: #FFFFFF;

  --surface-page: #FBFBFD; --surface-card: #FFFFFF;
  --surface-sunken: #F4F5F8; --surface-inverse: #12141A;

  --text-heading: var(--ink-900); --text-body: var(--ink-700);
  --text-muted: var(--ink-500); --text-on-brand: #FFFFFF;
  --text-link: var(--brand-magenta-dark); --text-link-hover: var(--brand-purple);

  --border-subtle: var(--ink-100); --border-default: var(--ink-200); --border-strong: var(--ink-500);

  --accent-gradient: linear-gradient(120deg, var(--brand-teal) 0%, var(--brand-blue) 38%, var(--brand-purple) 68%, var(--brand-magenta) 100%);
  --accent-gradient-soft: linear-gradient(120deg, rgba(43,182,204,.12) 0%, rgba(29,78,143,.12) 40%, rgba(91,60,142,.12) 70%, rgba(194,62,139,.12) 100%);

  --state-success: #1F9D6B; --state-warning: #C98A1E; --state-danger: #D0426A; --state-info: var(--brand-blue);
  --focus-ring: 0 0 0 3px rgba(43,182,204,.35);

  /* typography */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --fs-h1: 56px; --fs-h2: 40px; --fs-h3: 28px; --fs-h4: 22px;
  --fs-body-lg: 19px; --fs-body: 16px; --fs-body-sm: 14px;
  --fs-caption: 12px; --fs-mono: 14px;

  --lh-tight: 1.1; --lh-snug: 1.3; --lh-normal: 1.55; --lh-relaxed: 1.7;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;
  --fw-bold: 700; --fw-extrabold: 800;
  --ls-tight: -0.02em; --ls-wide: 0.08em;

  /* spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18,20,26,.06);
  --shadow-md: 0 4px 16px rgba(18,20,26,.08);
  --shadow-lg: 0 12px 32px rgba(18,20,26,.12);
  --shadow-brand: 0 12px 32px rgba(91,60,142,.18);

  --container-max: 1400px;
}

/* ---------- Base reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  margin: 0;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}
p { margin: 0 0 1em; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
code, pre { font-family: var(--font-mono); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--space-6); }
.text-muted { color: var(--text-muted); }

/* ---------- Nav (sticky) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,253,.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; gap: var(--space-7); }
.nav-links a {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink-500);
}
.nav-links a.active, .nav-links a:hover { color: var(--ink-900); }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  transition: background 180ms ease;
}
.nav-toggle:hover { background: var(--surface-muted, #f3f4f6); }
.nav-toggle:focus-visible { outline: 2px solid var(--brand-emerald, #1F7A55); outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink-900, #111);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 200ms ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu (hidden on desktop) */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-5) var(--space-5);
  background: var(--surface-base, #fff);
  border-top: 1px solid var(--border-subtle, #e5e7eb);
}
.nav-mobile a {
  display: block;
  padding: 12px 8px;
  font-size: var(--fs-body, 16px);
  font-weight: var(--fw-semibold, 600);
  color: var(--ink-700, #374151);
  text-decoration: none;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease;
}
.nav-mobile a:hover, .nav-mobile a:focus-visible {
  background: var(--surface-muted, #f3f4f6);
  color: var(--ink-900, #111);
  outline: none;
}
.nav-mobile a.active { color: var(--brand-emerald, #1F7A55); }
.nav-mobile-cta { margin-top: 8px; text-align: center; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile.is-open { display: flex; }
  .nav-inner { padding: var(--space-4) var(--space-5); }
  /* Lock body scroll when menu open */
  body.nav-menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  border: none; cursor: pointer;
  border-radius: var(--radius-pill);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn[disabled] { cursor: not-allowed; opacity: .6; transform: none; }
.btn-primary {
  background: var(--ink-900); color: #fff;
  background-image: var(--accent-gradient);
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position .4s ease, transform .15s ease;
}
.btn-primary:hover { background-position: 100% 100%; color: #fff; }
.btn-on-dark {
  background: #fff;
  color: var(--brand-blue);
  font-weight: var(--fw-bold);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-on-dark:hover { background: #f3f4f6; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink-900);
  color: var(--ink-900);
}
.btn-outline:hover { background: var(--ink-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--surface-sunken); color: var(--ink-900); }
.btn-lg { font-size: 15px; padding: 14px 26px; }
.btn-md { font-size: 14px; padding: 11px 20px; }
.btn-sm { font-size: 13px; padding: 9px 16px; }
.btn-block { width: 100%; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand-magenta-dark);
  background: rgba(194,62,139,.08);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ---------- Card ---------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-eyebrow {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand-magenta-dark);
}
.card-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 17px;
  color: var(--ink-900);
  margin: 0;
  letter-spacing: var(--ls-tight);
}
/* ===== Case study carousel (home page) ===== */
.cs-carousel-section {
  position: relative;
}
.cs-carousel {
  --cs-scale: clamp(0.3, calc((100vw - 64px) / 1400px), 1);
  --cs-base-w: 970px;
  --cs-base-h: 660px;
  position: relative;
  margin-top: 8px;
  max-width: 100%;
}
.cs-carousel-viewport {
  perspective: 1600px;
  perspective-origin: 50% 50%;
  position: relative;
  height: calc(720px * var(--cs-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.cs-carousel-track {
  position: relative;
  width: 970px;
  height: 660px;
  transform-style: preserve-3d;
  transform: scale(var(--cs-scale));
  transform-origin: center center;
}
.cs-slide {
  position: absolute;
  inset: 0;
  width: 970px;
  height: 660px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  box-shadow: 0 30px 80px -32px rgba(15, 23, 42, 0.45);
  transition: transform .7s cubic-bezier(.65, 0, .35, 1), opacity .55s ease, box-shadow .7s ease;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  /* themes also set --cs-bg, --cs-accent, etc */
}
/* === 3D coverflow positions === */
.cs-slide[data-pos="0"] {
  transform: translateX(0) translateZ(0) rotateY(0) scale(1);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 40px 100px -30px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cs-slide[data-pos="-1"] {
  transform: translateX(-460px) translateZ(-160px) rotateY(28deg) scale(.92);
  opacity: .7;
  z-index: 3;
  box-shadow: 0 30px 80px -32px rgba(15, 23, 42, 0.35);
  pointer-events: auto;
}
.cs-slide[data-pos="1"] {
  transform: translateX(460px) translateZ(-160px) rotateY(-28deg) scale(.92);
  opacity: .7;
  z-index: 3;
  box-shadow: 0 30px 80px -32px rgba(15, 23, 42, 0.35);
  pointer-events: auto;
}
.cs-slide[data-pos="-2"],
.cs-slide[data-pos="2"],
.cs-slide[data-pos="3"],
.cs-slide[data-pos="-3"],
.cs-slide[data-pos="4"],
.cs-slide[data-pos="-4"] {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.cs-slide[data-pos="-2"] { transform: translateX(-720px) translateZ(-420px) rotateY(36deg) scale(.82); }
.cs-slide[data-pos="2"]  { transform: translateX(720px)  translateZ(-420px) rotateY(-36deg) scale(.82); }
.cs-slide[data-pos="-3"] { transform: translateX(-900px) translateZ(-600px) rotateY(40deg) scale(.72); }
.cs-slide[data-pos="3"]  { transform: translateX(900px)  translateZ(-600px) rotateY(-40deg) scale(.72); }
/* hover lift on side cards */
.cs-slide[data-pos="-1"]:hover,
.cs-slide[data-pos="1"]:hover {
  opacity: .9;
  cursor: pointer;
}
/* === TOP: dark gradient section (rounded top only) === */
.cs-slide-top {
  position: relative;
  padding: 48px 56px 44px;
  background: var(--cs-bg, #0F172A);
  color: #fff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.cs-slide-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: var(--cs-glow, radial-gradient(circle, rgba(194,62,139,0.45) 0%, transparent 70%));
  border-radius: 50%;
  z-index: 0;
  filter: blur(20px);
  pointer-events: none;
}
.cs-slide-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.cs-slide-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}
.cs-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cs-slide-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-accent, #C23E8B);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.10);
}
.cs-slide-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
.cs-slide-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff !important;
  margin: 0;
  max-width: 460px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 0, 0, 0.25);
}
.cs-slide-checks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cs-slide-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.cs-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cs-accent, #C23E8B);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.cs-check-icon svg {
  width: 12px;
  height: 12px;
}
.cs-slide-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 22px 12px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #F5F3FF 100%);
  color: #5B21B6;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.005em;
  box-shadow:
    0 6px 20px -4px rgba(91, 33, 182, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 24px -4px rgba(167, 139, 250, 0.45);
  transition: gap .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  isolation: isolate;
  animation: cs-cta-pulse 2.4s ease-in-out infinite;
}
.cs-slide-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    #A855F7 0%,
    #F472B6 25%,
    #FBBF24 50%,
    #34D399 75%,
    #A855F7 100%
  );
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
  animation: cs-cta-slide 3.5s linear infinite;
  opacity: 1;
}
.cs-slide-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: cs-cta-shine 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.cs-slide-cta:hover {
  color: #4338CA;
  gap: 12px;
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 12px 28px -4px rgba(91, 33, 182, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 0 32px -2px rgba(167, 139, 250, 0.7);
  animation: none;
}
.cs-slide-cta-arrow {
  font-size: 16px;
  transition: transform .25s ease;
  display: inline-block;
}
.cs-slide-cta:hover .cs-slide-cta-arrow {
  transform: translateX(4px);
}

/* CTA attention animations */
@keyframes cs-cta-pulse {
  0%, 100% {
    box-shadow:
      0 6px 20px -4px rgba(91, 33, 182, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.5) inset,
      0 0 24px -4px rgba(167, 139, 250, 0.45);
  }
  50% {
    box-shadow:
      0 8px 24px -4px rgba(91, 33, 182, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.6) inset,
      0 0 36px -2px rgba(167, 139, 250, 0.7);
  }
}
@keyframes cs-cta-slide {
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes cs-cta-shine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-slide-cta,
  .cs-slide-cta::before,
  .cs-slide-cta::after { animation: none !important; }
}

/* Right column: image / device frame */
.cs-slide-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.cs-slide-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  perspective: 1400px;
}
.cs-slide-screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.50),
    0 0 0 8px rgba(255,255,255,0.05),
    0 0 0 9px rgba(255,255,255,0.15);
  transform: rotateY(-6deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
}
.cs-carousel:hover .cs-slide-screen {
  transform: rotateY(-3deg) rotateX(1deg);
}
.cs-slide-screen img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
}
.cs-slide-screen-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}
.cs-slide-frame-base {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 18px;
  background: rgba(255,255,255,0.10);
  border-radius: 0 0 22px 22px;
  filter: blur(8px);
  z-index: 1;
}
.cs-slide-frame-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-slide-screen-empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.20);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.40);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* === BOTTOM: white section (rounded bottom only) — role cards + CTA === */
.cs-slide-bottom {
  position: relative;
  background: #FFFFFF;
  border-radius: 0 0 24px 24px;
  padding: 28px 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border-subtle, #E5E7EB);
  border-top: 0;
}
.cs-slide-roles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
.cs-slide-role {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 18px;
  position: relative;
  transition: transform .25s ease;
}
.cs-slide-role + .cs-slide-role::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #E5E7EB;
}
.cs-slide-role:first-child { padding-left: 0; }
.cs-slide-role:last-child  { padding-right: 0; }
.cs-slide-role:hover { transform: translateY(-1px); }
.cs-slide-role-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #EDE9FE;
  color: #5B21B6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.cs-slide-role-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.cs-slide-role-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cs-slide-role-name {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cs-slide-role-desc {
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  line-height: 1.45;
  text-wrap: pretty;
}
/* CTA in the white section: keep it left-aligned under role cards */
.cs-slide-bottom > .cs-slide-cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* Arrow nav */
.cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #0F172A;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.30), 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background .25s ease;
}
.cs-arrow:hover {
  background: var(--cs-accent, #C23E8B);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.40);
}
.cs-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.cs-arrow svg {
  width: 20px;
  height: 20px;
}
.cs-arrow-prev { left: 20px; }
.cs-arrow-next { right: 20px; }

/* Pagination dots */
.cs-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.cs-dot {
  position: relative;
  width: 32px;
  height: 6px;
  background: rgba(15, 23, 42, 0.10);
  border: 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: width .4s cubic-bezier(.34,1.56,.64,1), background .25s ease;
}
.cs-dot:hover {
  background: rgba(15, 23, 42, 0.20);
}
.cs-dot.active {
  width: 56px;
  background: rgba(15, 23, 42, 0.18);
}
.cs-dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-magenta), var(--brand-purple));
  border-radius: 999px;
  transition: width .15s linear;
}
.cs-dot.active .cs-dot-fill {
  width: 100%;
  /* Animate based on autoplay duration */
  transition: width var(--cs-progress, 7s) linear;
}

/* Slide themes (cycle through) */
.cs-slide-theme-0 {
  --cs-bg: linear-gradient(135deg, #1E1B4B 0%, #4F46E5 60%, #7B2FA0 100%);
  --cs-glow: radial-gradient(circle, rgba(194,62,139,0.40) 0%, transparent 70%);
  --cs-accent: #F472B6;
}
.cs-slide-theme-1 {
  --cs-bg: linear-gradient(135deg, #134E4A 0%, #1AA3BD 60%, #2F7AC8 100%);
  --cs-glow: radial-gradient(circle, rgba(26,163,189,0.45) 0%, transparent 70%);
  --cs-accent: #5EEAD4;
}
.cs-slide-theme-2 {
  --cs-bg: linear-gradient(135deg, #1E3A8A 0%, #2F7AC8 60%, #1AA3BD 100%);
  --cs-glow: radial-gradient(circle, rgba(47,122,200,0.45) 0%, transparent 70%);
  --cs-accent: #93C5FD;
}
.cs-slide-theme-3 {
  --cs-bg: linear-gradient(135deg, #4C1D95 0%, #C23E8B 60%, #F472B6 100%);
  --cs-glow: radial-gradient(circle, rgba(244,114,182,0.40) 0%, transparent 70%);
  --cs-accent: #FCD34D;
}
.cs-slide-theme-4 {
  --cs-bg: linear-gradient(135deg, #064E3B 0%, #1F8A62 60%, #1AA3BD 100%);
  --cs-glow: radial-gradient(circle, rgba(31,138,98,0.45) 0%, transparent 70%);
  --cs-accent: #6EE7B7;
}
.cs-slide-theme-5 {
  --cs-bg: linear-gradient(135deg, #581C87 0%, #7B2FA0 50%, #4F46E5 100%);
  --cs-glow: radial-gradient(circle, rgba(123,47,160,0.45) 0%, transparent 70%);
  --cs-accent: #C4B5FD;
}

.cs-carousel-empty {
  padding: 60px 20px;
  text-align: center;
  background: var(--surface-sunken);
  border: 1px dashed var(--border-default);
  border-radius: 18px;
  color: var(--text-muted);
}

/* Responsive: laptop screens — keep arrows inside container */
@media (max-width: 1280px) {
  .cs-arrow-prev { left: 12px; }
  .cs-arrow-next { right: 12px; }
}
@media (max-width: 1100px) {
  .cs-arrow-prev { left: 4px; }
  .cs-arrow-next { right: 4px; }
}

/* Responsive */
@media (max-width: 960px) {
  .cs-slide-top {
    padding: 36px 28px 32px;
  }
  .cs-slide-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cs-slide-image {
    min-height: 240px;
  }
  .cs-slide-screen img {
    max-height: 240px;
  }
  .cs-slide-bottom {
    padding: 24px 24px 22px;
  }
  .cs-slide-roles {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }
  .cs-slide-role:nth-child(2)::before { display: none; }
  .cs-slide-role:nth-child(3) { padding-left: 0; }
  .cs-slide-role:nth-child(3)::before { display: block; }
  .cs-arrow-prev { left: 8px; }
  .cs-arrow-next { right: 8px; }
}
@media (max-width: 560px) {
  .cs-slide-top { padding: 28px 20px 24px; }
  .cs-slide-title { font-size: 28px; }
  .cs-slide-roles { grid-template-columns: 1fr; }
  .cs-slide-role + .cs-slide-role::before { display: none; }
  .cs-slide-role { padding: 12px 0; border-bottom: 1px solid #F1F1F4; }
  .cs-slide-role:last-child { border-bottom: 0; }
  .cs-arrow { width: 40px; height: 40px; }
  .cs-arrow svg { width: 16px; height: 16px; }
}
/* Mobile: full-width card, readable text, no 3D coverflow */
@media (max-width: 640px) {
  /* reset scale and 3D context */
  .cs-carousel { --cs-scale: 1; }
  .cs-carousel-viewport {
    height: auto;
    min-height: 0;
    perspective: none;
    overflow: visible;
  }
  .cs-carousel-track {
    width: 100%;
    height: auto;
    transform: none;
    transform-style: flat;
  }

  /* active slide: normal flow, full width */
  .cs-slide[data-pos="0"] {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
    opacity: 1;
    z-index: 5;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.30), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  /* hide all non-active slides */
  .cs-slide[data-pos="-1"],
  .cs-slide[data-pos="1"],
  .cs-slide[data-pos="-2"],
  .cs-slide[data-pos="2"],
  .cs-slide[data-pos="3"],
  .cs-slide[data-pos="-3"],
  .cs-slide[data-pos="-4"],
  .cs-slide[data-pos="4"] {
    display: none;
  }

  /* top section */
  .cs-slide-top {
    padding: 24px 20px 20px;
    border-radius: 20px 20px 0 0;
  }
  .cs-slide-glow { width: 280px; height: 280px; top: -80px; right: -80px; }
  .cs-slide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* typography */
  .cs-slide-badge {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 10px;
  }
  .cs-slide-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .cs-slide-sub {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .cs-slide-checks {
    gap: 8px;
    margin-top: 0;
  }
  .cs-slide-checks li {
    font-size: 13px;
    gap: 8px;
    line-height: 1.45;
  }
  .cs-check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .cs-check-icon svg { width: 12px; height: 12px; }

  /* image */
  .cs-slide-image {
    min-height: auto;
    margin-top: 4px;
  }
  .cs-slide-frame {
    max-width: 100%;
    perspective: none;
  }
  .cs-slide-screen {
    transform: none;
    border-radius: 12px;
    box-shadow:
      0 14px 30px -12px rgba(0,0,0,0.40),
      0 0 0 6px rgba(255,255,255,0.05),
      0 0 0 7px rgba(255,255,255,0.12);
  }
  .cs-slide-screen img {
    max-height: 200px;
  }
  .cs-slide-frame-base { display: none; }

  /* bottom section */
  .cs-slide-bottom {
    padding: 18px 20px 20px;
    border-radius: 0 0 20px 20px;
    gap: 14px;
  }
  .cs-slide-roles {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cs-slide-role {
    padding: 10px 0;
    gap: 10px;
  }
  .cs-slide-role + .cs-slide-role::before { display: none; }
  .cs-slide-role-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .cs-slide-role-icon svg { width: 16px; height: 16px; }
  .cs-slide-role-name { font-size: 13px; }
  .cs-slide-role-desc { font-size: 11px; line-height: 1.4; }

  /* CTA */
  .cs-slide-cta {
    font-size: 13px;
    padding: 11px 18px;
    align-self: stretch;
    justify-content: center;
  }

  /* arrows */
  .cs-arrow-prev { left: 6px; }
  .cs-arrow-next { right: 6px; }
  .cs-arrow { width: 38px; height: 38px; }
  .cs-arrow svg { width: 16px; height: 16px; }

  /* dots */
  .cs-dots { margin-top: 18px; gap: 6px; }
  .cs-dot { width: 24px; height: 5px; }
  .cs-dot.active { width: 40px; }
}

/* ===== Service cards (home page) — premium themed ===== */
.card-service {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .4s cubic-bezier(.34,1.56,.64,1),
    box-shadow .4s ease,
    border-color .35s ease,
    background .35s ease;
}
.card-service-bg {
  position: absolute;
  inset: 0;
  background: var(--theme-blob, transparent);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity .4s ease, transform .6s ease;
}
.card-service::before {
  /* Top gradient accent bar */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--theme-grad, var(--brand-teal));
  z-index: 3;
  transform-origin: left;
  transition: transform .5s ease;
}
.card-service::after {
  /* Subtle dotted pattern at bottom-right */
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 110px;
  height: 110px;
  background-image:
    radial-gradient(circle, var(--theme-color, var(--brand-teal)) 1.2px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  -webkit-mask-image: linear-gradient(135deg, transparent 30%, black 100%);
  mask-image: linear-gradient(135deg, transparent 30%, black 100%);
}
.card-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px -18px rgba(0,0,0,0.20), 0 4px 12px -6px rgba(0,0,0,0.05);
  border-color: var(--theme-color, var(--border-default));
  background: linear-gradient(180deg, #FFFFFF 0%, var(--theme-tint, transparent) 100%);
}
.card-service:hover::before { transform: scaleX(1.4); }
.card-service:hover::after { opacity: 0.18; }
.card-service:hover .card-service-bg {
  opacity: 0.85;
  transform: scale(1.15);
}

.card-service-icon {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--theme-tint, var(--surface-sunken));
  color: var(--theme-color, var(--ink-900));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition:
    transform .4s cubic-bezier(.34,1.56,.64,1),
    background .3s ease,
    color .3s ease;
}
.card-service-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}
.card-service:hover .card-service-icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--theme-color, var(--ink-900));
  color: #fff;
}
.card-service .card-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--theme-color, var(--ink-700)) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px !important;
}
.card-service .card-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.7;
}
.card-service .card-title {
  position: relative;
  z-index: 1;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--ink-900);
  margin: 0 0 12px !important;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color .3s ease;
}
.card-service:hover .card-title {
  color: var(--theme-color, var(--ink-900));
}
.card-service .card-desc {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.card-service-arrow {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--theme-tint, var(--surface-sunken));
  color: var(--theme-color, var(--ink-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  z-index: 1;
  transition:
    transform .4s cubic-bezier(.34,1.56,.64,1),
    background .25s ease,
    color .25s ease;
  line-height: 1;
}
.card-service:hover .card-service-arrow {
  transform: translate(4px, -4px) scale(1.08);
  background: var(--theme-color, var(--ink-900));
  color: #fff;
}

/* Override list dots in service cards to use theme color */
.card-service .card-desc ul li::before {
  background: var(--theme-grad, var(--brand-teal)) !important;
  box-shadow: 0 0 0 3px var(--theme-tint, transparent) !important;
}
.card-service .card-desc p.desc-lead strong {
  color: var(--theme-color, var(--ink-900));
}

/* Theme variables for each color scheme */
.card-theme-teal {
  --theme-color: #1AA3BD;
  --theme-color-dark: #117888;
  --theme-tint: rgba(26, 163, 189, 0.08);
  --theme-grad: linear-gradient(90deg, #1AA3BD 0%, #2F7AC8 100%);
  --theme-blob: radial-gradient(circle at 80% 0%, rgba(26,163,189,0.16) 0%, transparent 65%);
}
.card-theme-purple {
  --theme-color: #7B2FA0;
  --theme-color-dark: #5A2180;
  --theme-tint: rgba(123, 47, 160, 0.08);
  --theme-grad: linear-gradient(90deg, #7B2FA0 0%, #4F46E5 100%);
  --theme-blob: radial-gradient(circle at 80% 0%, rgba(123,47,160,0.16) 0%, transparent 65%);
}
.card-theme-magenta {
  --theme-color: #C23E8B;
  --theme-color-dark: #9B2C6E;
  --theme-tint: rgba(194, 62, 139, 0.08);
  --theme-grad: linear-gradient(90deg, #C23E8B 0%, #7B2FA0 100%);
  --theme-blob: radial-gradient(circle at 80% 0%, rgba(194,62,139,0.16) 0%, transparent 65%);
}
.card-theme-blue {
  --theme-color: #2F7AC8;
  --theme-color-dark: #1F5FA0;
  --theme-tint: rgba(47, 122, 200, 0.08);
  --theme-grad: linear-gradient(90deg, #2F7AC8 0%, #4F46E5 100%);
  --theme-blob: radial-gradient(circle at 80% 0%, rgba(47,122,200,0.16) 0%, transparent 65%);
}
.card-theme-amber {
  --theme-color: #D97706;
  --theme-color-dark: #B45309;
  --theme-tint: rgba(217, 119, 6, 0.08);
  --theme-grad: linear-gradient(90deg, #D97706 0%, #DC2626 100%);
  --theme-blob: radial-gradient(circle at 80% 0%, rgba(217,119,6,0.16) 0%, transparent 65%);
}
.card-theme-emerald {
  --theme-color: #1F8A62;
  --theme-color-dark: #156549;
  --theme-tint: rgba(31, 138, 98, 0.08);
  --theme-grad: linear-gradient(90deg, #1F8A62 0%, #1AA3BD 100%);
  --theme-blob: radial-gradient(circle at 80% 0%, rgba(31,138,98,0.16) 0%, transparent 65%);
}

/* Allow inline rich content (paragraphs, lists, bold) in card-desc */
.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin: 0;
}
.card-desc p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.card-desc p:last-child { margin-bottom: 0; }
.card-desc p.desc-lead {
  margin: 12px 0 6px;
}
.card-desc p.desc-lead strong {
  color: var(--ink-900);
  font-weight: 700;
}
.card-desc strong {
  color: var(--ink-900);
  font-weight: 700;
}
.card-desc ul {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-desc ul li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.card-desc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-magenta) 0%, var(--brand-purple) 100%);
  box-shadow: 0 0 0 3px rgba(194, 62, 139, 0.10);
}
.card-desc ul.ol-style { counter-reset: ol-counter; }
.card-desc ul.ol-style li { counter-increment: ol-counter; padding-left: 22px; }
.card-desc ul.ol-style li::before {
  content: counter(ol-counter) ".";
  background: none;
  box-shadow: none;
  width: auto;
  height: auto;
  top: 0;
  color: var(--brand-magenta-dark);
  font-weight: 700;
  font-size: 12px;
}
.card-with-image {
  padding: 0;
  overflow: hidden;
}
.card-with-image .card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.card-with-image .card-body {
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: 8px;
}
.card-with-image.lg .card-image { height: 200px; }
.card-with-image.xl .card-image { height: 240px; }

/* ---------- Form inputs ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.form-label { font-size: var(--fs-body-sm); font-weight: var(--fw-bold); color: var(--ink-900); }
.form-input, .form-textarea, .form-select {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default);
  font-size: var(--fs-body);
  font-family: inherit;
  background: var(--surface-card);
  color: var(--ink-900);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: var(--focus-ring);
}
.form-textarea { min-height: 110px; resize: vertical; line-height: var(--lh-relaxed); }

/* ---------- Section spacing ---------- */
.section { padding: var(--space-9) var(--space-6); }
.section-tight { padding: var(--space-7) var(--space-6); }
@media (max-width: 480px) {
  .section { padding: var(--space-7) var(--space-4); }
  .section-tight { padding: var(--space-6) var(--space-4); }
}
.section-eyebrow {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand-magenta-dark);
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  color: var(--ink-900);
  letter-spacing: var(--ls-tight);
  margin: 12px 0;
}
.section-lead { color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-relaxed); margin: 0; }

/* "Aside" variant of the lead paragraph — sits beside a section title
   in a split-header layout. Wider, darker, with a subtle accent rail
   for a more editorial / magazine feel. */
.section-lead-aside {
  max-width: 520px;
  min-width: 260px;
  flex: 1 1 320px;
  font-size: 15.5px;
  line-height: 1.72;
  color: #475569;
  font-weight: 500;
  letter-spacing: -0.008em;
  position: relative;
  padding-left: 18px;
  margin: 0;
  text-wrap: pretty;
  hyphens: none;
  border-left: 2px solid var(--brand-magenta);
  background: linear-gradient(90deg, rgba(194, 62, 139, 0.05) 0%, transparent 60%);
  border-radius: 2px;
}
.section-lead-aside::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 24px;
  background: var(--brand-magenta);
  border-radius: 2px;
}
@media (max-width: 720px) {
  .section-lead-aside {
    max-width: 100%;
    font-size: 15px;
    padding-left: 14px;
  }
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); max-width: var(--container-max); margin: 0 auto; width: 100%; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); max-width: var(--container-max); margin: 0 auto; width: 100%; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Hero (beranda) ---------- */
.hero-bg {
  background: linear-gradient(120deg, #ffffff 0%, rgba(29,78,143,.16) 28%, rgba(91,60,142,.18) 58%, rgba(194,62,139,.16) 82%, #ffffff 100%);
  background-size: 300% 300%;
  animation: heroBgMove 22s ease infinite;
}
@keyframes heroBgMove { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes fadeUp { from{opacity:0; transform:translateY(18px)} to{opacity:1; transform:translateY(0)} }

.hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 88px var(--space-6) 56px;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-content { animation: fadeUp .7s ease both; }
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--ink-900);
  margin: 20px 0 18px;
}
.hero h1 .gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 56px var(--space-5) 40px; }
}

/* Hero 3D slides */
.hero-slides { position: relative; height: 440px; }
.hero-slides::before {
  content: ""; position: absolute; inset: -28px;
  background: var(--accent-gradient-soft);
  border-radius: var(--radius-xl);
  filter: blur(6px);
}
.hero-slides-frame { position: relative; width: 100%; height: 100%; perspective: 1400px; }
.hero-slide {
  position: absolute; top: 50%; left: 50%;
  width: 64%; height: 88%;
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .7s ease;
  cursor: pointer;
}
.hero-slide-inner {
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background-size: cover;
  background-position: center;
}
.hero-slide-empty {
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px dashed var(--border-default);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; font-weight: var(--fw-semibold);
  text-align: center; padding: 20px;
}

/* Mobile: full-width slides (3D side peeks are off-screen anyway) */
@media (max-width: 760px) {
  .hero-slides { height: 340px; }
  .hero-slide  { width: 100%; }
  .hero-slide-empty { font-size: 13px; padding: 16px; }
}
.hero-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.hero-dot {
  height: 6px; border-radius: 4px;
  background: rgba(255,255,255,.5);
  cursor: pointer; transition: width .3s ease, background .3s ease;
  width: 6px;
}
.hero-dot.active { background: #fff; width: 22px; }

/* Marquee */
.marquee-wrap {
  padding: 26px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--surface-sunken);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 22s linear infinite;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.marquee-item {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 15px;
  color: var(--ink-500);
  white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
}
.marquee-item::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-magenta);
}

/* ---------- Process / workflow ---------- */
/* Process section: light grey + very light purple animated gradient */
.process-section {
  position: relative;
  isolation: isolate;
  background: #F6F7FA;
  border-radius: 24px;
  overflow: hidden;
}
.process-section::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(91, 60, 142, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(194, 62, 139, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(43, 182, 204, 0.05) 0%, transparent 60%);
  animation: processGradientDrift 18s ease-in-out infinite alternate;
}
@keyframes processGradientDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, -2%) scale(1.05); }
  100% { transform: translate(-2%, 2%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .process-section::before { animation: none; }
}
.process-step { text-align: center; padding: 0 10px; }
.process-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-card);
  border: 2px solid var(--brand-purple);
  color: var(--brand-purple);
  font-family: var(--font-mono);
  font-weight: var(--fw-bold); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.process-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 14.5px; color: var(--ink-900); margin-bottom: 6px; }
.process-desc { font-size: 12.5px; color: var(--text-muted); line-height: var(--lh-relaxed); }

/* ---------- Scoping quiz ---------- */
.scoping {
  max-width: 760px; margin: 0 auto;
  padding: var(--space-9) var(--space-6) 100px;
}
.scoping-box {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.scoping-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; }
.scoping-progress span {
  width: 26px; height: 4px; border-radius: 4px;
  background: var(--border-subtle);
}
.scoping-progress span.active { background: var(--accent-gradient); }
.scoping-question {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  color: var(--ink-900);
  text-align: center; margin-bottom: 22px;
}
.scoping-option {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.scoping-option:hover { border-color: var(--brand-purple); }
.scoping-option.selected { border-color: var(--brand-purple); background: var(--surface-sunken); }
.scoping-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-default);
  flex-shrink: 0;
  transition: border .15s ease, box-shadow .15s ease;
}
.scoping-option.selected .scoping-radio {
  border: 5px solid var(--brand-purple);
}
.scoping-option-title { font-size: 14.5px; font-weight: var(--fw-semibold); color: var(--ink-900); }
.scoping-option-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.scoping-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

/* Step counter (e.g. "1 DARIPADA 4") */
.scoping-step-counter {
  display: inline-block;
  font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  color: var(--brand-blue);
  background: rgba(29, 78, 143, 0.10);
  padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.scoping-sub {
  color: var(--text-muted);
  font-size: 14px; line-height: 1.55;
  margin: -8px 0 22px;
}

/* Category list (with price column) */
.scoping-list { display: flex; flex-direction: column; gap: 0; }
.scoping-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}
.scoping-list-item:first-child { border-top: 1px solid var(--border-subtle); border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
.scoping-list-item:last-child { border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); border-bottom: 1px solid var(--border-subtle); }
.scoping-list-item:hover { background: var(--surface-sunken); }
.scoping-list-item.selected { background: rgba(91, 60, 142, 0.06); }
.scoping-list-label { font-size: 14.5px; font-weight: var(--fw-semibold); color: var(--ink-900); }
.scoping-list-price { font-size: 14px; font-weight: var(--fw-bold); color: var(--brand-blue); font-variant-numeric: tabular-nums; }

/* Checkbox list (modules + extras) */
.scoping-checks { display: flex; flex-direction: column; gap: 8px; }
.scoping-check {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}
.scoping-check:hover { border-color: var(--brand-purple); background: rgba(91, 60, 142, 0.03); }
.scoping-check.selected { border-color: var(--brand-purple); background: rgba(91, 60, 142, 0.06); }
.scoping-check input { position: absolute; opacity: 0; pointer-events: none; }
.scoping-check-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border-default);
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}
.scoping-check.selected .scoping-check-box {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
}
.scoping-check.selected .scoping-check-box::after {
  content: ''; position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.scoping-check-label { flex: 1; font-size: 14.5px; font-weight: var(--fw-semibold); color: var(--ink-900); }
.scoping-check-price { font-size: 13.5px; font-weight: var(--fw-bold); color: var(--brand-blue); font-variant-numeric: tabular-nums; }

/* Live price calculator banner */
.scoping-live {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px;
  padding: 14px 18px;
  background: linear-gradient(120deg, rgba(29, 78, 143, 0.08), rgba(91, 60, 142, 0.08));
  border: 1px solid rgba(91, 60, 142, 0.18);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}
.scoping-live strong {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}

/* Result screen */
#resultArea { text-align: center; }
.rec-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: var(--fw-semibold);
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.rec-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 22px;
  color: var(--ink-900);
  margin: 0 0 10px;
  line-height: 1.3;
}
.rec-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 22px;
}
.rec-breakdown {
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 0;
  margin: 0 0 18px;
  text-align: left;
}
.rec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.rec-row:last-child { border-bottom: none; }
.rec-row-label { font-size: 14px; color: var(--ink-900); font-weight: var(--fw-medium); }
.rec-row-price { font-size: 14px; color: var(--ink-900); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.rec-total { border-top: 1px solid var(--border-subtle); background: rgba(29, 78, 143, 0.04); }
.rec-total .rec-row-label { font-weight: var(--fw-bold); font-size: 15px; }
.rec-total-price {
  font-size: 22px !important;
  color: var(--brand-blue) !important;
  font-weight: var(--fw-bold) !important;
  font-variant-numeric: tabular-nums;
}
.rec-note {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.btn-whatsapp { width: 100%; max-width: 460px; margin: 0 auto; }

@media (max-width: 640px) {
  .scoping { padding: var(--space-7) var(--space-5) 60px; }
  .scoping-box { padding: 22px 20px; }
  .scoping-question { font-size: 19px; }
  .scoping-list-item { padding: 14px 14px; }
  .scoping-list-label { font-size: 13.5px; }
  .scoping-list-price { font-size: 13px; }
  .scoping-check { padding: 12px 14px; }
  .scoping-check-label { font-size: 13.5px; }
  .scoping-check-price { font-size: 12.5px; }
  .scoping-live { padding: 12px 14px; font-size: 12.5px; }
  .scoping-live strong { font-size: 16px; }
  .scoping-actions { flex-direction: row; gap: 8px; }
  .scoping-actions .btn { flex: 1; font-size: 13px; padding: 10px 14px; }
  .rec-title { font-size: 19px; }
  .rec-desc { font-size: 13.5px; }
  .rec-row { padding: 11px 16px; }
  .rec-row-label, .rec-row-price { font-size: 13px; }
  .rec-total-price { font-size: 19px !important; }
  .btn-whatsapp { font-size: 14px; padding: 12px 18px; }
}

/* ---------- Dark CTA section ---------- */
.cta-dark {
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-purple) 55%, var(--brand-magenta) 100%);
  padding: var(--space-9) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-dark-inner { max-width: 640px; margin: 0 auto; }
.cta-dark h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  color: #fff;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
}
.cta-dark p { color: rgba(255, 255, 255, 0.88); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); margin: 0 0 32px; }
.cta-trust { color: rgba(255, 255, 255, 0.72); font-size: 13px; margin-top: 18px; letter-spacing: 0.01em; }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-purple) 55%, var(--brand-magenta) 100%);
  padding: 0 var(--space-6) 40px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--space-5);
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: var(--space-6);
}
.footer-brand { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: 16px; color: #fff; letter-spacing: var(--ls-tight); }
.footer-social { display: flex; gap: var(--space-5); }
.footer-social a { color: rgba(255, 255, 255, 0.82); font-size: 13px; font-weight: var(--fw-medium); }
.footer-social a:hover { color: #fff; }
.footer-bottom { color: rgba(255, 255, 255, 0.65); font-size: 12.5px; }

/* Light footer variant (hubungi) */
.footer-light {
  background: var(--surface-page);
  border-top: 1px solid var(--border-subtle);
  padding: 28px var(--space-6);
}
.footer-light .footer-inner {
  flex-direction: row; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
  border: 0; padding: 0;
}
.footer-light .footer-brand { color: var(--ink-900); font-size: 15px; }
.footer-light .footer-social a { color: var(--text-muted); }

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 28px; height: 28px; color: #fff; }

/* ---------- Servis: bento grid + drawer ---------- */
.bento-section { margin-top: 48px; }
.bento-cat {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: var(--fw-bold);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.bento-cat:first-child { margin-top: 0; }
.bento-cat::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 720px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.bento-tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 26px 28px;
  background: var(--tile-bg, var(--surface-card, #fff));
  border: 1px solid var(--tile-border, var(--border-subtle));
  border-radius: 18px;
  cursor: pointer;
  overflow: hidden;
  min-height: 200px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tile-glow, transparent);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.bento-tile:hover {
  transform: translateY(-2px);
  border-color: var(--tile-border-hover, var(--ink-200));
  box-shadow: 0 10px 28px -18px rgba(18, 20, 26, 0.18);
}
.bento-tile:hover::before { opacity: 1; }
.bento-tile:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

.bento-tile.is-flagship {
  border-color: transparent;
  color: #fff;
}
.bento-tile.is-flagship::after {
  content: "";
  position: absolute;
  right: -50px; top: -50px;
  width: 160px; height: 160px;
  background: var(--tile-corner, radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 65%));
  pointer-events: none;
}

.bento-tile-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--tile-icon-bg, var(--surface-sunken, #F4F5F7));
  color: var(--tile-icon-color, var(--ink-900));
  flex-shrink: 0;
  margin-bottom: auto;
  position: relative;
  z-index: 1;
}
.bento-tile.is-flagship .bento-tile-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.bento-tile-icon svg { width: 20px; height: 20px; }

.bento-tile-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--tile-title-color, var(--ink-900));
  margin: 24px 0 8px;
  position: relative;
  z-index: 1;
}
.bento-tile.is-flagship .bento-tile-title {
  color: #fff;
  font-size: 22px;
}

.bento-tile-sub {
  font-size: 13.5px;
  color: var(--tile-sub-color, var(--text-muted));
  line-height: 1.55;
  max-width: 360px;
  position: relative;
  z-index: 1;
}
.bento-tile.is-flagship .bento-tile-sub { color: rgba(255, 255, 255, 0.82); }

.bento-tile-arrow {
  position: absolute;
  top: 22px; right: 22px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--tile-arrow-bg, var(--surface-sunken, #F4F5F7));
  color: var(--tile-arrow-color, var(--ink-700));
  transition: transform .25s ease, background .25s ease, color .25s ease;
  z-index: 1;
}
.bento-tile.is-flagship .bento-tile-arrow {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.bento-tile:hover .bento-tile-arrow {
  transform: translate(2px, -2px);
  background: var(--tile-arrow-hover-bg, var(--brand-purple));
  color: var(--tile-arrow-hover-color, #fff);
}
.bento-tile.is-flagship:hover .bento-tile-arrow {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.bento-tile-arrow svg { width: 12px; height: 12px; }

/* Bottom drawer */
.bento-drawer {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; flex-direction: column; justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.bento-drawer.open { pointer-events: auto; opacity: 1; }
.bento-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(18, 20, 26, 0.45);
}
.bento-drawer-panel {
  position: relative;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-height: 82vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(0.2, 0.85, 0.25, 1);
  box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.18);
}
.bento-drawer.open .bento-drawer-panel { transform: translateY(0); }
.bento-drawer-handle {
  width: 40px; height: 4px;
  background: var(--ink-200);
  border-radius: 999px;
  margin: 12px auto 0;
}
.bento-drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-sunken, #F4F5F7);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-900);
  transition: background .2s ease, transform .2s ease;
}
.bento-drawer-close:hover { background: var(--ink-200); transform: rotate(90deg); }
.bento-drawer-close svg { width: 14px; height: 14px; }
.bento-drawer-content {
  padding: 28px 40px 48px;
  max-width: 760px;
  margin: 0 auto;
}
.bento-drawer-eyebrow {
  font-size: 10.5px; font-weight: var(--fw-bold);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-magenta-dark);
  margin: 12px 0 10px;
}
.bento-drawer-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 8px;
  line-height: 1.2;
}
.bento-drawer-sub {
  font-size: 15px; color: var(--text-muted);
  margin: 0 0 26px;
  line-height: 1.55;
}
.bento-drawer-body {
  display: flex; gap: 48px; flex-wrap: wrap;
}
.bento-drawer-desc {
  font-size: 15px; line-height: 1.7;
  color: var(--text-body, #334155);
  flex: 1 1 360px;
  margin: 0;
}
.bento-drawer-includes { flex: 0 0 240px; }
.bento-drawer-includes-title {
  font-size: 10.5px; font-weight: var(--fw-bold);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-magenta-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}
.bento-drawer-includes ul { list-style: none; margin: 0; padding: 0; }
.bento-drawer-includes li {
  font-size: 14px; color: var(--text-muted);
  padding: 7px 0 7px 18px;
  position: relative; line-height: 1.55;
}
.bento-drawer-includes li::before {
  content: ""; position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 1px;
  background: var(--brand-teal);
}

@media (max-width: 720px) {
  .bento-tile { min-height: 168px; padding: 22px; }
  .bento-tile-title { font-size: 18px; margin-top: 20px; }
  .bento-tile.is-flagship .bento-tile-title { font-size: 20px; }
  .bento-tile-sub { font-size: 13px; }
  .bento-tile-arrow { top: 18px; right: 18px; }
  .bento-drawer-content { padding: 24px 20px 36px; }
  .bento-drawer-title { font-size: 24px; }
  .bento-drawer-includes { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bento-tile, .bento-tile-arrow, .bento-drawer,
  .bento-drawer-panel, .bento-drawer-close { transition: none; }
  .bento-tile:hover, .bento-tile:hover .bento-tile-arrow,
  .bento-drawer-close:hover { transform: none; }
}

.servis-cta-card {
  margin-top: 70px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background:
    linear-gradient(135deg, rgba(43, 182, 204, 0.08) 0%, rgba(91, 60, 142, 0.08) 60%, rgba(194, 62, 139, 0.08) 100%),
    var(--surface-card);
  border: 1px solid rgba(91, 60, 142, 0.18);
  border-radius: var(--radius-xl, 18px);
  box-shadow: 0 10px 30px -12px rgba(91, 60, 142, 0.18);
  transition: transform .25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .25s ease;
}
.servis-cta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-blue) 50%, var(--brand-magenta) 100%);
  opacity: 0.9;
}
.servis-cta-card::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(91, 60, 142, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.servis-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(91, 60, 142, 0.28);
}
.servis-cta-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(91, 60, 142, 0.45);
  position: relative; z-index: 1;
}
.servis-cta-icon svg { width: 24px; height: 24px; }
.servis-cta-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.servis-cta-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 17px;
  color: var(--ink-900);
  margin-bottom: 4px;
  line-height: 1.35;
}
.servis-cta-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.servis-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px -8px rgba(91, 60, 142, 0.55);
}
.servis-cta-btn:hover { gap: 10px; }
.servis-cta-btn svg { transition: transform .2s ease; }
.servis-cta-btn:hover svg { transform: translateX(2px); }

@media (max-width: 640px) {
  .servis-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px 24px;
    gap: 16px;
  }
  .servis-cta-icon { width: 44px; height: 44px; }
  .servis-cta-btn { width: 100%; justify-content: center; }
}

/* ---------- Kerja: filter tags + grid ---------- */
.filter-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-tag {
  background: var(--surface-sunken);
  color: var(--text-muted);
  border: 0;
  font-size: 13px; font-weight: var(--fw-semibold);
  padding: 8px 16px; border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.filter-tag.active {
  background: var(--ink-900); color: #fff;
}
.filter-tag:hover:not(.active) { background: var(--ink-100); color: var(--ink-900); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }
.project-card-link { display: block; color: inherit; }
.project-card-link:hover { color: inherit; }
.project-empty {
  border: 1.5px dashed var(--border-default);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
  color: var(--text-muted); gap: 8px;
}
.project-empty-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-purple); font-size: 17px; margin-bottom: 6px;
}

/* ---------- Tentang ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px; align-items: start;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-portrait {
  width: 100%; height: 300px;
  border-radius: 24px;
  background: var(--surface-sunken);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; font-weight: var(--fw-semibold);
  border: 1px dashed var(--border-default);
}
.about-info { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 16px; }
.about-info-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px; color: var(--text-muted);
  margin-top: 10px;
}
.about-info-card .t { color: var(--ink-900); font-weight: var(--fw-bold); font-size: 12.5px; margin-bottom: 1px; }

.bio-lead { font-size: 19px; color: var(--ink-900); font-weight: var(--fw-medium); line-height: var(--lh-relaxed); max-width: 560px; }
.bio-body { font-size: 15.5px; color: var(--text-muted); line-height: var(--lh-relaxed); max-width: 560px; }

.skill-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
  font-size: 14px; font-weight: var(--fw-medium); color: var(--ink-900);
}
.skill-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(31,157,107,.12);
  color: var(--state-success);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 760px) { .skills-grid { grid-template-columns: 1fr; } }

.tech-pill {
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: var(--fw-medium);
  padding: 9px 16px; border-radius: var(--radius-pill);
}
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Expect (Apa yang anda boleh jangkakan) ---------- */
.expect-section {
  padding: 96px var(--space-6);
  margin-top: var(--space-9);
  position: relative;
}
.expect-head { margin-bottom: 8px; }
.expect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .expect-grid { grid-template-columns: repeat(3, 1fr); }
}
.expect-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, var(--border-subtle));
  border-radius: 16px;
  padding: 26px 26px 28px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.expect-card:hover {
  border-color: var(--card-border-hover, var(--ink-200));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -18px rgba(18, 20, 26, 0.12);
}
.expect-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--card-icon-bg, var(--surface-sunken, #F4F5F7));
  color: var(--card-icon-color, var(--ink-900));
  margin-bottom: 20px;
}
.expect-icon svg { width: 20px; height: 20px; }
.expect-card-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: var(--fw-semibold);
  color: var(--card-title-color, var(--ink-900));
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.expect-card-desc {
  font-size: 14px;
  color: var(--text-body, #334155);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 720px) {
  .expect-section { padding: 64px var(--space-6); }
}

/* ---------- Hubungi ---------- */
.contact-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6) 100px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.info-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.info-card-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-purple);
}
.info-card-icon svg { width: 18px; height: 18px; }
.info-card-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 15px; color: var(--ink-900); }
.info-card-text { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.info-card-link { font-size: 13px; font-weight: var(--fw-bold); }

.contact-gradient {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 22px; color: #fff;
}
.contact-gradient h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 15px; margin: 0 0 6px; color: #fff; }
.contact-gradient p { font-size: 12.5px; color: rgba(255,255,255,.85); line-height: var(--lh-relaxed); margin: 0 0 14px; }
.contact-gradient a {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--brand-purple);
  font-size: 12.5px; font-weight: var(--fw-bold);
  padding: 9px 16px; border-radius: var(--radius-pill);
}
.contact-form-note { font-size: 12px; color: var(--text-muted); text-align: center; }

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 0 auto; padding: 0 var(--space-6) 100px; }
.faq-item { border-top: 1px solid var(--border-subtle); }
.faq-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.faq-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: 20px 4px; cursor: pointer;
}
.faq-q { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 15px; color: var(--ink-900); }
.faq-chevron {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted);
  flex-shrink: 0; transition: transform .25s ease, color .15s ease;
}
.faq-item.open .faq-chevron { transform: rotate(45deg); color: var(--brand-purple); }
.faq-a {
  display: none;
  padding: 0 4px 20px;
  font-size: 13.5px; color: var(--text-muted);
  line-height: var(--lh-relaxed); max-width: 640px;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Admin panel ---------- */
body.admin {
  background: var(--ink-900);
  color: var(--ink-100);
  font-family: var(--font-display);
}
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--ink-900);
}
.admin-login-card {
  background: var(--ink-800);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.admin-login-card h1 {
  font-family: var(--font-display);
  font-size: 22px; color: #fff; margin: 0 0 6px;
  letter-spacing: var(--ls-tight);
}
.admin-login-card p { color: var(--ink-300); font-size: 13.5px; margin: 0 0 24px; }
.admin-login-card .form-input {
  background: var(--ink-900); color: #fff; border-color: var(--ink-700);
}
.admin-login-card .form-input:focus { border-color: var(--brand-teal); }
.admin-login-card .btn-block { margin-top: 8px; }
.admin-login-card .err {
  background: rgba(208,66,106,.15);
  color: #ff8aab;
  border-radius: var(--radius-md);
  padding: 10px 12px; font-size: 13px;
  margin-bottom: 16px;
}

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface-sunken);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border-subtle);
}
.admin-sidebar-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
  text-align: center;
}
.admin-sidebar-brand img {
  height: 40px; width: auto; display: block;
}
.admin-sidebar-brand .brand-text {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  color: var(--ink-900);
  font-size: 15px; line-height: 1.1;
  letter-spacing: -0.01em;
  display: block;
}
.admin-sidebar-brand .brand-sub {
  font-size: 10.5px; color: var(--text-muted);
  font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide);
  text-transform: uppercase; display: block; margin-top: 2px;
}
.admin-tab {
  padding: 10px 12px; border-radius: var(--radius-md);
  cursor: pointer; font-size: 14px; font-weight: var(--fw-semibold);
  color: var(--ink-700);
  transition: background .15s ease, color .15s ease;
  text-decoration: none; display: block;
}
.admin-tab:hover { background: rgba(0,0,0,.05); color: var(--ink-900); }
.admin-tab.active { background: var(--accent-gradient); color: #fff; }
.admin-sidebar-bottom {
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 8px;
}
.admin-sidebar-bottom a, .admin-sidebar-bottom button {
  font-size: 12.5px; color: var(--ink-700); font-weight: var(--fw-semibold);
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; padding: 0; text-decoration: none;
}
.admin-sidebar-bottom a:hover, .admin-sidebar-bottom button:hover { color: var(--brand-magenta-dark); }

.admin-main {
  flex: 1; padding: 40px 48px; max-width: 760px;
  background: var(--surface-page);
  min-height: 100vh;
}
@media (max-width: 760px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-main { padding: 24px 20px; }
}

.admin-h1 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: var(--fw-extrabold);
  color: var(--ink-900); letter-spacing: var(--ls-tight);
  margin: 0;
}
.admin-h1-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.admin-saved {
  font-size: 12px; font-weight: var(--fw-bold);
  color: var(--state-success);
  opacity: 0; transition: opacity .4s ease;
}
.admin-saved.show { opacity: 1; }
.admin-sub {
  color: var(--text-muted); font-size: 13.5px;
  margin: 0 0 32px;
}
.admin-section {
  margin: 32px 0 14px;
  padding: 9px 14px 9px 12px;
  font-size: 11.5px; font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--brand-magenta-dark);
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-magenta-dark);
  display: flex; align-items: center; gap: 8px;
}
.admin-section::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-magenta-dark);
  display: inline-block;
}
.admin-field { margin-bottom: 14px; }
.admin-field label {
  display: block; margin-bottom: 6px;
  font-size: var(--fs-body-sm); font-weight: var(--fw-bold);
  color: var(--ink-900);
}
.admin-field input[type="text"],
.admin-field input[type="email"],
.admin-field input[type="url"],
.admin-field input[type="number"],
.admin-field textarea {
  width: 100%; padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default);
  font-size: 14px; font-family: inherit;
  background: var(--surface-card);
  color: var(--ink-900);
}
.admin-field input:focus, .admin-field textarea:focus {
  outline: none; border-color: var(--brand-purple);
  box-shadow: var(--focus-ring);
}
.admin-field textarea { min-height: 84px; resize: vertical; }
.admin-field textarea.admin-html {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #FAFAF7;
}
.admin-hint {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  color: var(--brand-purple);
  background: rgba(91, 60, 142, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
  letter-spacing: 0.02em;
}
.admin-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.admin-help code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  background: rgba(91, 60, 142, 0.08);
  color: var(--brand-purple);
  padding: 1px 5px;
  border-radius: 4px;
}
.admin-image-row { display: flex; align-items: center; gap: 14px; }
.admin-image-preview {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.admin-image-preview.empty { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 11px; }
.admin-savebar {
  position: sticky; bottom: 0;
  background: var(--surface-page);
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 24px;
  display: flex; gap: 12px; align-items: center;
}
.admin-msg { font-size: 12.5px; color: var(--state-success); }
.admin-msg.err { color: var(--state-danger); }

/* ============================================================
   Case study page (/kerja/{slug}/)
   ============================================================ */

.subnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-page);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-700);
  transition: color .2s;
  text-decoration: none;
}
.back-link:hover { color: var(--brand-magenta-dark); }
.back-link .arrow { transition: transform .3s cubic-bezier(.34,1.56,.64,1); display: inline-block; }
.back-link:hover .arrow { transform: translateX(-4px); }
.logo-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.cs-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.cs-header {
  padding: 64px 0 40px;
}
.cs-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-magenta-dark);
  margin-bottom: 16px;
}
.cs-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--ink-900);
}
.cs-one-liner {
  font-size: 17px;
  color: var(--ink-700);
  max-width: 600px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.cs-meta {
  display: flex; flex-wrap: wrap;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.cs-meta-item .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 5px;
  font-weight: 700;
}
.cs-meta-item .v {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
}

/* Visual — case study main image.
   Uses a real <img> inside <button> so the height auto-adjusts to the
   image's aspect ratio. Full width, but capped to viewport height so
   very tall images still fit on screen without scrolling past the fold. */
.cs-visual {
  position: relative;
  display: block;
  width: 100%;
  margin: 12px 0 70px;
  padding: 0;
  border: 0;
  background: #0E1530;
  border-radius: 20px;
  overflow: hidden;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  -webkit-appearance: none;
  appearance: none;
}
/* When inside the carousel wrap — no margin, wrap handles spacing */
.cs-gallery-wrap .cs-visual {
  margin: 0;
  border-radius: 16px;
}
.cs-visual-img {
  display: block;
  width: 100%;
  height: auto;            /* maintain aspect ratio */
  max-height: calc(100vh - 160px);  /* cap very tall images to viewport */
  object-fit: contain;     /* never crop the image */
  object-position: center;
  background: #0E1530;     /* letterbox color if max-height kicks in */
  transition: opacity .35s ease;
}
.cs-visual-img.cs-fading { opacity: 0; }
.cs-visual:hover .cs-visual-zoom-hint { opacity: 1; transform: translate(-50%, 0); }
.cs-visual-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 8px);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.cs-visual-placeholder {
  background: var(--surface-sunken);
  border: 1px dashed var(--border-default);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-visual-fallback {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

/* ===== Carousel thumbs (under main image) ===== */
.cs-gallery-wrap {
  margin: 12px 0 70px;
}
.cs-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cs-thumbs::-webkit-scrollbar { height: 6px; }
.cs-thumbs::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 3px; }

.cs-thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: var(--surface-sunken);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition:
    transform .25s cubic-bezier(.34, 1.56, .64, 1),
    border-color .25s ease,
    box-shadow .25s ease,
    opacity .25s ease;
  opacity: 0.62;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.cs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0E1530;
}
.cs-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.cs-thumb:focus-visible {
  outline: 2px solid var(--brand-magenta-dark);
  outline-offset: 2px;
}
.cs-thumb.active {
  opacity: 1;
  border-color: var(--brand-magenta-dark);
  box-shadow: 0 8px 18px -8px rgba(123, 47, 160, 0.55);
}
.cs-thumb.active::after {
  /* Active indicator dot below the thumb */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--brand-magenta-dark);
  border-radius: 50%;
}

/* Status row (counter + play/pause) */
.cs-thumbs-status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cs-thumbs-count {
  letter-spacing: 0.04em;
}
.cs-thumbs-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--ink-700);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}
.cs-thumbs-toggle:hover {
  border-color: var(--brand-magenta-dark);
  color: var(--brand-magenta-dark);
  transform: scale(1.06);
}
.cs-thumbs-toggle .ico-play { display: none; }
.cs-thumbs-toggle[aria-pressed="false"] .ico-pause { display: none; }
.cs-thumbs-toggle[aria-pressed="false"] .ico-play  { display: inline; }

/* Overview — interactive cards with icons */
.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.ov-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  outline: none;
  transition:
    transform .35s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow .3s ease,
    border-color .3s ease,
    background .3s ease;
  overflow: hidden;
  isolation: isolate;
}
.ov-card::before {
  /* Soft top wash — picks up accent color on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(123,47,160,0) 0%, rgba(123,47,160,0) 100%);
  transition: background .35s ease;
  z-index: -1;
  pointer-events: none;
}
.ov-card:hover,
.ov-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.25);
  border-color: var(--accent-border, rgba(123,47,160,0.25));
}
.ov-card:focus-visible {
  outline: 2px solid var(--brand-magenta-dark);
  outline-offset: 3px;
}

/* Per-icon accent color when hovered */
.ov-card-masalah:hover    { --accent-border: rgba(229, 90, 43, 0.45); }
.ov-card-masalah:hover::before { background: linear-gradient(160deg, rgba(229,90,43,0.06) 0%, rgba(229,90,43,0) 70%); }
.ov-card-pendekatan:hover { --accent-border: rgba(47, 122, 200, 0.45); }
.ov-card-pendekatan:hover::before { background: linear-gradient(160deg, rgba(47,122,200,0.06) 0%, rgba(47,122,200,0) 70%); }
.ov-card-hasil:hover      { --accent-border: rgba(31, 138, 98, 0.45); }
.ov-card-hasil:hover::before { background: linear-gradient(160deg, rgba(31,138,98,0.07) 0%, rgba(31,138,98,0) 70%); }

/* Icon bubble */
.ov-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}
.ov-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.ov-card-masalah    .ov-icon { background: #FDF1EA; color: #B8532A; }
.ov-card-pendekatan .ov-icon { background: #EAF1FB; color: #2F7AC8; }
.ov-card-hasil      .ov-icon { background: #EEF9F4; color: #1F8A62; }
.ov-card-default    .ov-icon { background: #F4F2FB; color: var(--ink-700); }

.ov-card:hover .ov-icon,
.ov-card:focus-visible .ov-icon {
  transform: scale(1.08) rotate(-4deg);
}

.ov-card .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 10px;
}
.ov-card-masalah    .k { color: #B8532A; }
.ov-card-pendekatan .k { color: #2F7AC8; }
.ov-card-hasil      .k { color: #1F8A62; }
.ov-card-default    .k { color: var(--brand-magenta-dark); }

.ov-card p {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.6;
  margin: 0;
  transition: color .3s ease;
}
.ov-card:hover p { color: var(--ink-900); }

/* Accent corner mark — subtle dot that grows on hover */
.ov-corner {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-200, #E5E7EB);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}
.ov-card-masalah:hover    .ov-corner { background: #E55A2B; transform: scale(2.2); }
.ov-card-pendekatan:hover .ov-corner { background: #2F7AC8; transform: scale(2.2); }
.ov-card-hasil:hover      .ov-corner { background: #1F8A62; transform: scale(2.2); }
.ov-card-default:hover    .ov-corner { background: var(--brand-magenta-dark); transform: scale(2.2); }

/* Subtle click pulse */
@keyframes ov-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}
.ov-card:active { animation: ov-pulse .25s ease; }

/* Flow */
.flow-section {
  margin-bottom: 70px;
}
.flow-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.flow-section > p {
  font-size: 15px;
  color: var(--ink-700);
  max-width: 600px;
  line-height: 1.7;
  margin: 0 0 26px;
}
.flow-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.flow-step {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13.5px;
  font-weight: 600;
  flex: 1;
  min-width: 140px;
  text-align: center;
  color: var(--ink-900);
}
.flow-arrow {
  color: var(--brand-magenta-dark);
  font-size: 16px;
  font-weight: 700;
}

/* Section */
.section {
  margin-bottom: 70px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink-900);
}
.section p {
  font-size: 15.5px;
  color: var(--ink-700);
  line-height: 1.75;
  max-width: 680px;
  margin: 0;
}
.section p + p { margin-top: 14px; }

/* Chip row */
.chip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}
.chip {
  border-radius: 12px;
  padding: 16px;
}
.chip.chaos {
  background: #FDF1EA;
  border: 1px dashed #E8B592;
}
.chip.chaos .t {
  font-size: 12.5px;
  color: #B8532A;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.chip.chaos .b {
  font-size: 13.5px;
  color: #8A6A55;
  line-height: 1.5;
}
.chip.clean {
  background: #EEF9F4;
  border: 1px solid #BEE8D6;
}
.chip.clean .t {
  font-size: 12.5px;
  color: #1F8A62;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.chip.clean .b {
  font-size: 13.5px;
  color: #3F7A64;
  line-height: 1.5;
}

/* ===== Enhanced narrative section (Masalah sebenar) ===== */
.cs-narrative {
  position: relative;
  padding: 34px 32px 36px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF6F4 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  margin-top: 56px;
  margin-bottom: 56px;
  overflow: hidden;
}
.cs-narrative::before {
  /* Left vertical accent bar */
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-magenta) 0%, var(--brand-purple) 100%);
  border-radius: 0 4px 4px 0;
}
.cs-narrative::after {
  /* Subtle decorative blob in corner */
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(194,62,139,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cs-narrative-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.cs-narrative-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-magenta) 0%, var(--brand-purple) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(123,47,160,0.5);
}
.cs-narrative-icon svg {
  width: 24px;
  height: 24px;
}
.cs-narrative-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cs-narrative-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-magenta-dark);
}
.cs-narrative h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cs-narrative-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.cs-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.cs-point-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand-magenta-dark);
  background: rgba(194, 62, 139, 0.08);
  border: 1px solid rgba(194, 62, 139, 0.18);
  border-radius: 8px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.cs-point p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-700);
}

/* Enhanced chip row with arrow connector */
.chip-row-enhanced {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-default);
  position: relative;
  z-index: 1;
}
.chip-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-magenta-dark);
  position: relative;
}
.chip-connector::before {
  /* Soft glow circle behind arrow */
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(194,62,139,0.10) 0%, rgba(123,47,160,0.10) 100%);
  z-index: 0;
}
.chip-connector svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}
.chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.12);
}
.chip-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.chip-icon svg {
  width: 14px;
  height: 14px;
}
.chip.chaos .chip-icon {
  background: rgba(184, 83, 42, 0.14);
  color: #B8532A;
}
.chip.clean .chip-icon {
  background: rgba(31, 138, 98, 0.16);
  color: #1F8A62;
}
.chip-content {
  flex: 1;
  min-width: 0;
}
.chip .t {
  font-size: 11.5px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 8px;
}
.chip.chaos .t { color: #B8532A; }
.chip.clean .t { color: #1F8A62; }
.chip .b {
  font-size: 13.5px;
  line-height: 1.55;
}
.chip.chaos .b { color: #7A4A35; }
.chip.clean .b { color: #2E5C4A; }

@media (max-width: 720px) {
  .cs-narrative {
    padding: 26px 22px 28px;
    margin-top: 44px;
    margin-bottom: 44px;
  }
  .cs-narrative h2 {
    font-size: 19px;
  }
  .cs-narrative-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }
  .cs-point {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }
  .cs-point-num {
    width: 36px;
    height: 26px;
    font-size: 11.5px;
  }
  .chip-row-enhanced {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
  }
  .chip-connector {
    transform: rotate(90deg);
    height: 32px;
  }
  .chip-connector::before {
    width: 28px;
    height: 28px;
  }
}

/* Stack pills */
.stack-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.stack-row span {
  font-size: 12.5px;
  background: var(--surface-sunken);
  color: var(--ink-700);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 500;
}

/* ===== Enhanced "Apa yang dibina" section ===== */
.cs-built {
  position: relative;
  padding: 34px 32px 36px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FB 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  margin-top: 56px;
  margin-bottom: 56px;
  overflow: hidden;
}
.cs-built::before {
  /* Left vertical accent bar — teal→blue (constructive theme) */
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-teal) 0%, var(--brand-blue) 100%);
  border-radius: 0 4px 4px 0;
}
.cs-built::after {
  /* Decorative teal blob in corner */
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(43,182,204,0.09) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cs-built-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.cs-built-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-blue) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(43,182,204,0.55);
}
.cs-built-icon svg {
  width: 24px;
  height: 24px;
}
.cs-built-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cs-built-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-teal-dark);
}
.cs-built h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cs-built-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.cs-bp {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.cs-bp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand-teal-dark);
  background: rgba(43, 182, 204, 0.10);
  border: 1px solid rgba(43, 182, 204, 0.22);
  border-radius: 8px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.cs-bp p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-700);
}

/* Stack block inside the built section */
.cs-stack {
  position: relative;
  z-index: 1;
  padding-top: 22px;
  border-top: 1px dashed var(--border-default);
}
.cs-stack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.cs-stack-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-teal-dark);
}
.cs-stack-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.cs-stack .stack-row { margin-top: 14px; }
.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4FBFC 100%) !important;
  color: var(--ink-800) !important;
  padding: 8px 14px 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(43, 182, 204, 0.22) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: default;
}
.stack-pill:hover {
  transform: translateY(-2px);
  border-color: var(--brand-teal) !important;
  box-shadow: 0 8px 18px -10px rgba(43, 182, 204, 0.55);
  background: linear-gradient(135deg, #FFFFFF 0%, #E7F6F8 100%) !important;
}
.stack-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-blue) 100%);
  flex: 0 0 7px;
  box-shadow: 0 0 0 3px rgba(43, 182, 204, 0.15);
}

@media (max-width: 720px) {
  .cs-built {
    padding: 26px 22px 28px;
    margin-top: 44px;
    margin-bottom: 44px;
  }
  .cs-built h2 {
    font-size: 19px;
  }
  .cs-built-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }
  .cs-bp {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }
  .cs-bp-num {
    width: 36px;
    height: 26px;
    font-size: 11.5px;
  }
  .cs-stack-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Results */
.results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}
.res-card {
  background: var(--surface-sunken);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
}
.res-card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--brand-magenta-dark);
  line-height: 1.1;
}
.res-card .lbl {
  font-size: 12.5px;
  color: var(--ink-700);
  margin-top: 6px;
  line-height: 1.4;
}

/* Testimonial */
.testimonial {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #5A2E9C 55%, var(--brand-purple) 100%);
  border-radius: 20px;
  padding: 44px;
  margin-bottom: 80px;
  color: #fff;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 20px;
}
.testimonial .who {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
}

/* Next project */
.next-project {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0 80px;
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none;
  color: inherit;
  gap: 16px;
}
.next-project .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 8px;
  font-weight: 700;
}
.next-project .name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
}
.next-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: var(--brand-magenta-dark);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s, border-color .3s;
  flex-shrink: 0;
}
.next-project:hover .next-arrow {
  transform: rotate(45deg);
  background: var(--brand-magenta-dark);
  color: #fff;
  border-color: var(--brand-magenta-dark);
}

/* Case study responsive */
@media (max-width: 760px) {
  .subnav { padding: 18px 22px; }
  .overview, .results, .chip-row { grid-template-columns: 1fr; }
  .flow-row { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
  .testimonial { padding: 28px 24px; }
  .cs-meta { gap: 18px; }
  .next-project { flex-direction: column; align-items: flex-start; }
  .img-modal-img { max-height: calc(100vh - 80px); }
  .img-modal-cap { font-size: 12.5px; padding: 8px 14px; }
}

/* ============================================================
   Image lightbox modal (case study main image, gallery, etc.)
   ============================================================ */
.img-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 11, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  transition: opacity .22s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.img-modal.show { opacity: 1; }
.img-modal[hidden] { display: none; }
.img-modal-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  background: #0E1530;
  display: block;
}
.img-modal-cap {
  margin-top: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  max-width: 720px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}
.img-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 26px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s, transform .2s;
  font-family: inherit;
}
.img-modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* ============================================================
   Right-click disabled toast
   ============================================================ */
.rc-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 10000;
  background: var(--ink-900, #1A1A1A);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.08);
}
.rc-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.rc-toast[hidden] { display: none; }

/* Make [data-zoomable] elements feel clickable */
[data-zoomable] { cursor: zoom-in; }
button[data-zoomable] { font-family: inherit; }

/* ===== Contact form: captcha + submit state + success ===== */
.form-captcha-row {
  display: flex; align-items: center; gap: 10px;
}
.form-captcha-q {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 18px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(43, 182, 204, 0.10), rgba(91, 60, 142, 0.10));
  color: var(--brand-blue);
  border-radius: var(--radius-md);
  letter-spacing: 0.5px;
  min-width: 120px;
  text-align: center;
}
.form-captcha-input {
  flex: 1; min-width: 0;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
}
.form-captcha-refresh {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--border-color, rgba(15, 23, 42, 0.10));
  background: var(--surface-elevated, #fff);
  color: var(--text-muted, #475569);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, transform .2s ease;
}
.form-captcha-refresh:hover {
  background: var(--surface-sunken, #f6f7fa);
  color: var(--brand-blue);
  transform: rotate(60deg);
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin-top: 6px;
  line-height: 1.5;
}

.contact-btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contactSpin 0.7s linear infinite;
  margin-left: 8px;
}
#contactSubmitBtn.is-loading .contact-btn-label { opacity: 0.7; }
#contactSubmitBtn.is-loading .contact-btn-spinner { display: inline-block; }
#contactSubmitBtn:disabled { cursor: wait; opacity: 0.85; }
@keyframes contactSpin { to { transform: rotate(360deg); } }

.contact-form-msg {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 1.5em;
  color: var(--text-muted, #475569);
  transition: color .2s ease;
}
.contact-form-msg.is-error {
  color: #c11a3a;
  background: rgba(193, 26, 58, 0.06);
  border-left: 3px solid #c11a3a;
  padding: 10px 12px;
  border-radius: 6px;
}

.contact-success {
  background: var(--surface-elevated, #fff);
  border-radius: var(--radius-xl, 18px);
  padding: 56px 36px;
  text-align: center;
  box-shadow: var(--shadow-soft, 0 8px 32px rgba(15, 23, 42, 0.06));
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex; flex-direction: column; align-items: center;
  animation: successIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.contact-success[hidden] { display: none; }
.contact-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #2bb6cc);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(43, 182, 204, 0.30);
}
.contact-success-icon svg { width: 32px; height: 32px; }
.contact-success-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-bold);
  margin: 0 0 8px;
  color: var(--text-strong, #0f172a);
}
.contact-success-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted, #475569);
  max-width: 380px;
  margin: 0 0 24px;
}
@keyframes successIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .form-captcha-row { flex-wrap: wrap; }
  .form-captcha-q { min-width: 100px; font-size: 16px; padding: 9px 12px; }
  .form-captcha-input { width: 100%; order: 2; }
  .form-captcha-refresh { order: 1; margin-left: auto; }
  .contact-success { padding: 40px 22px; }
}
