/* ============================================================
   CORPORATE PROFESSIONAL — BLUE THEME
   ============================================================ */
[hidden] { display: none !important; }
:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-subtle: #dbeafe;
  --paper: #f8fafc;
  --paper-alt: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
  --ink: #f1f5f9;
  --ink-soft: #e2e8f0;
  --paper: #0f172a;
  --paper-alt: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-light: #1e293b;
  --white: #1e293b;
  --accent-light: #1e3a5f;
  --accent-subtle: #1e3a5f;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.2);
}
[data-theme="dark"] body { background: var(--paper); color: var(--text); }
[data-theme="dark"] .topbar { background: #0c1322; border-bottom-color: var(--border); }
[data-theme="dark"] .search-overlay__inner { background: var(--paper-alt); }
[data-theme="dark"] .stub-card { background: var(--paper-alt); border-color: var(--border); }
[data-theme="dark"] .stub-card h3 { color: #e2e8f0; }
[data-theme="dark"] .stub-card p { color: #94a3b8; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #0b1120 0%, #162a4a 50%, #1a3358 100%); }
[data-theme="dark"] .hero__name { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
[data-theme="dark"] .hero__role { color: rgba(255,255,255,0.8); }
[data-theme="dark"] .hero__bio { color: rgba(255,255,255,0.65); }
[data-theme="dark"] .hero__meta { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .hero__eyebrow { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .hero__badge { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }
[data-theme="dark"] .hero__badge-text { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .hero__sep { background: rgba(255,255,255,0.3); }
[data-theme="dark"] .footer { background: #080e1a; }
[data-theme="dark"] .section--alt { background: #131b2e; }
[data-theme="dark"] .gallery-item { background: var(--paper-alt); }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea { background: var(--paper); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .search-overlay__input { color: var(--text); border-bottom-color: var(--border); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ REVEAL ON SCROLL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ TOPBAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease), background 0.4s ease, border-color 0.4s ease;
}

.topbar__brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--dur) var(--ease);
}
.topbar__brand:hover { color: var(--accent-hover); }

.topbar__links { display: flex; gap: 32px; }
.topbar__links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
.topbar__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--dur) var(--ease);
}
.topbar__links a:hover { color: var(--text); }
.topbar__links a:hover::after { width: 100%; }

.topbar__dropdown { position: relative; }
.topbar__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.topbar__dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--dur) var(--ease);
}
.topbar__dropdown-trigger svg { transition: transform var(--dur) var(--ease); }
.topbar__dropdown:hover .topbar__dropdown-trigger { color: var(--text); }
.topbar__dropdown:hover .topbar__dropdown-trigger::after { width: 100%; }
.topbar__dropdown:hover .topbar__dropdown-trigger svg { transform: rotate(180deg); }
.topbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease);
  transform: translateX(-50%) translateY(4px);
  z-index: 110;
  padding: 6px 0;
}
.topbar__dropdown:hover .topbar__dropdown-menu,
.topbar__dropdown.is-open .topbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.topbar__dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.topbar__dropdown-menu a:hover { background: var(--paper-alt); color: var(--text); }
.topbar__dropdown-menu a::after { display: none; }
.topbar__dropdown-menu a.is-active { color: var(--accent); background: var(--accent-light); }

.topbar__actions { display: flex; align-items: center; gap: 8px; }
.topbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.topbar__icon:hover { background: var(--paper-alt); color: var(--text); }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: inline; }
[data-theme="light"] .icon-sun { display: inline; }
[data-theme="light"] .icon-moon { display: none; }
:root:not([data-theme]) .icon-sun { display: none; }
:root:not([data-theme]) .icon-moon { display: inline; }

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-overlay[hidden] { display: none; }
.search-overlay__inner {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: 0 16px;
}
.search-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}
.search-overlay__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.search-overlay__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 20px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  outline: none;
}
.search-overlay__input::placeholder { color: var(--text-muted); }
.search-overlay__results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}
.search-overlay__results:empty { display: none; }
.search-result {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.search-result:hover { background: var(--paper-alt); }
.search-result__type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-result__title {
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
}
.search-result__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.search-no-result {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ THEME TRANSITION (morph) ============ */
body, .topbar, .topbar__links a, .topbar__brand, .topbar__icon,
.hero, .hero__name, .hero__role, .hero__bio, .hero__eyebrow, .hero__meta, .hero__sep, .hero__badge, .hero__badge-text,
.section, .section--alt, .section__title, .section__eyebrow,
.stub-card, .stub-card h3, .stub-card p, .stub-card__meta,
.gallery-item, .gallery-item__caption,
.footer, .footer__brand, .footer__links a, .footer__bottom,
.search-overlay__inner, .search-overlay__input, .search-result, .search-no-result,
.field input, .field textarea,
.card, .card h3, .card p,
.modal, .modal__inner,
.alert, .empty {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(99,102,241,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero__text { flex: 1; min-width: 0; }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}

.hero__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.hero__role {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin: 0 0 20px;
}

.hero__bio {
  max-width: 52ch;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0 0 28px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.hero__sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  margin: 0 14px;
}

.hero__badge {
  width: 100px;
  height: 100px;
  min-width: 100px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__badge:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}
.hero__badge-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.8);
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
}
.section--alt {
  background: var(--paper-alt);
}
.section__header { margin-bottom: 32px; }
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 500;
}
.section__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

/* ============ GALERI ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ============ SLIDESHOW ============ */
.slideshow {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border-light);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.slideshow__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  cursor: grab;
}
.slideshow__track:active { cursor: grabbing; }
.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.slideshow__slide.is-active {
  opacity: 1;
}
.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}
.slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.slideshow__dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}
.slideshow__dot:hover { background: var(--text-muted); }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 22px;
}

/* ============ STUB CARDS (artikel / karya) ============ */
.stub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stub-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background 0.4s ease;
}
.stub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-subtle);
}
.stub-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.stub-card__content { padding: 24px; }
.stub-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  margin: 0 0 12px;
}
.stub-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}
.stub-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.6;
}
.stub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.stub-card__link::after { content: '\2192'; }
.stub-card__link:hover { color: var(--accent-hover); gap: 8px; }

.empty-note {
  font-size: 14px;
  color: var(--text-muted);
  padding: 20px 0;
}

/* ============ SEARCH BAR ============ */
.search-bar {
  margin-bottom: 28px;
}
.search-input {
  width: 100%;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ============ SECTION MORE BUTTON ============ */
.section__more {
  margin-top: 28px;
  text-align: center;
}
.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 0.15s var(--ease);
}
.btn--outline:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:active { transform: scale(0.97); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.back-link:hover { color: var(--accent); gap: 10px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  transition: background 0.4s ease;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 64px) 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.footer__brand-text { display: flex; flex-direction: column; gap: 2px; }
.footer__name {
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}
.footer__tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: rgba(255,255,255,0.85); }
.footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 32px;
}
.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}

/* ============ DETAIL ARTIKEL ============ */
.article-detail {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 20px 80px;
}
.article-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.article-detail__back:hover { color: var(--accent); gap: 10px; }
.article-detail__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 500;
}
.article-detail h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.article-detail__meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.article-detail__author {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.article-detail__author::after {
  content: "\00b7";
  margin-left: 10px;
  color: var(--border);
}
.article-detail__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.article-detail__image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.article-detail__body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.article-detail__body p { margin: 0 0 1.2em; }
.article-detail__body h2 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 1.5em 0 0.6em;
  color: var(--text);
}
.article-detail__body blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-secondary);
}
.article-detail__body ul,
.article-detail__body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.article-detail__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============ AUTH ============ */
.auth {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth__card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.auth__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 12px;
}
.auth__card h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.auth__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}
.auth__back {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.auth__back:hover { color: var(--accent); }

/* ============ FORM ELEMENTS ============ */
.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

.field-error {
  font-size: 13px;
  color: var(--danger);
  margin: -8px 0 14px;
}

.save-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
  margin-top: 10px;
}

.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform 0.15s var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-sm); }
.auth .btn--primary { width: 100%; }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: var(--paper-alt); }

.btn[disabled] { opacity: 0.5; cursor: progress; }

/* ============ ADMIN LAYOUT ============ */
.admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 80vh;
}
@media (max-width: 720px) {
  .admin { grid-template-columns: 1fr; }
}

.admin__side {
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
@media (max-width: 720px) {
  .admin__side { border-right: none; border-bottom: 1px solid var(--border); }
}
.admin__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.admin__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.admin__tab {
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.admin__tab:hover { background: var(--paper-alt); color: var(--text); }
.admin__tab.is-active { background: var(--accent); color: var(--white); }

.admin__logout { margin-top: 20px; }

.admin__body { padding: 32px clamp(20px, 4vw, 48px); }
.admin__body h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.admin__panel {
  display: none;
  animation: fadein 0.3s var(--ease);
}
.admin__panel.is-active { display: block; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.stack { max-width: 520px; }
.stack--wide { max-width: 900px; }

#view-public, #view-article, #view-all-gallery, #view-all-articles, #view-all-karya {
  display: flex; flex-direction: column; min-height: calc(100vh - 64px);
}
#view-public .footer, #view-article .footer, #view-all-gallery .footer, #view-all-articles .footer, #view-all-karya .footer {
  margin-top: auto;
}
#view-all-gallery .section, #view-all-articles .section, #view-all-karya .section {
  padding-top: clamp(16px, 3vw, 32px);
}

/* ============ EDITOR (WYSIWYG) ============ */
.editor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.editor:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 8px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--border);
}
.editor__btn {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.editor__btn:hover { background: var(--white); border-color: var(--border); color: var(--text); }
.editor__btn.is-active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.editor__sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}
.editor__area {
  min-height: 340px;
  max-height: 700px;
  overflow-y: auto;
  padding: 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  outline: none;
}
.editor__area:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  opacity: 0.7;
}
.editor__area p { margin: 0 0 1em; }
.editor__area h2 {
  font-weight: 700;
  font-size: 20px;
  margin: 1em 0 0.5em;
}
.editor__area blockquote {
  margin: 0.8em 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-secondary);
}
.editor__area ul,
.editor__area ol { margin: 0 0 1em; padding-left: 1.4em; }
.editor__area h3 { font-weight: 700; font-size: 17px; margin: 0.8em 0 0.4em; }
.editor__area pre {
  margin: 0.8em 0;
  padding: 12px 16px;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
}
.editor__area hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 1.2em 0;
}
.editor__area a { color: var(--accent); text-decoration: underline; }
.editor__btn svg { flex-shrink: 0; }

/* ── category select & manager ── */
.cat-select { display: flex; gap: 6px; align-items: stretch; position: relative; }
.cat-select select { flex: 1; min-width: 0; padding: 8px 12px; font-family: var(--font-body); font-size: 13px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--text); outline: none; transition: border-color var(--dur) var(--ease); }
.cat-select select:focus { border-color: var(--accent); }
.cat-select .btn { flex-shrink: 0; }

.cat-manager {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cat-manager[hidden] { display: none; }
.cat-manager__add {
  display: flex; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.cat-manager__add input {
  flex: 1; padding: 6px 10px; font-family: var(--font-body); font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); color: var(--text); outline: none;
}
.cat-manager__add input:focus { border-color: var(--accent); }
.cat-manager__list { max-height: 180px; overflow-y: auto; padding: 2px 0; }
.cat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; font-size: 13px;
  transition: background var(--dur) var(--ease);
}
.cat-row:hover { background: var(--paper-alt); }
.cat-row__actions { display: flex; gap: 4px; }

.admin-row__tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 4px;
  vertical-align: middle;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-list {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 780px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow var(--dur) var(--ease);
}
.admin-row:hover { box-shadow: var(--shadow-xs); }
.admin-row__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.admin-row__thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper-alt);
}
.admin-row__title {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-row__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.admin-row__actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-row__actions button {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur) var(--ease);
}
.admin-row__actions button:hover { color: var(--text); }
.admin-row__actions .danger:hover { color: var(--danger); }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { height: 56px; padding: 0 16px; }
  .topbar__links { gap: 20px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
  .topbar__links::-webkit-scrollbar { display: none; }
  .topbar__links a { white-space: nowrap; font-size: 14px; }
  .topbar__dropdown-menu {
    position: fixed;
    top: 52px;
    left: 16px;
    right: auto;
    min-width: 180px;
    max-width: 60vw;
    transform: none;
    z-index: 200;
  }
  .topbar__dropdown.is-open .topbar__dropdown-menu { transform: none; }
  .topbar__dropdown:hover .topbar__dropdown-menu { transform: none; }
  .search-overlay { padding-top: 70px; }
  .search-overlay__inner { margin: 0 12px; }
  .search-overlay__input { font-size: 16px; padding: 16px 20px; }

  .hero__inner { flex-direction: column-reverse; text-align: center; padding: 48px 20px 56px; gap: 32px; }
  .hero__eyebrow { font-size: 14px; }
  .hero__name { font-size: 36px; }
  .hero__role { font-size: 18px; }
  .hero__bio { font-size: 15px; max-width: 100%; line-height: 1.7; }
  .hero__meta { justify-content: center; flex-wrap: wrap; font-size: 13px; }
  .hero__badge { width: 88px; height: 88px; min-width: 88px; }
  .hero__badge-text { font-size: 28px; }

  .section { padding: 40px 20px; }
  .section__header { margin-bottom: 28px; }
  .section__eyebrow { font-size: 13px; }
  .section__title { font-size: 26px; }

  .gallery-grid { gap: 14px; }
  .slideshow { max-width: 100%; border-radius: var(--radius); }
  .gallery-item__caption { opacity: 1; transform: none; position: static; background: none; padding: 8px 2px 0; color: var(--text); font-size: 12px; }

  .stub-grid { grid-template-columns: 1fr; gap: 16px; }
  .stub-card__content { padding: 22px 20px 20px; }
  .stub-card h3 { font-size: 19px; }
  .stub-card p { font-size: 15px; line-height: 1.65; }

  .btn--outline { font-size: 15px; padding: 12px 28px; }

  .search-input { font-size: 15px; padding: 13px 16px; }

  .footer__inner { flex-direction: column; padding: 40px 20px 28px; }
  .footer__links { gap: 18px 24px; }
  .footer__links a { font-size: 14px; }
  .footer__bottom { padding: 0 20px 28px; }
  .footer__bottom p { padding-top: 22px; }

  .article-detail { padding: 28px 20px 64px; }
  .article-detail h1 { font-size: 30px; }
  .article-detail__body { font-size: 17px; line-height: 1.85; }
  .article-detail__meta-row { flex-wrap: wrap; row-gap: 4px; }

  .article-detail .footer,
  .all-items .footer { margin-top: 48px; }

  .auth { padding: 24px 14px; min-height: 60vh; }
  .auth__card { padding: 32px 24px; }

  .field-row { grid-template-columns: 1fr; }
  .field input, .field textarea { font-size: 16px; }
  .field > span { font-size: 14px; }

  .admin { grid-template-columns: 1fr; min-height: auto; }
  .admin__side { padding: 16px; }
  .admin__nav { flex-direction: row; overflow-x: auto; gap: 6px; }
  .admin__tab { white-space: nowrap; font-size: 15px; padding: 11px 16px; }
  .admin__logout { margin-top: 12px; align-self: flex-start; }
  .admin__body { padding: 24px 20px 48px; }
  .admin__body h2 { font-size: 22px; }

  #view-public, #view-article, #view-all-gallery, #view-all-articles, #view-all-karya {
    display: flex; flex-direction: column; min-height: calc(100vh - 56px);
  }
  #view-public .footer, #view-article .footer, #view-all-gallery .footer, #view-all-articles .footer, #view-all-karya .footer {
    margin-top: auto;
  }
  #view-all-gallery .section, #view-all-articles .section, #view-all-karya .section {
    padding-top: 16px;
  }

  .stack, .stack--wide { max-width: 100%; }

  .editor__toolbar {
    gap: 2px; padding: 6px;
    overflow-x: auto; flex-wrap: nowrap;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .editor__toolbar::-webkit-scrollbar { display: none; }
  .editor__btn { min-width: 30px; height: 30px; padding: 0 7px; font-size: 12px; flex-shrink: 0; }
  .editor__sep { flex-shrink: 0; }
  .editor__area { min-height: 200px; padding: 16px; font-size: 16px; }

  .cat-select { flex-direction: column; gap: 8px; }
  .cat-select select { min-width: 0; }
  .cat-select .btn { width: 100%; }

  .admin-row { flex-wrap: wrap; }
  .admin-row__left { width: 100%; }
  .admin-row__actions { width: 100%; justify-content: flex-end; }
  .admin-row__title { font-size: 15px; }

  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; font-size: 15px; padding: 12px 20px; }
}

@media (max-width: 380px) {
  .hero__name { font-size: 30px; }
  .hero__badge { width: 72px; height: 72px; min-width: 72px; }
  .hero__badge-text { font-size: 24px; }
  .footer__brand { flex: 1 1 100%; }
}
