:root {
  --bg: #0a0a0b;
  --bg-soft: #131315;
  --bg-card: #17171a;
  --line: #26262b;
  --text: #f5f5f4;
  --muted: #a7a7ad;
  --accent: #e8e8e6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, video { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(10, 10, 11, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--text);
  color: #0a0a0b;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 0.4rem;
}

.brand-name { font-weight: 700; line-height: 1.15; }

.brand-name span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }

.site-nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }

.site-nav a:hover { color: var(--text); }

.site-nav .nav-cta {
  padding: 0.55rem 1rem;
  background: var(--text);
  color: #0a0a0b;
  font-weight: 700;
  border-radius: 0.3rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  cursor: pointer;
}

.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.45) 0%, rgba(10, 10, 11, 0.25) 45%, rgba(10, 10, 11, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 9rem clamp(1rem, 4vw, 3rem) 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-lead { max-width: 36rem; margin: 0 0 2rem; color: #d4d4d8; font-size: clamp(1rem, 2vw, 1.2rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.3rem;
}

.btn-light { background: var(--text); color: #0a0a0b; }

.btn-ghost { border: 1px solid rgba(245, 245, 244, 0.4); color: var(--text); }

.btn-dark { background: #0a0a0b; color: var(--text); }

.hero-scroll {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 1;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-rl;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 80rem);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.stat { padding: 2rem clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--line); }

.stat:first-child { border-left: 0; }

.stat strong { display: block; font-size: 2.2rem; line-height: 1.1; }

.stat-small { font-size: 1.1rem; }

.stat span:last-child { color: var(--muted); font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  scroll-margin-top: 5rem;
}

.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-intro { color: var(--muted); }

/* ---------- Work ---------- */
.work-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.work-media {
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 0.6rem;
}

.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }

.work-media:hover img { transform: scale(1.03); }

.work-featured .work-media { aspect-ratio: 16 / 9; }

.work-cat { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.work-featured-body h3, .work-card h3 { margin: 0 0 0.6rem; font-size: 1.5rem; line-height: 1.2; }

.work-featured-body p, .work-card p { color: var(--muted); }

.work-meta { list-style: none; margin: 1.2rem 0; padding: 0; border-top: 1px solid var(--line); }

.work-meta li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }

.work-meta span { color: var(--muted); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.work-card .work-media { aspect-ratio: 16 / 10; width: 100%; }

.work-video { cursor: default; }

.work-video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tugas Akhir ---------- */
.ta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }

.ta-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.6rem; background: #000; }

.caption { color: var(--muted); font-size: 0.85rem; }

.ta-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.ta-gallery .work-media { aspect-ratio: 4 / 3; }

/* ---------- Services ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.services li {
  display: grid;
  grid-template-columns: 4rem 1fr 1.2fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.services li h3 { margin: 0; font-size: 1.25rem; }

.services li p { margin: 0; color: var(--muted); }

.svc-no { color: var(--muted); font-size: 0.9rem; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 2.5rem; max-width: 52rem; }

.timeline-item { border-left: 2px solid var(--line); padding-left: 1.5rem; }

.timeline-time { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.timeline-item h3 { margin: 0 0 0.2rem; font-size: 1.4rem; }

.timeline-org { margin: 0 0 0.8rem; color: var(--muted); font-weight: 600; }

.timeline-item ul { margin: 0.8rem 0 0; padding-left: 1.2rem; color: var(--muted); }

.timeline-item li { margin-bottom: 0.4rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }

.about-photo { aspect-ratio: 4 / 3; }

.about-grid h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }

.about-grid p { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

.chips span { padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; }

/* ---------- Contact & footer ---------- */
.contact { text-align: left; }

.contact h2 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }

.contact p { color: var(--muted); max-width: 36rem; }

.contact-loc { color: var(--muted); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.open { display: grid; }

.lightbox figure { max-width: min(90rem, 94vw); margin: 0; text-align: center; }

.lightbox img { max-height: 82vh; margin: 0 auto; border-radius: 0.4rem; }

.lightbox figcaption { margin-top: 0.8rem; color: var(--muted); }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  padding: 0.2rem 0.9rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.3rem;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .work-featured, .ta-grid, .about-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .services li { grid-template-columns: 3rem 1fr; }
  .services li p { grid-column: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: 0; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(10, 10, 11, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 0.7rem; text-align: center; border-bottom: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-top: 7rem; }
}
