/* =========================================================================
   Design System — Portfolio
   Token + komponen. Mobile-first, tanpa build step, tanpa dependensi.
   Sumber aturan: design-system.md
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Token
   ------------------------------------------------------------------------- */
:root {
  /* color — neutral */
  --color-bg: #fff;
  --color-ink: #0e0e12;
  --color-ink-muted: #55555f;
  --color-border: #e4e4ec;
  --color-surface-subtle: #f5f5f9;

  /* color — brand & accents */
  --color-violet-500: #6c5ce0;
  --color-violet-400: #8b7bff;
  --color-orchid-400: #d580f2;
  --color-periwinkle-300: #a9aafb;
  --color-amber-400: #e8be5a;
  --color-emerald-500: #00bf96;
  --color-cyan-500: #12c2e0;
  --color-blue-600: #3d5afe;
  --color-magenta-600: #e0307a;
  --color-danger: #d92d20;

  /* color — pasangan teks di atas aksen (kontras WCAG) */
  --on-violet: #fff;
  --on-blue: #fff;
  --on-orchid: var(--color-ink);
  --on-periwinkle: var(--color-ink);
  --on-amber: var(--color-ink);
  --on-emerald: var(--color-ink);
  --on-cyan: var(--color-ink);

  /* gradient */
  --grad-hero: radial-gradient(60% 80% at 100% 60%, #8b7bff 0%, #c7c3ff 40%, #fff 85%);
  --grad-cta: linear-gradient(115deg, #e0307a 0%, #7b3fe4 40%, #2f6bf0 65%, #5fe0e8 100%);
  /* Scrim kartu karya: foto terang (layar, meja putih) tetap butuh alas gelap
     di area teks — dua lapis, atas untuk label, bawah untuk judul + deskripsi. */
  --grad-scrim:
    linear-gradient(to bottom, rgb(8 8 16 / .6) 0%, rgb(8 8 16 / .2) 18%, transparent 38%),
    linear-gradient(to top, rgb(8 8 16 / .88) 0%, rgb(8 8 16 / .6) 26%, rgb(8 8 16 / .2) 52%, transparent 72%);

  /* type */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-stat: clamp(2.5rem, 1.8rem + 3vw, 5rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);

  /* space — mobile-first */
  --gutter: 16px;
  --gap: 12px;
  --section-y: 64px;
  --pad-tile: 20px;
  --pad-card: 16px;
  --header-h: 64px;

  /* radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* elevation */
  --shadow-1: 0 0 0 1px var(--color-border);
  --shadow-2: 0 8px 24px rgb(14 14 18 / .10);
  --shadow-3: 0 24px 64px rgb(14 14 18 / .25);

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 200ms;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --gap: 16px;
    --section-y: 96px;
    --pad-tile: 28px;
    --pad-card: 20px;
    --radius-lg: 24px;
    --header-h: 72px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
    --gap: 24px;
    --section-y: 128px;
    --pad-tile: 32px;
    --pad-card: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */
.ds-body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(.ds-body) :where(img) { max-width: 100%; height: auto; display: block; }
/* :where() menahan spesifisitas di nol agar warna tautan tidak menimpa
   varian tombol/kartu (mis. .ds-btn--primary yang teksnya putih). */
:where(.ds-body) :where(a) { color: inherit; }

/* Reset tipografi dasar agar tidak bergantung pada preflight CDN.
   :where() -> spesifisitas nol, sehingga class utility tetap menang. */
:where(.ds-body) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ds-skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  z-index: 200;
  padding: 12px 20px;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.ds-skip-link:focus { top: 12px; }

.ds-main { min-height: 50vh; }

/* -------------------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------------------- */
.ds-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.ds-container--narrow { max-width: 880px; }
.ds-container--reading { max-width: 720px; }

.ds-section { padding-block: var(--section-y); }
.ds-section--tight { padding-block: calc(var(--section-y) * .6); }
.ds-section--subtle { background: var(--color-surface-subtle); }

.ds-grid { display: grid; gap: var(--gap); }
.ds-grid--2, .ds-grid--3, .ds-grid--4 { display: grid; gap: var(--gap); }

@media (min-width: 640px) {
  .ds-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .ds-grid--3, .ds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ds-stack { display: flex; flex-direction: column; gap: 12px; }
.ds-stack--lg { gap: 20px; }
.ds-cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; list-style: none; margin: 0; padding: 0; }
.ds-spread { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ds-actions { display: grid; gap: 12px; margin-top: 24px; }
.ds-actions .ds-btn { width: 100%; }
.ds-actions--center { justify-content: center; }

@media (min-width: 640px) {
  .ds-actions { display: flex; flex-wrap: wrap; }
  .ds-actions .ds-btn { width: auto; }
}

/* -------------------------------------------------------------------------
   4. Typography helpers
   ------------------------------------------------------------------------- */
.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: 0 0 12px;
}
.ds-eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--color-violet-500);
}

.ds-title {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ds-h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ds-h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
}

.ds-lead {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 60ch;
  color: var(--color-ink-muted);
}

.ds-body-text {
  margin: 0;
  max-width: 68ch;
  color: var(--color-ink-muted);
}

.ds-small { font-size: .875rem; line-height: 1.5; color: var(--color-ink-muted); }
.ds-caption { font-size: .75rem; font-weight: 500; line-height: 1.4; color: var(--color-ink-muted); }
.ds-muted { color: var(--color-ink-muted); }

/* Judul section outline — elemen dekoratif, selalu aria-hidden */
.section-title-wrap {
  margin-bottom: var(--gap);
  text-align: center;
}

.section-title {
  --chars: 4;
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: min(15rem, calc((100vw - 2 * var(--gutter) - 16px) / (var(--chars) * 0.72)));
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-ink);
  paint-order: stroke fill;
  user-select: none;
}

@media (min-width: 768px) {
  .section-title-wrap {
    overflow: hidden;
    padding-bottom: 0;
  }
  .section-title { margin-bottom: -.12em; }
}

.section-intro {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

/* -------------------------------------------------------------------------
   5. Button
   ------------------------------------------------------------------------- */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  color: var(--color-ink);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ds-btn:active { transform: scale(.98); }
.ds-btn[disabled], .ds-btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.ds-btn--primary { background: var(--color-ink); color: #fff; }
.ds-btn--secondary {
  background: rgb(255 255 255 / .6);
  border-color: #c9c6f5;
  color: var(--color-ink-muted);
}
.ds-btn--accent {
  background: var(--color-blue-600);
  color: #fff;
  text-transform: uppercase;
  font-size: .8125rem;
  letter-spacing: .06em;
}
.ds-btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-ink);
}
.ds-btn--danger { background: var(--color-danger); color: #fff; }
.ds-btn--inverse {
  background: transparent;
  border-color: rgb(255 255 255 / .35);
  color: #fff;
}
.ds-btn--sm { min-height: 36px; padding: 0 16px; font-size: .875rem; }
.ds-btn--block { width: 100%; }

@media (hover: hover) {
  .ds-btn--primary:hover { background: #26262e; }
  .ds-btn--secondary:hover { background: #eae8ff; color: var(--color-ink); }
  .ds-btn--accent:hover { background: #2f4ce8; }
  .ds-btn--ghost:hover { background: var(--color-surface-subtle); }
  .ds-btn--danger:hover { background: #b42318; }
  .ds-btn--inverse:hover { background: rgb(255 255 255 / .14); }
}

/* Tombol ikon bulat (panah) */
.ds-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: var(--radius-circle);
  background: #fff;
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ds-icon-btn svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------------
   6. Chip, badge, alert
   ------------------------------------------------------------------------- */
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
}

.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.ds-badge--ok { background: #e7f8f2; color: #04624c; }
.ds-badge--warn { background: #fdf3d8; color: #6b4a04; }
.ds-badge--muted { background: var(--color-surface-subtle); color: var(--color-ink-muted); }
.ds-badge--info { background: #e8edff; color: #2539a8; }

.ds-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
  font-size: .9375rem;
  line-height: 1.5;
  margin-bottom: 16px;
}
.ds-alert p { margin: 0; }
.ds-alert--success { background: #e7f8f2; border-color: #9be3ce; color: #04543f; }
.ds-alert--error { background: #fef3f2; border-color: #fda29b; color: #912018; }
.ds-alert--info { background: #eef2ff; border-color: #c7d2fe; color: #2539a8; }
.ds-alert__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }

/* -------------------------------------------------------------------------
   7. Card & tile
   ------------------------------------------------------------------------- */
.ds-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--pad-card);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.ds-card--lg { padding: var(--pad-tile); border-radius: var(--radius-lg); }
.ds-card--flat { border: 0; background: var(--color-surface-subtle); }
.ds-card__title { margin: 0; font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ds-card__text { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--color-ink-muted); overflow-wrap: anywhere; }
.ds-card__foot { margin-top: auto; padding-top: 4px; }

.ds-tile {
  padding: var(--pad-tile);
  border-radius: var(--radius-lg);
  background: var(--color-surface-subtle);
  color: var(--color-ink);
}
.ds-tile--violet { background: var(--color-violet-500); color: var(--on-violet); }
.ds-tile--orchid { background: var(--color-orchid-400); color: var(--on-orchid); }
.ds-tile--periwinkle { background: var(--color-periwinkle-300); color: var(--on-periwinkle); }
.ds-tile--amber { background: var(--color-amber-400); color: var(--on-amber); }
.ds-tile--emerald { background: var(--color-emerald-500); color: var(--on-emerald); }
.ds-tile--cyan { background: var(--color-cyan-500); color: var(--on-cyan); }
.ds-tile--ink { background: var(--color-ink); color: #fff; }

.ds-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.ds-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 132px;
  padding: var(--pad-card);
  border-radius: var(--radius-lg);
}
.ds-stat__num {
  font-size: var(--fs-stat);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ds-stat__label { font-size: .8125rem; font-weight: 600; line-height: 1.3; }

.ds-service-card { position: relative; overflow: hidden; }
.ds-service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent, var(--color-violet-500));
}
.ds-service-card:nth-child(3n+1) { --accent: var(--color-violet-500); }
.ds-service-card:nth-child(3n+2) { --accent: var(--color-emerald-500); }
.ds-service-card:nth-child(3n) { --accent: var(--color-cyan-500); }
.ds-price {
  margin: 0;
  font-weight: 700;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   8. Header & navigasi
   ------------------------------------------------------------------------- */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ds-header.is-scrolled,
.ds-header.is-solid {
  background: rgb(255 255 255 / .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.ds-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.ds-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-ink);
}
.ds-logo img { max-height: 36px; width: auto; }

.ds-nav { display: none; }

.ds-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ds-nav-link[aria-current="page"] {
  background: var(--color-surface-subtle);
  color: var(--color-ink);
  font-weight: 600;
}

.ds-header__cta { display: none; }

.ds-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-circle);
  background: #fff;
  color: var(--color-ink);
  cursor: pointer;
}
.ds-menu-toggle svg { width: 22px; height: 22px; }

@media (min-width: 640px) {
  .ds-header__cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .ds-nav { display: flex; align-items: center; gap: 4px; }
  .ds-menu-toggle { display: none; }
  .ds-header__cta { margin-left: 12px; }
}

/* Menu overlay layar penuh (mobile/tablet) */
.ds-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: ds-fade-in var(--dur) var(--ease);
}
.ds-menu[hidden] { display: none; }
.ds-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 12px;
}
.ds-menu__links { display: flex; flex-direction: column; gap: 4px; }
.ds-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-border);
  font-size: clamp(1.5rem, 1.2rem + 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-ink);
}
.ds-menu__link[aria-current="page"] { color: var(--color-violet-500); }
.ds-menu__foot { margin-top: auto; display: grid; gap: 12px; }
.ds-menu__meta { font-size: .875rem; color: var(--color-ink-muted); }

@keyframes ds-fade-in { from { opacity: 0; } to { opacity: 1; } }

.ds-no-scroll { overflow: hidden; }

/* -------------------------------------------------------------------------
   9. Hero
   ------------------------------------------------------------------------- */
.ds-hero {
  position: relative;
  /* Lapisan putih di bawah meredupkan gradien sebelum tepi section,
     supaya tidak ada garis potong keras saat overflow dipotong. */
  background:
    linear-gradient(to bottom, rgb(255 255 255 / 0) 70%, #fff 100%),
    var(--grad-hero),
    #fff;
  padding-block: 24px 48px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .ds-hero {
    background: radial-gradient(90% 60% at 100% 100%, #c7c3ff 0%, #fff 72%), #fff;
  }
}
@media (min-width: 768px) {
  .ds-hero { padding-block: 40px 72px; }
}
@media (min-width: 1024px) {
  .ds-hero { padding-block: 56px 88px; }
}

.ds-hero__grid { display: grid; gap: 32px; }
.ds-hero__text { max-width: 620px; }
.ds-hero__title { margin: 0 0 12px; }
.ds-hero__tagline {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-ink);
}
.ds-hero__media { display: grid; gap: var(--gap); }

.ds-hero__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #dcd9ff 0%, #b7a7ff 55%, #8b7bff 100%);
}
.ds-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.ds-hero__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(14 14 18 / .45);
}

.ds-hero__cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
.ds-hero__cards .ds-tile { display: flex; flex-direction: column; gap: 12px; }
.ds-hero__card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ds-hero__card-title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
}
.ds-hero__card-text {
  margin: 0;
  font-size: clamp(.9375rem, .9rem + .2vw, 1rem);
  line-height: 1.55;
  opacity: .92;
  overflow-wrap: anywhere;
}

@media (min-width: 480px) {
  .ds-hero__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ds-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }
  .ds-hero__media { order: -1; }
  .ds-hero__photo { aspect-ratio: 1.65 / 1; }
}

/* -------------------------------------------------------------------------
   10. Work / kartu proyek
   ------------------------------------------------------------------------- */
.ds-work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 640px) {
  .ds-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ds-work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-ink);
  color: #fff;
  text-decoration: none;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
@media (min-width: 640px) {
  .ds-work-card { aspect-ratio: 1 / 1; }
}

.ds-work-card__img,
.ds-work-card__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.ds-work-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a1d52 0%, #6c5ce0 60%, #12c2e0 100%);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}

.ds-work-card__scrim {
  position: absolute;
  inset: 0;
  background: var(--grad-scrim);
  z-index: 1;
}

.ds-work-card__top {
  position: absolute;
  inset: var(--gap) var(--gap) auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.ds-work-card__brand { display: grid; gap: 2px; }
.ds-work-card__name { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.ds-work-card__cat { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

.ds-work-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: calc(var(--pad-card) + 4px);
  display: grid;
  gap: 6px;
}
.ds-work-card__title { margin: 0; font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ds-work-card__desc {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  opacity: .88;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds-work-card__arrow {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  background: #fff;
  color: var(--color-ink);
}
.ds-work-card__arrow svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .ds-work-card:hover .ds-work-card__img { transform: scale(1.03); }
  .ds-work-card:hover .ds-work-card__arrow { background: var(--color-ink); color: #fff; }
}

/* -------------------------------------------------------------------------
   10b. Blog / kartu artikel
   ------------------------------------------------------------------------- */
.ds-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 640px) {
  .ds-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ds-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Gradien kartu: cukup gelap agar judul putih lolos kontras WCAG AA. */
.ds-post-card {
  --post-grad: linear-gradient(135deg, #6c5ce0 0%, #a13ec9 100%);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ds-post-card:nth-child(3n+2) .ds-post-card__cover {
  --post-grad: radial-gradient(120% 130% at 18% 12%, #4b2a8a 0%, #1c1035 72%);
}
.ds-post-card:nth-child(3n) .ds-post-card__cover {
  --post-grad: linear-gradient(135deg, #b3266a 0%, #6c5ce0 100%);
}

.ds-post-card__cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  aspect-ratio: 4 / 3;
  padding: var(--pad-tile);
  background: var(--post-grad);
  color: #fff;
  overflow: hidden;
}

/* Cover foto: gambar penuh, scrim dua arah supaya label & judul tetap terbaca. */
.ds-post-card__img,
.ds-post-card__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.ds-post-card__img {
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.ds-post-card__scrim { background: var(--grad-scrim); }
.ds-post-card__cat {
  margin: 0;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ds-post-card__title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ds-post-card__body {
  display: grid;
  gap: 12px;
  padding: var(--pad-tile);
}
.ds-post-card__excerpt {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
  overflow-wrap: anywhere;
}
.ds-post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-violet-500);
}
.ds-post-card__more svg { width: 16px; height: 16px; }

@media (hover: hover) {
  .ds-post-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-2);
  }
  .ds-post-card:hover .ds-post-card__img { transform: scale(1.03); }
  .ds-post-card:hover .ds-post-card__more { color: var(--color-blue-600); }
}

/* Foto pembuka artikel: rasio mengikuti sumber 4:3 agar tidak ada bagian terpotong. */
.ds-post-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface-subtle);
}
.ds-post-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Halaman baca artikel: satu kolom sempit agar baris teks nyaman dibaca. */
.ds-post-read {
  max-width: 760px;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   11. About (bento)
   ------------------------------------------------------------------------- */
.ds-about {
  display: grid;
  gap: var(--gap);
}
/* Kartu profil tidak setinggi foto; isinya ditengahkan agar tidak
   menyisakan rongga kosong besar di bawah. */
.ds-about > .ds-card { justify-content: center; }
.ds-about__media {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1b1240 0%, #4b3fb5 100%);
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.ds-about__media > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ds-about__media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(4 12 32 / .88) 0%, rgb(4 12 32 / .45) 45%, transparent 75%);
}
.ds-about__media-body {
  position: relative;
  z-index: 1;
  padding: var(--pad-tile);
  display: grid;
  gap: 10px;
  max-width: 46ch;
}
.ds-about__media-body .ds-h2,
.ds-about__media-body p { color: #fff; }
.ds-about__media-body .ds-eyebrow { color: rgb(255 255 255 / .8); }
.ds-about__media-body p { margin: 0; font-size: .9375rem; line-height: 1.6; opacity: .92; }

@media (min-width: 1024px) {
  .ds-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ds-about__media { min-height: 100%; }
}

/* -------------------------------------------------------------------------
   12. Form
   ------------------------------------------------------------------------- */
.ds-form { display: grid; gap: 20px; }
.ds-field { display: grid; gap: 6px; }
.ds-label { font-size: .875rem; font-weight: 600; color: var(--color-ink); }
.ds-label .ds-req,
.ds-req { color: var(--color-danger); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--color-surface-subtle);
}

.ds-input,
.ds-select,
.ds-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ds-select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2355555f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ds-textarea {
  min-height: 140px;
  padding: 12px 16px;
  resize: vertical;
}
.ds-input::placeholder,
.ds-textarea::placeholder { color: #9a9aa6; }

.ds-input:focus-visible,
.ds-select:focus-visible,
.ds-textarea:focus-visible {
  outline: 2px solid var(--color-blue-600);
  outline-offset: 1px;
  border-color: var(--color-blue-600);
}
.ds-input[aria-invalid="true"],
.ds-select[aria-invalid="true"],
.ds-textarea[aria-invalid="true"] { border-color: var(--color-danger); }

.ds-help { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--color-ink-muted); }
.ds-error { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--color-danger); display: flex; gap: 6px; align-items: flex-start; }
.ds-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--color-danger); color: #fff; font-size: .6875rem; font-weight: 700; }

.ds-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; }
.ds-check input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--color-blue-600);
  flex: 0 0 auto;
}

.ds-form-actions { display: grid; gap: 12px; }
.ds-form-actions .ds-btn { width: 100%; }
@media (min-width: 640px) {
  .ds-form-actions { display: flex; flex-wrap: wrap; }
  .ds-form-actions .ds-btn { width: auto; }
}

/* honeypot tetap tidak terlihat walau tanpa inline style */
.ds-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------------------
   13. Tabel
   ------------------------------------------------------------------------- */
.ds-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: #fff;
}
.ds-table-scroll { overflow-x: auto; }

.ds-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ds-table caption { padding: 12px 16px; text-align: left; font-size: .8125rem; color: var(--color-ink-muted); }
.ds-table th,
.ds-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}
.ds-table th {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  background: var(--color-surface-subtle);
  white-space: nowrap;
}
.ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-table .ds-num { text-align: right; font-variant-numeric: tabular-nums; }
.ds-table__actions { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ds-table__actions a { font-weight: 600; text-decoration: none; }
.ds-table__actions a:hover { text-decoration: underline; }
.ds-link-action { color: var(--color-blue-600); }
.ds-link-danger { color: var(--color-danger); }
.ds-link-muted { color: var(--color-ink-muted); }

@media (hover: hover) {
  .ds-table tbody tr:hover { background: var(--color-surface-subtle); }
}

.ds-table tbody tr.is-unread { background: #f3f5ff; }

/* Mobile: tiap baris jadi kartu */
@media (max-width: 767px) {
  .ds-table--cards thead { display: none; }
  .ds-table--cards,
  .ds-table--cards tbody,
  .ds-table--cards tr,
  .ds-table--cards td { display: block; width: 100%; }
  .ds-table--cards caption { display: block; width: 100%; }
  .ds-table--cards tr {
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
  }
  .ds-table--cards tr:last-child { border-bottom: 0; }
  .ds-table--cards td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    padding: 8px 16px;
    text-align: right;
  }
  .ds-table--cards td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-ink-muted);
    text-align: left;
  }
  .ds-table--cards td.ds-table__actions { justify-content: flex-end; }
  .ds-table--cards td.ds-table__empty { justify-content: center; text-align: center; }
  .ds-table--cards td.ds-table__empty::before { content: none; }
}

/* -------------------------------------------------------------------------
   14. CTA banner
   ------------------------------------------------------------------------- */
.ds-cta {
  position: relative;
  overflow: hidden;
  padding: 48px 20px;
  border-radius: var(--radius-lg);
  background: var(--grad-cta);
  color: #fff;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.ds-cta .ds-eyebrow { color: rgb(255 255 255 / .85); margin: 0; }
.ds-cta .ds-eyebrow::before { background: rgb(255 255 255 / .7); }
.ds-cta__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 22ch;
  text-wrap: balance;
}
.ds-cta__text { margin: 0; max-width: 46ch; color: rgb(255 255 255 / .9); font-size: .9375rem; }
.ds-cta .ds-btn { width: 100%; }
/* Biru --color-blue-600 melebur dengan zona biru gradien, jadi tombol
   di banner memakai isi putih agar batasnya tetap terbaca. */
.ds-cta .ds-btn--accent { background: #fff; color: var(--color-ink); }
@media (hover: hover) {
  .ds-cta .ds-btn--accent:hover { background: #ecebff; color: var(--color-ink); }
}
@media (min-width: 640px) {
  .ds-cta { padding: 80px 32px; }
  .ds-cta .ds-btn { width: auto; }
}
@media (min-width: 1024px) {
  .ds-cta { padding: 112px 48px; }
}

/* -------------------------------------------------------------------------
   15. Proyek detail
   ------------------------------------------------------------------------- */
.ds-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-decoration: none;
}
.ds-breadcrumb:hover { color: var(--color-ink); }

.ds-article { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .ds-article { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
}

.ds-prose { display: grid; gap: 28px; font-size: 1rem; line-height: 1.7; color: var(--color-ink-muted); }
.ds-prose > section { display: grid; gap: 8px; }
.ds-prose h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
}
.ds-prose p { margin: 0; max-width: 68ch; overflow-wrap: anywhere; }
.ds-prose a { color: var(--color-blue-600); text-decoration: underline; }

.ds-aside { display: grid; gap: 12px; }
@media (min-width: 1024px) { .ds-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

.ds-meta-list { display: grid; gap: 16px; margin: 0; }
.ds-meta-list dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink-muted); }
.ds-meta-list dd { margin: 4px 0 0; font-size: .9375rem; }

.ds-gallery { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .ds-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds-gallery a,
.ds-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ds-media-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-surface-subtle);
}
@media (min-width: 768px) { .ds-media-hero { aspect-ratio: 16 / 8; } }

.ds-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ece9ff 0%, #d5cfff 100%);
  color: var(--color-ink-muted);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ds-media-fallback--hero {
  aspect-ratio: auto;
  height: clamp(180px, 24vw, 320px);
}

/* -------------------------------------------------------------------------
   16. Filter / pill nav
   ------------------------------------------------------------------------- */
.ds-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-filters--center { justify-content: center; }
.ds-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-ink-muted);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ds-pill[aria-current="true"] {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}
@media (hover: hover) {
  .ds-pill:hover { background: var(--color-surface-subtle); color: var(--color-ink); }
  .ds-pill[aria-current="true"]:hover { background: #26262e; color: #fff; }
}

/* -------------------------------------------------------------------------
   17. Empty state
   ------------------------------------------------------------------------- */
.ds-empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.ds-empty__title { margin: 0; font-size: 1rem; font-weight: 700; }
.ds-empty__text { margin: 0; font-size: .875rem; color: var(--color-ink-muted); max-width: 40ch; }

/* -------------------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------------------- */
.ds-footer {
  margin-top: 0;
  padding-block: 40px 24px;
  background: var(--color-ink);
  color: #fff;
}
.ds-footer__grid { display: grid; gap: 32px; }
.ds-footer__brand { display: grid; gap: 12px; align-content: start; justify-items: start; }
.ds-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.ds-footer__logo img { max-height: 36px; width: auto; }
.ds-footer__tagline { margin: 0; font-size: .9375rem; line-height: 1.6; color: rgb(255 255 255 / .72); max-width: 34ch; }
.ds-footer__heading {
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .6);
}
.ds-footer__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ds-footer__list a,
.ds-footer__list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: .9375rem;
  color: rgb(255 255 255 / .84);
  text-decoration: none;
}
.ds-footer__list a:hover { color: #fff; text-decoration: underline; }

.ds-footer__bottom {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / .14);
  font-size: .8125rem;
  color: rgb(255 255 255 / .6);
}
.ds-footer__bottom p { margin: 0; }
.ds-footer__bottom a { color: inherit; text-decoration: underline; }

@media (min-width: 768px) {
  .ds-footer { padding-block: 56px 28px; }
  .ds-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-footer__bottom { display: flex; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .ds-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}

/* -------------------------------------------------------------------------
   19. Admin shell
   ------------------------------------------------------------------------- */
.ds-admin { min-height: 100vh; background: var(--color-surface-subtle); }

.ds-admin__topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-ink);
  color: #fff;
}
.ds-admin__topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.ds-admin__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.ds-admin__brand span { color: rgb(255 255 255 / .6); font-weight: 500; }
.ds-admin__site-link { display: none; }
.ds-admin__topbar .ds-btn { min-height: 44px; }
.ds-admin__user { display: none; font-size: .875rem; color: rgb(255 255 255 / .8); }
.ds-admin__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .25);
  border-radius: var(--radius-circle);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.ds-admin__toggle svg { width: 22px; height: 22px; }

.ds-admin__body { display: grid; grid-template-columns: 1fr; }

.ds-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: min(84vw, 300px);
  padding: 20px 12px;
  background: #fff;
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur) var(--ease);
}
.ds-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  font-weight: 700;
}
.ds-sidebar__title {
  margin: 8px 12px 4px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.ds-sidebar__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
}
.ds-sidebar__link[aria-current="page"] {
  background: var(--color-ink);
  color: #fff;
  font-weight: 600;
}
.ds-sidebar__link--foot { margin-top: auto; }
@media (hover: hover) {
  .ds-sidebar__link:not([aria-current="page"]):hover { background: var(--color-surface-subtle); }
}

.ds-sidebar__backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(14 14 18 / .5);
  border: 0;
  padding: 0;
  display: none;
}
.ds-sidebar__backdrop.is-open { display: block; }

.ds-admin__main {
  min-width: 0;
  padding: 20px var(--gutter) 48px;
}
.ds-admin__page-head { display: grid; gap: 12px; margin-bottom: 24px; }
.ds-admin__page-head .ds-actions { margin-top: 0; }
.ds-admin__title { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.ds-admin__subtitle { margin: 0; font-size: .875rem; color: var(--color-ink-muted); }

@media (min-width: 1024px) {
  .ds-admin__body { grid-template-columns: 260px minmax(0, 1fr); }
  .ds-sidebar {
    position: sticky;
    top: 64px;
    transform: none;
    visibility: visible;
    transition: none;
    width: auto;
    height: calc(100vh - 64px);
  }
  .ds-sidebar__backdrop { display: none !important; }
  .ds-admin__toggle { display: none; }
  .ds-sidebar__head { display: none; }
  .ds-admin__user { display: inline; }
  .ds-admin__site-link { display: inline-flex; }
  .ds-admin__main { padding: 32px 32px 64px; }
  .ds-admin__page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

.ds-panel {
  padding: var(--pad-card);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}.ds-panel + .ds-panel { margin-top: var(--gap); }
.ds-panel__head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}
.ds-panel__title { margin: 0; font-size: 1.0625rem; font-weight: 700; }

.ds-dash-grid { display: grid; gap: var(--gap); margin-bottom: var(--gap); }
@media (min-width: 640px) { .ds-dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ds-dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ds-dash-card { display: grid; gap: 6px; padding: var(--pad-card); border-radius: var(--radius-md); }
.ds-dash-card__label { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.ds-dash-card__value { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }

.ds-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ds-list > li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.ds-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.ds-list > li:first-child { padding-top: 0; }

.ds-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
}
.ds-thumb--wide { width: 180px; height: 100px; }

.ds-input[type="file"] {
  height: auto;
  min-height: 48px;
  padding: 10px 12px;
  line-height: 1.6;
}
.ds-input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  color: var(--color-ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .ds-input[type="file"]::file-selector-button:hover { background: #eae8ff; }
}

/* Login admin */
.ds-auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: radial-gradient(70% 60% at 100% 0%, #c7c3ff 0%, #fff 62%), #fff;
}
.ds-auth__card {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.ds-auth__brand { display: grid; gap: 6px; margin-bottom: 24px; }
.ds-auth__title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.ds-auth__text { margin: 0; font-size: .875rem; color: var(--color-ink-muted); }
.ds-auth__foot { margin: 20px 0 0; font-size: .8125rem; color: var(--color-ink-muted); text-align: center; }

@media (min-width: 480px) { .ds-auth__card { padding: 32px; } }

/* -------------------------------------------------------------------------
   20. Utility akhir
   ------------------------------------------------------------------------- */
.ds-divider { height: 1px; background: var(--color-border); border: 0; margin: 24px 0; }
.ds-mt-0 { margin-top: 0; }
.ds-mt-4 { margin-top: 4px; }
.ds-mt-8 { margin-top: 8px; }
.ds-mt-16 { margin-top: 16px; }
.ds-mt-24 { margin-top: 24px; }
.ds-mt-32 { margin-top: 32px; }
.ds-mt-48 { margin-top: 48px; }
.ds-mb-16 { margin-bottom: 16px; }
.ds-mb-24 { margin-bottom: 24px; }
.ds-text-center { text-align: center; }
.ds-w-full { width: 100%; }
.ds-nowrap { white-space: nowrap; }
.ds-break { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .ds-work-card__img,
  .ds-btn,
  .ds-icon-btn,
  .ds-sidebar,
  .ds-menu {
    transition: none !important;
    animation: none !important;
  }
  .ds-work-card:hover .ds-work-card__img { transform: none; }
}
