/* ═══════════════════════════════════════════════════════════════
   Enuma Technology — stylesheet tunggal (tanpa framework/build step)
   Porting design system dari rebuild React+Tailwind, dioptimalkan:
   animasi transform/opacity-only, font variable self-hosted.
   ═══════════════════════════════════════════════════════════════ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}

/* ---------- Tokens ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --ink: #111827;
  --bg: #f8fafc;
  --line: #e5e7eb;
  --gray-400: #94a3b8;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Space Grotesk Variable', 'Inter Variable', ui-sans-serif, sans-serif;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 14px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 12px 32px rgb(37 99 235 / 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Lewati layout/paint section di bawah fold sampai mendekati viewport */
main > section:not(#hero), .site-footer { content-visibility: auto; contain-intrinsic-size: auto 700px; }

.container { max-width: 80rem; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 64rem; }
.container-article { max-width: 48rem; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }

/* ---------- Ikon ---------- */
svg { flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 44px; height: 44px; }
.text-primary { color: var(--primary); }

/* ---------- Animasi dasar ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.45; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes bounce-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.float { animation: float 7s ease-in-out infinite; }
.float-slow { animation: float 11s ease-in-out infinite; }
.spin-slow { animation: spin 52s linear infinite; }
.spin-mid { animation: spin 26s linear infinite; }
.spin-rev { animation: spin-rev 38s linear infinite; }
.bounce { animation: bounce-y 1.8s ease-in-out infinite; }

/* Entrance saat load (halaman detail/header) */
.anim-in { opacity: 0; animation: fade-up 0.65s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }

/* Reveal on-scroll (IntersectionObserver menambah .in-view) */
.reveal { opacity: 0; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out); transition-delay: var(--rd, 0ms); will-change: opacity, transform; }
.reveal[data-reveal='up'] { transform: translateY(28px); }
.reveal[data-reveal='left'] { transform: translateX(-32px); }
.reveal[data-reveal='right'] { transform: translateX(32px); }
.reveal[data-reveal='scale'] { transform: scale(0.94); }
.reveal[data-reveal='blur'] { filter: blur(6px); transform: translateY(12px); }
.reveal.in-view { opacity: 1; transform: none; filter: none; }
/* Tanpa JS: tetap terlihat */
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; filter: none; }

/* ---------- Tombol & label ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 24px; font-size: 0.875rem; font-weight: 600;
  transition: all 0.3s var(--ease-out); white-space: nowrap;
}
.btn-lg { padding: 14px 28px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgb(37 99 235 / 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgb(37 99 235 / 0.35); }
.btn-primary:active { transform: scale(0.96); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--primary); border-color: rgb(37 99 235 / 0.4); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-white { background: #fff; color: var(--primary-dark); font-weight: 700; padding: 14px 30px; box-shadow: 0 10px 26px rgb(0 0 0 / 0.18); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgb(0 0 0 / 0.22); }
.btn-outline-primary { background: #fff; color: var(--primary); border: 1px solid rgb(37 99 235 / 0.4); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgb(37 99 235 / 0.25); }
.btn .icon-sm, .btn .icon-xs { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon-sm, .btn:hover .icon-xs { transform: translateX(4px); }

.btn-pulse { position: relative; }
.btn-pulse::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: rgb(37 99 235 / 0.6); z-index: -1;
  animation: pulse-ring 2.6s ease-out infinite;
}

.btn-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-top: 24px; }
.btn-link:hover .icon-sm { transform: translateX(4px); }
.btn-link .icon-sm { transition: transform 0.3s var(--ease-out); }
.btn-back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--gray-500); transition: color 0.3s; }
.btn-back:hover { color: var(--primary); }

.badge-label {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px;
  padding: 6px 16px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
}
.badge-label .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--primary); }
.badge-on-white { background: #fff; }
.eyebrow { text-align: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-400); }
.pill-badge {
  display: inline-block; border-radius: 999px; background: rgb(37 99 235 / 0.1);
  padding: 6px 14px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--primary-dark);
}
.tag {
  display: inline-block; border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 2px 10px; font-size: 0.7rem; font-weight: 500; color: var(--gray-500);
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tag-more { border-color: rgb(37 99 235 / 0.25); background: rgb(37 99 235 / 0.05); color: var(--primary); font-weight: 600; }

/* Kartu border gradasi (teknik double background) */
.gradient-border {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--line) 0%, var(--line) 55%, rgb(37 99 235 / 0.45) 100%) border-box;
}
.gradient-border:hover {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgb(37 99 235 / 0.35), rgb(30 58 138 / 0.55)) border-box;
}

/* Underline animasi nav */
.nav-underline { position: relative; }
.nav-underline::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-underline:hover::after, .nav-underline.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
#scroll-progress-bar {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: all 0.5s;
}
.site-header.is-scrolled, .site-header:not(.is-transparent) {
  border-bottom-color: rgb(229 231 235 / 0.8);
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; transition: transform 0.3s; }
.logo-link:hover .logo img { transform: rotate(3deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.logo-name span { color: var(--primary); }
.logo-tag { margin-top: 4px; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray-500); white-space: nowrap; }

.nav-links { display: none; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--ink); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { display: none; padding: 10px 20px; }

.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
  background: rgb(255 255 255 / 0.7); padding: 2px; font-size: 0.72rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.lang-toggle a { border-radius: 999px; padding: 4px 10px; text-transform: uppercase; color: var(--gray-500); transition: all 0.3s; }
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle a.is-active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

.menu-toggle { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px; display: inline-flex; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

.mobile-menu {
  border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(16px); overflow: hidden;
}
.mobile-menu ul { padding: 16px 20px; display: grid; gap: 4px; }
.mobile-menu a { display: block; border-radius: 10px; padding: 12px 16px; font-weight: 500; }
.mobile-menu a:hover { background: var(--bg); }
.mobile-menu a.is-active { background: rgb(37 99 235 / 0.05); color: var(--primary); }
.mobile-menu .mobile-cta { padding-top: 8px; }
.mobile-menu .btn { border-radius: 999px; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Section umum ---------- */
section { padding-block: 64px; }
@media (min-width: 1024px) { section { padding-block: 80px; } }
.alt-bg { background: var(--bg); }

.section-heading { max-width: 42rem; margin: 0 auto 40px; text-align: center; }
.section-heading.is-left { margin-inline: 0; text-align: left; }
.section-heading h2 { margin-top: 18px; font-size: clamp(1.875rem, 4vw, 2.65rem); font-weight: 700; color: var(--ink); }
.section-heading p { margin-top: 12px; font-size: 1.05rem; color: var(--gray-500); }
.section-heading.on-dark h2 { color: #fff; }
.section-heading.on-dark .badge-label { border-color: rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.1); color: var(--blue-200); }
.section-heading.on-dark .badge-label .dot { background: var(--blue-300); }
.section-cta { margin-top: 40px; text-align: center; }
.empty-note { padding-block: 70px; text-align: center; color: var(--gray-500); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; min-height: 100svh; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f0f6ff 38%, #e6efff 62%, #f8fafc 100%);
  padding-block: 0;
}
.hero-grid-bg {
  position: absolute; inset: -56px;
  background-image:
    linear-gradient(rgb(37 99 235 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(37 99 235 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, black 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 999px; }
.hero-glow-1 { top: -160px; right: -10%; width: 560px; height: 560px; background: rgb(37 99 235 / 0.15); filter: blur(140px); }
.hero-glow-2 { bottom: -20%; left: -8%; width: 460px; height: 460px; background: rgb(30 58 138 / 0.1); filter: blur(130px); }

.hero-shapes { position: absolute; inset: 0; pointer-events: none; display: none; }
@media (min-width: 768px) { .hero-shapes { display: block; } }
.shape { position: absolute; }
.shape-tile { width: 64px; height: 64px; border-radius: 16px; border: 1px solid rgb(37 99 235 / 0.2); background: rgb(255 255 255 / 0.6); box-shadow: 0 10px 24px rgb(37 99 235 / 0.1); backdrop-filter: blur(8px); transform: rotate(3deg); }
.shape-dot { width: 40px; height: 40px; border-radius: 999px; background: rgb(37 99 235 / 0.2); }
.shape-ring { width: 32px; height: 32px; border-radius: 999px; border: 2px solid rgb(37 99 235 / 0.3); }

.hero-inner { position: relative; display: grid; align-items: center; gap: 40px; width: 100%; padding-top: 112px; padding-bottom: 64px; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.15fr 1fr; padding-top: 96px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgb(37 99 235 / 0.2); background: rgb(255 255 255 / 0.7);
  border-radius: 999px; padding: 8px 16px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--primary-dark); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.hero-copy h1 { margin-top: 24px; font-size: clamp(2.25rem, 5.4vw, 3.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.hero-subtitle { margin-top: 24px; max-width: 36rem; font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--gray-600); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 500; color: var(--gray-400); transition: color 0.3s;
}
.hero-scroll:hover { color: var(--primary); }

/* Hero visual: AI orb (CSS murni) */
.hero-visual { position: relative; display: none; aspect-ratio: 1; max-width: 520px; margin-inline: auto; width: 100%; }
@media (min-width: 1024px) { .hero-visual { display: block; } }
.orb-bed { position: absolute; inset: 12%; border-radius: 999px; background: rgb(37 99 235 / 0.2); filter: blur(90px); }
.orb-ring { position: absolute; border-radius: 999px; border: 1px solid rgb(37 99 235 / 0.2); }
.ring-1 { inset: 7%; }
.ring-2 { inset: 16%; border-style: dashed; border-color: rgb(37 99 235 / 0.25); }
.ring-3 { inset: 27%; border-color: rgb(37 99 235 / 0.15); }
.node { position: absolute; border-radius: 999px; background: var(--primary); }
.n1 { left: 50%; top: 0; width: 12px; height: 12px; transform: translate(-50%, -50%); box-shadow: 0 0 14px 4px rgb(37 99 235 / 0.45); }
.n2 { right: 7%; top: 72%; width: 8px; height: 8px; background: var(--blue-300); }
.n3 { bottom: 6%; left: 50%; width: 10px; height: 10px; transform: translateX(-50%); background: rgb(30 58 138 / 0.7); box-shadow: 0 0 10px 2px rgb(30 58 138 / 0.4); }
.n4 { left: 12%; top: 10%; width: 8px; height: 8px; background: #60a5fa; box-shadow: 0 0 10px 3px rgb(96 165 250 / 0.5); }
.orb-core {
  position: absolute; inset: 0; margin: auto; width: 200px; height: 200px; border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, rgb(219 234 254 / 0.95) 0%, rgb(96 165 250 / 0.85) 24%, rgb(37 99 235 / 0.9) 55%, rgb(30 58 138 / 0.95) 100%);
  box-shadow: 0 0 60px 12px rgb(37 99 235 / 0.35), inset 0 -18px 40px rgb(30 58 138 / 0.55), inset 0 14px 30px rgb(255 255 255 / 0.35);
}
.orb-shine { position: absolute; left: 18%; top: 12%; width: 38%; height: 26%; border-radius: 999px; background: rgb(255 255 255 / 0.5); filter: blur(6px); }
.orb-lat { position: absolute; left: 6%; right: 6%; height: 28%; border-top: 1px solid rgb(255 255 255 / 0.25); border-radius: 100%; }
.lat-1 { top: 34%; }
.lat-2 { top: 52%; left: 12%; right: 12%; border-top-color: rgb(255 255 255 / 0.2); }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgb(255 255 255 / 0.7); background: rgb(255 255 255 / 0.72);
  border-radius: 16px; padding: 10px 14px;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; color: var(--ink);
  box-shadow: 0 10px 24px rgb(37 99 235 / 0.15); backdrop-filter: blur(14px);
}
.hero-chip svg { color: var(--primary); }
.chip-1 { left: 2%; top: 20%; transform: rotate(-3deg); }
.chip-2 { right: 1%; bottom: 16%; transform: rotate(2deg); animation-delay: 1.4s; }

/* ---------- Clients ---------- */
.clients { border-block: 1px solid var(--line); background: #fff; padding-block: 40px; }
.marquee { position: relative; overflow: hidden; margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-item { display: flex; align-items: center; justify-content: center; height: 56px; opacity: 0.55; filter: grayscale(1); transition: all 0.5s; }
.client-item:hover { opacity: 1; filter: none; }
.client-item img { height: 48px; width: auto; max-width: 150px; object-fit: contain; }
.client-name { white-space: nowrap; font-family: var(--font-display); font-weight: 700; color: var(--gray-500); }

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; }
.about-grid { display: grid; align-items: center; gap: 56px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 11fr 9fr; gap: 80px; } }

.about-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-inline: auto; display: flex; align-items: center; justify-content: center; }
.av-glow { position: absolute; inset: 8%; border-radius: 999px; background: rgb(37 99 235 / 0.1); filter: blur(48px); }
.av-ring-outer { position: absolute; inset: 6%; border-radius: 999px; border: 1px solid var(--line); }
.av-ring-dashed { position: absolute; inset: 22%; border-radius: 999px; border: 1px dashed rgb(37 99 235 / 0.25); }
.av-card {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px;
  border: 1px solid rgb(255 255 255 / 0.7); background: rgb(255 255 255 / 0.82);
  border-radius: 24px; padding: 36px 40px; text-align: center;
  box-shadow: 0 24px 48px rgb(37 99 235 / 0.15); backdrop-filter: blur(14px);
}
.av-card img { height: 80px; width: auto; }
.av-name { font-family: var(--font-display); font-weight: 700; }
.av-sub { margin-top: 2px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-500); }
.av-dots { display: flex; gap: 6px; }
.av-dots span { height: 6px; width: 12px; border-radius: 999px; background: var(--line); }
.av-dots span.on { width: 24px; background: var(--primary); }
.av-orbit {
  position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px;
  color: var(--primary); box-shadow: 0 10px 24px rgb(37 99 235 / 0.1);
}
.o1 { left: 50%; top: 22%; transform: translate(-50%, -50%); }
.o2 { right: 22%; top: 32%; transform: translate(50%, -50%); }
.o3 { right: 22%; bottom: 32%; transform: translate(50%, 50%); }
.o4 { left: 50%; bottom: 22%; transform: translate(-50%, 50%); }
.o5 { left: 22%; bottom: 32%; transform: translate(-50%, 50%); }
.o6 { left: 22%; top: 32%; transform: translate(-50%, -50%); }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 36rem; margin: 32px auto 0; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 20px 12px; text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow 0.5s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-value { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 700; line-height: 1; color: var(--primary); }
.stat-label { margin-top: 8px; font-size: 0.72rem; line-height: 1.35; color: var(--gray-500); min-height: 2em; display: flex; align-items: center; }

.about-copy h2 { margin-top: 20px; font-size: clamp(1.875rem, 4vw, 2.65rem); font-weight: 700; }
.about-copy > p { margin-top: 18px; color: var(--gray-600); }
.about-points { margin-top: 26px; display: grid; gap: 14px; }
.about-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; font-weight: 500; }
.about-points svg { margin-top: 2px; }

/* ---------- Accordion (WhyUs & FAQ) ---------- */
.accordion { max-width: 48rem; margin-inline: auto; display: grid; gap: 12px; }
.accordion-item { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.accordion-item:hover { border-color: rgb(37 99 235 / 0.35); }
.accordion-item[open] { border-color: rgb(37 99 235 / 0.4); box-shadow: var(--shadow-md); }
.accordion-item summary {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-num { font-size: 0.8rem; color: var(--primary); font-weight: 700; }
.accordion-chevron { margin-left: auto; color: var(--gray-400); transition: transform 0.35s var(--ease-out); }
.accordion-item[open] .accordion-chevron { transform: rotate(180deg); color: var(--primary); }
.accordion-body { padding: 0 20px 20px; }
.accordion-item summary + .accordion-body p { color: var(--gray-500); font-size: 0.9375rem; }
.accordion .accordion-item[open] summary { color: var(--primary-dark); }

/* ---------- Services ---------- */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.services-grid .reveal { width: 100%; }
@media (min-width: 640px) { .services-grid .reveal { width: calc(50% - 12px); } }
@media (min-width: 1024px) { .services-grid .reveal { width: calc(33.333% - 16px); } }
@media (min-width: 1280px) { .services-grid .reveal { width: calc(20% - 19.2px); } }
.service-card {
  height: 100%; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); will-change: transform;
}
.service-card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.service-icon {
  display: inline-flex; border-radius: 14px; background: rgb(37 99 235 / 0.1); padding: 14px;
  color: var(--primary); transition: all 0.5s;
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; transform: rotate(6deg); }
.service-card h3 { margin-top: 20px; font-size: 1.125rem; transition: color 0.3s; }
.service-card:hover h3 { color: var(--primary); }
.service-card p { margin-top: 12px; font-size: 0.875rem; color: var(--gray-500); }

.specialties { margin-top: 56px; }
.specialties .marquee { margin-top: 24px; }
.specialty-pill {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px;
  padding: 10px 20px; font-size: 0.875rem; font-weight: 600; transition: all 0.3s;
}
.specialty-pill:hover { border-color: rgb(37 99 235 / 0.4); color: var(--primary); }

/* ---------- Process ---------- */
.process { position: relative; overflow: hidden; background: var(--primary-dark); color: #fff; }
.process-glow { position: absolute; top: -128px; left: 25%; width: 420px; height: 420px; border-radius: 999px; background: rgb(37 99 235 / 0.3); filter: blur(140px); }
.process-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.process-line { position: absolute; left: 0; top: 28px; display: none; height: 1px; width: 100%; background: linear-gradient(90deg, rgb(147 197 253 / 0.6), rgb(147 197 253 / 0.3), transparent); }
@media (min-width: 768px) { .process-line { display: block; } }
.process-num {
  display: flex; width: 56px; height: 56px; align-items: center; justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.1); border-radius: 16px;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--blue-200);
  backdrop-filter: blur(6px); transition: all 0.5s; position: relative; z-index: 1;
}
.process-step:hover .process-num { transform: translateY(-4px); background: #fff; color: var(--primary-dark); border-color: rgb(147 197 253 / 0.5); }
.process-step h3 { margin-top: 20px; font-size: 1.125rem; }
.process-step p { margin-top: 10px; font-size: 0.875rem; color: rgb(219 234 254 / 0.8); }

/* ---------- Kartu Portfolio & Artikel ---------- */
.thumb-fallback {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.thumb-fallback span { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: rgb(255 255 255 / 0.9); }

.project-card {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 21rem;
  overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgb(229 231 235 / 0.7);
  background: rgb(255 255 255 / 0.7); box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
  transition: all 0.4s var(--ease-out);
}
.project-card:hover { transform: translateY(-6px); border-color: rgb(37 99 235 / 0.4); background: #fff; box-shadow: 0 18px 40px rgb(37 99 235 / 0.15); }
.project-card-media { position: relative; height: 192px; flex-shrink: 0; overflow: hidden; background: var(--bg); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-card-badge {
  position: absolute; left: 14px; top: 14px; border-radius: 999px; background: rgb(255 255 255 / 0.9);
  padding: 4px 12px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-dark); box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); transition: all 0.3s; z-index: 2;
}
.project-card:hover .project-card-badge { background: var(--primary); color: #fff; transform: translateY(-2px); }
.project-card-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgb(30 58 138 / 0.85), rgb(30 58 138 / 0.25) 55%, transparent);
  opacity: 0; transition: opacity 0.4s;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-cta {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: #fff;
  padding: 6px 14px; font-size: 0.75rem; font-weight: 700; color: var(--primary-dark);
  box-shadow: var(--shadow-md); transform: translateY(10px); transition: transform 0.4s var(--ease-out);
}
.project-card:hover .project-card-cta { transform: translateY(0); }
.project-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.project-card-body h3 {
  font-size: 0.9375rem; line-height: 1.35; min-height: 2.6rem; transition: color 0.3s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card:hover .project-card-body h3 { color: var(--primary); }
.project-card-body > p {
  margin-top: 4px; font-size: 0.75rem; line-height: 1.35; min-height: 2rem; color: var(--gray-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card-tags { margin-top: auto; display: flex; align-items: center; gap: 6px; height: 26px; overflow: hidden; padding-top: 4px; }

.article-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: all 0.5s var(--ease-out);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.article-card-media img, .article-card-media .thumb-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.article-card:hover .article-card-media img { transform: scale(1.05); }
.article-card-badge {
  position: absolute; left: 16px; top: 16px; border-radius: 999px; background: rgb(255 255 255 / 0.9);
  padding: 4px 12px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--primary-dark); box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
}
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.article-card-date { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; color: var(--gray-500); }
.article-card-body h3 {
  margin-top: 10px; font-size: 1.125rem; line-height: 1.35; transition: color 0.3s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card:hover .article-card-body h3 { color: var(--primary); }
.article-card-excerpt {
  margin-top: 10px; flex: 1; font-size: 0.875rem; color: var(--gray-500);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-more { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.article-card-more .icon-sm { transition: transform 0.3s; }
.article-card:hover .article-card-more .icon-sm { transform: translateX(4px); }

/* Grid halaman list */
.cards-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.articles-grid { gap: 24px; }
.cards-grid > div { height: 100%; }
.cards-grid > div > a { height: 100%; }

/* ---------- Portfolio home split ---------- */
.portfolio-split { display: grid; gap: 40px; align-items: stretch; }
@media (min-width: 1024px) { .portfolio-split { grid-template-columns: 1fr 1fr; } }
.portfolio-col { display: flex; flex-direction: column; height: 100%; }
.subheading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.subheading-icon { border-radius: 14px; background: rgb(37 99 235 / 0.1); padding: 10px; color: var(--primary); }
.subheading h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.subheading p { margin-top: 4px; font-size: 0.875rem; color: var(--gray-500); }
.portfolio-mini-grid { display: grid; flex: 1; align-content: start; gap: 20px; }
@media (min-width: 640px) { .portfolio-mini-grid { grid-template-columns: repeat(2, 1fr); } }
.portfolio-col-cta { margin-top: 28px; text-align: center; }

.articles .articles-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .articles .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles .articles-grid { grid-template-columns: repeat(3, 1fr); } }
.articles .articles-grid > div { height: 100%; }

/* ---------- Empty state Education & Training ---------- */
.empty-training {
  position: relative; display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; border: 1px dashed rgb(37 99 235 / 0.3); background: rgb(255 255 255 / 0.6);
  border-radius: 24px; padding: 56px 24px; text-align: center; backdrop-filter: blur(4px);
}
.empty-training-art { position: relative; display: flex; width: 144px; height: 144px; align-items: center; justify-content: center; margin-bottom: 8px; }
.orbit-ring { position: absolute; inset: 0; border-radius: 999px; border: 1px dashed rgb(37 99 235 / 0.3); animation: spin 30s linear infinite; }
.orbit-ring::before { content: ''; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; border-radius: 999px; background: var(--primary); transform: translate(-50%, -50%); }
.orbit-ring::after { content: ''; position: absolute; right: 8%; bottom: 8%; width: 6px; height: 6px; border-radius: 999px; background: rgb(37 99 235 / 0.5); }
.empty-training-icon {
  display: flex; width: 96px; height: 96px; align-items: center; justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.7); border-radius: 28px;
  background: linear-gradient(135deg, rgb(37 99 235 / 0.12), rgb(37 99 235 / 0.05));
  color: var(--primary); box-shadow: 0 18px 40px rgb(37 99 235 / 0.15); backdrop-filter: blur(6px);
}
.satellite {
  position: absolute; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px; color: rgb(37 99 235 / 0.7); box-shadow: 0 6px 16px rgb(37 99 235 / 0.1);
}
.satellite.s1 { left: -48px; top: 12px; animation-delay: 1.4s; }
.satellite.s2 { right: -48px; top: 32px; animation-delay: 1.8s; }
.satellite.s3 { right: -64px; bottom: -12px; animation-delay: 2.2s; }
.empty-training h4 { margin-top: 22px; font-size: 1.5rem; }
.empty-training p { margin: 12px auto 0; max-width: 24rem; font-size: 0.875rem; color: var(--gray-500); }
.empty-training .btn { margin-top: 28px; }

/* ---------- CTA banner ---------- */
.cta-banner-wrap { padding-block: 64px; }
@media (min-width: 1024px) { .cta-banner-wrap { padding-block: 80px; } }
.cta-banner {
  position: relative; overflow: hidden; max-width: 64rem; margin-inline: auto;
  border-radius: 32px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 64px 32px; text-align: center; color: #fff; box-shadow: 0 26px 60px rgb(37 99 235 / 0.3);
}
@media (min-width: 640px) { .cta-banner { padding-inline: 56px; } }
.cta-banner::before { content: ''; position: absolute; right: -80px; top: -80px; width: 256px; height: 256px; border-radius: 999px; background: rgb(255 255 255 / 0.1); filter: blur(48px); }
.cta-banner::after { content: ''; position: absolute; left: -64px; bottom: -96px; width: 288px; height: 288px; border-radius: 999px; background: rgb(147 197 253 / 0.2); filter: blur(48px); }
.cta-banner h2 { position: relative; margin-inline: auto; max-width: 42rem; font-size: clamp(1.875rem, 3.6vw, 2.25rem); }
.cta-banner p { position: relative; margin: 16px auto 0; max-width: 36rem; color: var(--blue-100); }
.cta-banner .btn { position: relative; margin-top: 36px; }

/* ---------- Contact ---------- */
.contact-split { display: grid; gap: 32px; align-items: stretch; }
@media (min-width: 1024px) { .contact-split { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: grid; height: 100%; gap: 20px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .contact-card { grid-template-columns: 1fr 1fr; padding: 32px; } }
.contact-item { display: flex; gap: 16px; border: 1px solid transparent; border-radius: var(--radius); padding: 12px; transition: all 0.3s; }
.contact-item:hover { border-color: var(--line); background: rgb(248 250 252 / 0.6); }
.contact-icon { height: fit-content; border-radius: 14px; background: rgb(37 99 235 / 0.1); padding: 14px; color: var(--primary); transition: all 0.3s; }
.contact-item:hover .contact-icon { background: var(--primary); color: #fff; }
.contact-item h3 { font-size: 0.875rem; }
.contact-item p, .contact-item a { margin-top: 4px; display: block; font-size: 0.875rem; color: var(--gray-500); transition: color 0.3s; }
.contact-item a:hover { color: var(--primary); }
.contact-map { min-height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: 40px; padding-block: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-tagline { margin-top: 16px; max-width: 20rem; font-size: 0.875rem; color: var(--gray-500); }
.footer-socials { margin-top: 20px; display: flex; gap: 12px; }
.footer-socials a {
  display: inline-flex; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px; color: var(--gray-500); transition: all 0.3s;
}
.footer-socials a:hover { transform: translateY(-4px); border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-md); }
.footer-heading { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-list { margin-top: 16px; display: grid; gap: 10px; font-size: 0.875rem; }
.footer-list a { color: var(--gray-500); transition: color 0.3s; }
.footer-list a:hover { color: var(--primary); }
.footer-contact li { display: flex; gap: 10px; color: var(--gray-500); }
.footer-contact svg { margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line); background: #fff; padding-block: 20px; }
.footer-bottom p { text-align: center; font-size: 0.75rem; color: var(--gray-500); }
.footer-bottom strong { color: var(--ink); }

/* ---------- Page header & toolbar ---------- */
.page-header { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); padding: 128px 0 48px; }
.page-header::before { content: ''; position: absolute; top: -128px; right: 10%; width: 380px; height: 380px; border-radius: 999px; background: rgb(37 99 235 / 0.12); filter: blur(120px); }
.page-header .container { position: relative; }
.page-header h1 { margin-top: 20px; font-size: clamp(1.875rem, 4vw, 2.65rem); font-weight: 700; }
.page-header p { margin-top: 16px; max-width: 42rem; font-size: 1.05rem; color: var(--gray-500); }
.page-body { padding-block: 40px 96px; }

.type-tabs { display: flex; justify-content: center; margin-bottom: 28px; }
.type-tabs-inner { display: flex; width: 100%; max-width: 32rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); }
.type-tab {
  display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 10px 16px; font-size: 0.8rem; font-weight: 600;
  color: var(--gray-500); transition: all 0.3s;
}
.type-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-tab:hover { color: var(--primary); }
.type-tab.is-active { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgb(37 99 235 / 0.3); }

.toolbar { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
@media (min-width: 640px) { .toolbar { flex-direction: row; } }
.toolbar select, .admin-toolbar select {
  width: 100%; appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 12px 40px 12px 20px; font-size: 0.875rem; font-weight: 500; transition: all 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
@media (min-width: 640px) { .toolbar select { width: auto; } }
.toolbar select:focus, .search-box input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .inline-form input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(37 99 235 / 0.1);
}
.search-box { position: relative; width: 100%; }
@media (min-width: 640px) { .search-box { width: 18rem; } }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.search-box input {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 12px 16px 12px 44px; font-size: 0.875rem; transition: all 0.3s;
}

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.page-btn {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 10px 16px; font-size: 0.875rem; font-weight: 600; transition: all 0.3s;
}
.page-btn:not(.is-disabled):hover { border-color: rgb(37 99 235 / 0.4); color: var(--primary); }
.page-btn.is-disabled { opacity: 0.4; cursor: default; }
.page-num {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; color: var(--gray-500); transition: all 0.3s;
}
.page-num:hover { color: var(--primary); }
.page-num.is-active { border-color: transparent; background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgb(37 99 235 / 0.3); }

/* ---------- Detail pages ---------- */
.detail-main { padding-top: 112px; padding-bottom: 96px; }
.detail-hero { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); border-radius: 24px; box-shadow: 0 12px 32px rgb(37 99 235 / 0.05); }
.detail-hero img, .detail-hero .thumb-fallback { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.detail-grid { margin-top: 40px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1.6fr 1fr; } }
.detail-grid h1 { margin-top: 16px; font-size: clamp(1.875rem, 3.6vw, 2.25rem); }
.detail-lead { margin-top: 12px; font-size: 1.125rem; color: var(--gray-500); }
.detail-prose { margin-top: 32px; }
.detail-prose p { margin-bottom: 16px; line-height: 1.75; color: var(--gray-600); }
.detail-subheading { margin-top: 40px; font-size: 1.25rem; }
.gallery-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); }
.gallery-item img { aspect-ratio: 4 / 3; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.gallery-item:hover img { transform: scale(1.05); }

.detail-aside { height: fit-content; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
@media (min-width: 1024px) { .detail-aside { position: sticky; top: 96px; } }
.detail-aside dl { display: grid; gap: 20px; margin: 0; }
.aside-item { display: flex; gap: 14px; }
.aside-icon { height: fit-content; border-radius: 12px; background: rgb(37 99 235 / 0.1); padding: 10px; color: var(--primary); }
.aside-item dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.aside-item dd { margin: 2px 0 0; font-size: 0.875rem; font-weight: 500; }
.aside-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.aside-actions { margin-top: 28px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 24px; }
.aside-cta { margin-top: 24px; }

.article-header { margin-top: 24px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 0.75rem; font-weight: 500; color: var(--gray-500); }
.article-date { display: inline-flex; align-items: center; gap: 6px; }
.article-header h1 { margin-top: 16px; font-size: clamp(1.875rem, 3.6vw, 2.25rem); }
.article-hero { margin-top: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 32px rgb(37 99 235 / 0.05); }
.article-hero img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.article-prose { margin-top: 40px; }
.article-tags { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 28px; }

/* ---------- 404 ---------- */
.notfound { display: flex; min-height: 100svh; align-items: center; justify-content: center; padding: 80px 20px 40px; }
.notfound-inner { text-align: center; }
.notfound-code { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; }
.notfound-msg { margin-top: 8px; color: var(--gray-500); }
.notfound .btn-link { justify-content: center; }

/* ═══════════════════════ ADMIN ═══════════════════════ */
.admin-body { display: flex; min-height: 100svh; background: var(--bg); margin: 0; }
.admin-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; width: 64px; flex-direction: column;
  border-right: 1px solid var(--line); background: #fff;
}
@media (min-width: 768px) { .admin-sidebar { width: 240px; } }
.admin-sidebar-brand { display: flex; height: 72px; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); padding-inline: 16px; overflow: hidden; }
.admin-sidebar-brand .logo-text { display: none; }
@media (min-width: 768px) { .admin-sidebar-brand { justify-content: flex-start; } .admin-sidebar-brand .logo-text { display: flex; } }
.admin-nav { flex: 1; display: grid; gap: 4px; align-content: start; padding: 12px; }
.admin-nav-link {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 12px; padding: 12px; font-size: 0.875rem; font-weight: 600; color: var(--gray-500);
  transition: all 0.3s;
}
.admin-nav-link span { display: none; }
@media (min-width: 768px) { .admin-nav-link { justify-content: flex-start; } .admin-nav-link span { display: inline; } }
.admin-nav-link:hover { background: var(--bg); color: var(--ink); }
.admin-nav-link.is-active { background: rgb(37 99 235 / 0.1); color: var(--primary); }
.admin-nav-link.is-danger { color: #ef4444; }
.admin-nav-link.is-danger:hover { background: #fef2f2; }
.admin-sidebar-foot { border-top: 1px solid var(--line); padding: 12px; }
.admin-content { flex: 1; margin-left: 64px; padding: 24px; }
@media (min-width: 768px) { .admin-content { margin-left: 240px; padding: 40px; } }

.admin-title { font-size: 1.5rem; }
.admin-sub { margin-top: 4px; font-size: 0.875rem; color: var(--gray-500); }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

.flash { margin-bottom: 20px; border-radius: 12px; padding: 12px 16px; font-size: 0.875rem; font-weight: 500; }
.flash-success { background: #ecfdf5; color: #047857; }
.flash-error { background: #fef2f2; color: #dc2626; }

.stat-cards { margin-top: 32px; display: grid; gap: 20px; }
@media (min-width: 640px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.admin-stat-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: all 0.3s; }
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.admin-stat-head { display: flex; align-items: center; justify-content: space-between; }
.admin-stat-icon { border-radius: 12px; background: rgb(37 99 235 / 0.1); padding: 12px; color: var(--primary); display: inline-flex; }
.admin-stat-head .arrow { color: #d1d5db; transition: color 0.3s; }
.admin-stat-card:hover .arrow { color: var(--primary); }
.admin-stat-value { margin-top: 16px; font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; }
.admin-stat-label { margin-top: 4px; font-size: 0.875rem; color: var(--gray-500); }

.admin-panel { margin-top: 24px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.admin-panel h2 { font-size: 1.125rem; }
.quick-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.admin-toolbar { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.admin-toolbar select { width: auto; }

.table-panel { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { padding: 14px 16px; text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgb(248 250 252 / 0.7); }
.table-empty { text-align: center; padding-block: 40px !important; color: var(--gray-500); }
.cell-title { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-title strong { display: block; }
.cell-title small { color: var(--gray-500); }
.table-thumb { width: 52px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--bg); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.table-thumb small { color: #fff; font-weight: 700; font-size: 0.65rem; }
.col-actions { text-align: right; white-space: nowrap; }
.col-actions form { display: inline-block; }
.row-btn {
  display: inline-flex; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 7px; color: var(--gray-500); transition: all 0.3s; vertical-align: middle;
}
.row-btn:hover { color: var(--primary); border-color: rgb(37 99 235 / 0.4); }
.row-btn.is-danger:hover { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }
.status-badge { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 0.72rem; font-weight: 600; }
.status-badge.is-published { background: #ecfdf5; color: #047857; }
.status-badge.is-draft { background: #f3f4f6; color: var(--gray-500); }

.admin-cols { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .admin-cols { grid-template-columns: 1fr 2fr; } }
.inline-form { display: flex; gap: 10px; margin-top: 16px; }
.inline-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 0.875rem; }
.inline-edit { margin-top: 0; }
.admin-table code { font-size: 0.78rem; background: var(--bg); border-radius: 6px; padding: 2px 8px; }

/* Form admin */
.admin-form { margin-top: 0; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field { display: grid; gap: 6px; font-size: 0.875rem; }
.field > span { font-weight: 600; }
.field > span small { font-weight: 400; color: var(--gray-500); }
.field input:not([type='checkbox']), .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 0.875rem; background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field-check { display: flex; align-items: center; gap: 10px; align-self: end; padding-block: 10px; }
.field-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.field-hint { font-size: 0.78rem; color: var(--gray-500); }
.form-thumb-preview { margin-top: 8px; width: 160px; border-radius: 10px; border: 1px solid var(--line); }
.kept-images { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.kept-image { position: relative; display: block; cursor: pointer; }
.kept-image img { width: 100px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); transition: all 0.2s; }
.kept-image input { position: absolute; top: 6px; left: 6px; z-index: 1; accent-color: var(--primary); }
.kept-image input:not(:checked) + img { opacity: 0.35; border-color: #fca5a5; }
.form-actions { margin-top: 28px; display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }

/* Login */
.login-body { position: relative; display: flex; min-height: 100svh; align-items: center; justify-content: center; background: var(--bg); margin: 0; padding: 20px; overflow: hidden; }
.login-glow { position: absolute; border-radius: 999px; }
.login-glow.g1 { top: -128px; right: 15%; width: 420px; height: 420px; background: rgb(37 99 235 / 0.12); filter: blur(130px); }
.login-glow.g2 { bottom: -128px; left: 10%; width: 380px; height: 380px; background: rgb(30 58 138 / 0.1); filter: blur(120px); }
.login-card {
  position: relative; width: 100%; max-width: 28rem; border: 1px solid var(--line); background: #fff;
  border-radius: 24px; padding: 36px; box-shadow: 0 24px 60px rgb(37 99 235 / 0.1);
}
.login-logo { display: flex; justify-content: center; }
.login-card h1 { margin-top: 28px; text-align: center; font-size: 1.5rem; }
.login-sub { margin-top: 8px; text-align: center; font-size: 0.875rem; color: var(--gray-500); }
.login-form { margin-top: 32px; display: grid; gap: 8px; }
.login-form label { font-size: 0.875rem; font-weight: 600; margin-top: 10px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.input-icon input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 12px 44px;
  font-size: 0.875rem; transition: all 0.3s;
}
.input-icon input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(37 99 235 / 0.1); }
.login-form .btn { margin-top: 20px; }
.login-form .flash { margin: 10px 0 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-in, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
