/* ===== Tema: Hijau Daun Terang, aksen emerald–emas ===== */
:root {
  --bg: #f2fbf3;
  --bg-2: #e9f6ec;
  --panel: #ffffff;
  --panel-2: #f3fbf5;
  --ink: #14261a;
  --muted: #5a6b5e;
  --border: #d8e8db;
  --brand-1: #22c55e;
  --brand-2: #16a34a;
  --brand-3: #0f8f4e;
  --gold: #b8860b;
  --grad: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  --grad-gold: linear-gradient(135deg, #d9b26a, var(--gold));
  --shadow: 0 24px 50px -26px rgba(22, 163, 74, .4);
  --shadow-sm: 0 12px 30px -16px rgba(20, 38, 26, .18);
  --radius: 16px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
em { font-style: italic; color: var(--brand-1); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }

/* Subtle film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--grad); z-index: 210; transition: width .1s linear; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  cursor: pointer; border: none; transition: transform .2s ease, box-shadow .2s ease, background .2s; font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(22, 163, 74, .5); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(22, 163, 74, .65); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { transform: translateY(-3px); border-color: var(--brand-1); color: var(--brand-1); }
.btn-full { width: 100%; }

/* ===== Navbar ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0; transition: all .35s ease; }
.nav.scrolled { padding: 12px 0; background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: "Fraunces"; font-weight: 700; font-size: 1.05rem;
}
.logo-text { font-family: "Fraunces"; font-weight: 600; font-size: 1.05rem; letter-spacing: .3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .92rem; transition: color .2s; position: relative; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--brand-1); transition: width .25s; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { color: var(--ink) !important; border: 1px solid var(--border); padding: 9px 20px; border-radius: 999px; transition: all .2s; }
.nav-cta:hover { border-color: var(--brand-1); color: var(--brand-1) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 72vh; display: flex; align-items: center; padding: 120px 0 48px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 500px at 75% 10%, rgba(52, 211, 153, .16), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(16, 185, 129, .12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .78rem; font-weight: 700; color: var(--brand-1); margin-bottom: 22px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 500; margin-bottom: 24px; }
.hero-sub { color: var(--muted); max-width: 620px; font-size: 1.12rem; margin-bottom: 34px; }
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }
.hero-stats { display: flex; gap: 52px; flex-wrap: wrap; }
.stat b { font-family: "Fraunces"; font-weight: 600; font-size: 2.6rem; color: var(--ink); display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: .82rem; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; }
.scroll-cue span { width: 22px; height: 34px; border: 1px solid var(--border); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--brand-1); border-radius: 3px; animation: cue 1.6s ease infinite; }
@keyframes cue { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } 100% { opacity: 0; } }

/* ===== Sections ===== */
.section { padding: 68px 0; scroll-margin-top: 70px; }
.section-dark { background: var(--bg-2); border-block: 1px solid var(--border); }
.head { max-width: 680px; margin-bottom: 34px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 3px; font-size: .74rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.head h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.lead { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, background .3s, box-shadow .3s ease;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(52, 211, 153, .45); background: var(--panel-2); box-shadow: 0 20px 40px -22px rgba(22,163,74,.4); }
.svc-wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; align-items: center; }
.svc-wide h3 { grid-column: 2; }
.svc-wide p { grid-column: 2; }
.svc-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .25); margin-bottom: 20px; }
.svc-wide .svc-ico { grid-row: span 2; margin-bottom: 0; }
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--brand-1); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1.2rem; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: .93rem; }
.svc[role="button"] { cursor: pointer; }
.svc-more { display: inline-block; margin-top: auto; padding-top: 14px; font-size: .8rem; font-weight: 700; color: var(--brand-2); opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease; }
.svc:hover .svc-more, .svc:focus-visible .svc-more { opacity: 1; transform: none; }
.svc:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; }
.svc-wide .svc-more { grid-column: 2; }

/* ===== Portfolio: kartu per jenis ===== */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  text-align: left; cursor: pointer; font-family: inherit; color: var(--ink);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .3s ease, border-color .3s ease, background .3s;
}
.cat-card:hover { transform: translateY(-6px); border-color: rgba(52, 211, 153, .45); background: var(--panel-2); box-shadow: 0 20px 40px -22px rgba(22,163,74,.4); }
.cat-ico { font-size: 2.2rem; display: block; margin-bottom: 16px; }
.cat-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cat-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.cat-more { font-size: .82rem; font-weight: 700; color: var(--brand-1); }

/* ===== Slider proyek berjalan (marquee) ===== */
.showcase { padding: 26px 0 70px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); }
.showcase-head { text-align: center; margin-bottom: 26px; }
.showcase-head p { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
.slider {
  position: relative; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.slider-track { display: flex; gap: 18px; width: max-content; animation: slide 44s linear infinite; }
.slider:hover .slider-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.slide-tile {
  flex: 0 0 300px; width: 300px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.slide-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.slide-thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--panel); overflow: hidden; }
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap { padding: 14px 16px; }
.slide-cap .sc-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brand-2); font-weight: 700; }
.slide-cap h4 { font-size: 1rem; margin-top: 3px; font-weight: 600; }

/* ===== Modal daftar karya ===== */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 6, .72); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; z-index: 1; width: min(100%, 640px); max-height: 85vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 34px;
  box-shadow: var(--shadow); animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 1rem; transition: all .2s;
}
.modal-close:hover { color: var(--ink); border-color: var(--brand-1); }
.modal-title { font-size: 1.8rem; margin: 6px 0 22px; }
.modal-list { display: grid; gap: 12px; }
.modal-work { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, transform .2s; }
.modal-work:hover { border-color: rgba(52,211,153,.4); transform: translateX(4px); }
.modal-work.is-link { text-decoration: none; color: inherit; position: relative; }
.modal-work .mw-go { margin-left: auto; align-self: center; color: var(--brand-2); font-weight: 800; font-size: 1.1rem; opacity: 0; transition: opacity .2s, transform .2s; }
.modal-work.is-link:hover .mw-go { opacity: 1; transform: translateX(4px); }
.modal-work .mw-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--panel-2); flex-shrink: 0; overflow: hidden; }
.modal-work .mw-ico img { width: 100%; height: 100%; object-fit: cover; }
.modal-work h5 { font-family: "Fraunces"; font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; }
.modal-work .mw-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-1); font-weight: 700; }
.modal-work p { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.about-visual { position: relative; }
.about-frame {
  aspect-ratio: 4 / 5; border-radius: 22px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(52,211,153,.25), transparent 60%), var(--panel-2);
  border: 1px solid var(--border); font-family: "Fraunces"; font-size: 5rem; color: var(--brand-1); font-weight: 600;
}
.about-badge {
  position: absolute; bottom: -16px; right: -8px; background: var(--panel); border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .84rem; color: var(--gold); box-shadow: var(--shadow-sm);
}
.about-body h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 18px; }
.about-body p { color: var(--muted); margin-bottom: 16px; }
.about-points { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.about-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.about-points span { width: 24px; height: 24px; border-radius: 50%; background: rgba(52,211,153,.14); color: var(--brand-1); display: grid; place-items: center; font-size: .72rem; flex-shrink: 0; }

/* ===== Timeline ===== */
.timeline { display: grid; gap: 16px; max-width: 860px; }
.tl-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 28px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .25s, transform .25s;
}
.tl-item:hover { border-color: rgba(52,211,153,.45); transform: translateX(6px); box-shadow: 0 18px 36px -22px rgba(22,163,74,.4); }
.tl-year { font-family: "Fraunces"; font-weight: 600; color: var(--brand-1); }
.tl-body h4 { font-size: 1.2rem; margin-bottom: 2px; font-weight: 600; }
.tl-org { color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.tl-body p:last-child { color: var(--muted); font-size: .95rem; }

/* ===== Education ===== */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.edu-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: border-color .25s, transform .25s; }
.edu-card:hover { border-color: rgba(52,211,153,.45); transform: translateY(-5px); box-shadow: 0 20px 40px -22px rgba(22,163,74,.4); }
.edu-date { font-family: "Fraunces"; font-weight: 600; color: var(--brand-1); font-size: .9rem; }
.edu-card h4 { font-size: 1.25rem; margin: 8px 0 2px; font-weight: 600; }
.edu-org { color: var(--gold); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.edu-card p:last-child { color: var(--muted); font-size: .95rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: start; }
.contact-item {
  display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; transition: border-color .2s, transform .2s;
}
.contact-item:hover { border-color: rgba(52,211,153,.4); transform: translateX(6px); }
.ci-ico { font-size: 1.4rem; }
.contact-item b { font-size: .92rem; }
.contact-item p { color: var(--muted); font-size: .88rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--border); color: var(--brand-1); font-weight: 800; font-size: .82rem; transition: all .2s; }
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-4px); }
.contact-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%; padding: 18px 16px 8px; border: 1px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: var(--bg-2); color: var(--ink); resize: vertical; transition: border-color .2s;
}
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 16px; top: 16px; color: var(--muted); pointer-events: none; transition: .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: .7rem; font-weight: 700; color: var(--brand-1); }
.form-note { margin-top: 12px; font-weight: 600; font-size: .9rem; }
.form-note.ok { color: var(--brand-1); }
.form-note.err { color: #f87171; }

/* ===== Footer ===== */
.footer { padding: 34px 0; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.to-top { color: var(--muted); font-weight: 600; font-size: .9rem; transition: color .2s; }
.to-top:hover { color: var(--brand-1); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc-wide { grid-column: span 2; }
  .cats { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; height: 100vh;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 40px;
    background: var(--bg-2); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .hero-stats { gap: 32px; }
  .stat b { font-size: 2.1rem; }
}
@media (max-width: 520px) {
  .services, .cats, .edu-grid { grid-template-columns: 1fr; }
  .svc-wide { grid-column: span 1; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } .scroll-cue span::after { animation: none; } }

/* ===== Slide tile bisa diklik (link) ===== */
a.slide-tile { text-decoration: none; color: inherit; }

/* ===== Halaman Detail Proyek ===== */
.detail-body { background: var(--bg); }
.detail { padding: 120px 0 80px; min-height: 70vh; }
.detail-loading { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--brand-2); font-weight: 700; font-size: .9rem; }
.back-link:hover { text-decoration: underline; }
.detail-hero { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; margin-bottom: 48px; }
.detail-cover { aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--shadow); }
.detail-cover img { width: 72%; height: 72%; object-fit: contain; }
.detail-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 8px 0 14px; }
.meta-row { display: flex; gap: 30px; margin: 20px 0; flex-wrap: wrap; }
.meta span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.meta b { font-family: "Fraunces", serif; font-size: 1.1rem; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech span { background: var(--panel); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--brand-2); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.detail-sub { font-size: 1.5rem; margin: 0 0 16px; }
.detail-main > p { color: var(--muted); margin-bottom: 16px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow-sm); }
.shot img { width: 100%; display: block; }
.shot figcaption { padding: 10px 14px; font-size: .85rem; color: var(--muted); }
.no-shots { margin-top: 16px; padding: 26px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); background: var(--panel); }
.detail-side { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: sticky; top: 90px; }
.detail-side h3 { font-size: 1.2rem; margin-bottom: 14px; }
.feat-list { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.feat-list .fk { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: rgba(34,197,94,.14); color: var(--brand-2); display: grid; place-items: center; font-size: .68rem; margin-top: 2px; }
.feat-list li > [data-edit="feature"] { flex: 1; }

@media (max-width: 900px) {
  .detail-hero { grid-template-columns: 1fr; }
  .detail-cover { max-width: 240px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }

/* ===== Foto bisa diklik (lightbox) ===== */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 30px; background: rgba(4,8,6,.9); backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lb-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 1.1rem; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.22); }

/* ===== Toolbar edit ===== */
.edit-bar { position: fixed; right: 18px; bottom: 18px; z-index: 320; display: flex; gap: 8px; align-items: center; }
.eb-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.eb-btn { font-family: inherit; font-weight: 700; font-size: .86rem; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s; }
.eb-btn:hover { transform: translateY(-2px); }
.eb-btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.eb-btn.danger { color: #dc2626; }

/* ===== Status editing ===== */
body.editing [data-edit] { outline: 1px dashed rgba(34,197,94,.6); outline-offset: 3px; border-radius: 4px; transition: outline-color .2s; }
body.editing [data-edit]:focus { outline: 2px solid var(--brand-1); background: rgba(34,197,94,.06); }
body.editing .zoomable { cursor: pointer; }
body.editing .detail-cover, body.editing .shot { position: relative; }
body.editing .zoomable::after { content: ""; }
body.editing .detail-cover img, body.editing .shot img { outline: 2px dashed rgba(34,197,94,.5); outline-offset: -2px; }

/* Tombol tambah / hapus baris (hanya tampil saat edit) */
.add-row { display: none; margin-top: 12px; font-family: inherit; font-weight: 700; font-size: .82rem; padding: 8px 14px; border-radius: 10px; border: 1px dashed var(--brand-1); background: rgba(34,197,94,.06); color: var(--brand-2); cursor: pointer; }
body.editing .add-row { display: inline-block; }
.row-del { display: none; }
body.editing .row-del { display: inline-grid; place-items: center; }
.erow { display: flex; gap: 8px; align-items: flex-start; }
.erow p { flex: 1; }
.erow .row-del, .feat-list .row-del { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: none; background: #fee2e2; color: #dc2626; font-weight: 800; cursor: pointer; line-height: 1; }
.shot .row-del { position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(220,38,38,.92); color: #fff; font-weight: 800; cursor: pointer; }

/* ===== Panel Admin ===== */
.admin { padding: 110px 0 80px; min-height: 80vh; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.admin-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 8px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-list { display: grid; gap: 12px; }
.admin-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.ar-cover { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; font-size: 1.6rem; }
.ar-cover img { width: 100%; height: 100%; object-fit: cover; }
.ar-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ar-tag { color: var(--brand-2); font-weight: 700; font-size: .8rem; margin-right: 10px; }
.ar-cat { color: var(--muted); font-size: .8rem; }
.ar-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ar-actions .eb-btn { padding: 8px 12px; font-size: .82rem; }
.eb-btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ===== Editor proyek (modal) ===== */
.editor { position: fixed; inset: 0; z-index: 350; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.editor.open { display: flex; }
.editor-backdrop { position: absolute; inset: 0; background: rgba(4,8,6,.6); backdrop-filter: blur(4px); }
.editor-panel { position: relative; z-index: 1; width: min(100%, 720px); background: var(--panel); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; }
.editor-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.editor-top h2 { font-size: 1.5rem; }
.editor-form { display: grid; gap: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: .82rem; font-weight: 700; color: var(--muted); }
.fld-2 { grid-column: 1 / -1; }
.editor-form input[type=text], .editor-form select, .editor-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: var(--bg-2); color: var(--ink); resize: vertical;
}
.editor-form input:focus, .editor-form select:focus, .editor-form textarea:focus { outline: none; border-color: var(--brand-1); }
.img-field { display: flex; gap: 14px; align-items: flex-start; }
.img-prev { width: 88px; height: 88px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; }
.img-prev.sm { width: 60px; height: 60px; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-ctrl { flex: 1; display: grid; gap: 8px; }
.shots-editor { display: grid; gap: 10px; margin-bottom: 10px; }
.shot-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: start; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.shot-row .img-ctrl { gap: 6px; }
.shot-row .row-del { width: 26px; height: 26px; border-radius: 50%; border: none; background: #fee2e2; color: #dc2626; font-weight: 800; cursor: pointer; }
.editor-foot { display: flex; gap: 10px; margin-top: 6px; }

@media (max-width: 620px) {
  .fgrid { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 52px 1fr; }
  .ar-actions { grid-column: 1 / -1; justify-content: flex-start; }
}



/* ===== Panel Admin CMS ===== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 380px); background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); text-align: center; }
.login-card .logo-mark { margin: 0 auto 14px; }
.login-card h1 { font-size: 1.5rem; }
.login-card .muted { color: var(--muted); margin-bottom: 20px; font-size: .92rem; }
.login-card .field { text-align: left; margin-top: 12px; }

.cms-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.cms-nav { position: sticky; top: 90px; display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.cms-nav button { text-align: left; font-family: inherit; font-weight: 600; font-size: .92rem; padding: 10px 14px; border-radius: 10px; border: none; background: none; color: var(--muted); cursor: pointer; }
.cms-nav button:hover { background: var(--bg-2); color: var(--ink); }
.cms-nav button.active { background: var(--grad); color: #fff; }
.cms-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm); min-height: 60vh; }
.cms-title { font-size: 1.6rem; margin-bottom: 18px; }
.cms-sub { font-size: 1.05rem; margin: 22px 0 12px; color: var(--brand-2); }
.cms-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.cms-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fld.chk { flex-direction: row; align-items: center; gap: 8px; }
.fld.chk input { width: auto; }
.admin-cms { padding-top: 96px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 500; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff; background: var(--brand-2); box-shadow: var(--shadow); }
.toast.err { background: #dc2626; }

@media (max-width: 820px) {
  .cms-layout { grid-template-columns: 1fr; }
  .cms-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
}

/* ===== Editor teks (rich) & rapikan form admin ===== */
.cms-panel .fld { margin-bottom: 16px; }
.cms-panel .fgrid { gap: 16px; margin-bottom: 4px; }
.cms-panel input[type="text"], .cms-panel input[type="password"], .cms-panel textarea, .cms-panel select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: var(--bg-2); color: var(--ink); resize: vertical;
}
.cms-panel input:focus, .cms-panel textarea:focus, .cms-panel select:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(34,197,94,.12); }

.rt { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.rt-tools { display: flex; gap: 4px; padding: 6px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.rt-tools button { width: 32px; height: 30px; border: 1px solid var(--border); background: var(--panel); border-radius: 7px; cursor: pointer; font-size: .9rem; color: var(--ink); display: grid; place-items: center; }
.rt-tools button:hover { border-color: var(--brand-1); color: var(--brand-2); }
.rt-edit { min-height: 46px; padding: 11px 13px; font-family: inherit; font-size: 1rem; line-height: 1.6; outline: none; }
.rt-edit:focus { box-shadow: inset 0 0 0 2px rgba(34,197,94,.15); }
.rt-edit em { font-style: italic; color: var(--brand-2); }
.rt-edit strong, .rt-edit b { font-weight: 700; }
.erow .rt { flex: 1; }
