*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:root {
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --text-mid: #6e6e73;
  --accent: #0071e3;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --display: 'Inter Tight', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; color: var(--text); background: #fff; font-family: var(--body); }
body.content-loading .projects-archive { visibility: hidden; }
a { color: inherit; text-decoration: none; }
.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.btn-dark { background: var(--text); color: #fff; }
.btn-light { background: #fff; color: var(--text); }

nav { position: fixed; z-index: 100; top: 0; right: 0; left: 0; height: 72px; border-bottom: 1px solid rgba(0,0,0,.06); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
.nav-inner { display: flex; max-width: 1440px; height: 100%; align-items: center; justify-content: space-between; margin: 0 auto; padding: 0 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { display: block; width: 38px; height: 42px; object-fit: contain; }
.nav-logo svg { width: 26px; height: 26px; }
.nav-logo span { font: 700 16px var(--display); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; opacity: .78; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 0; border-radius: 50%; background: var(--surface); }
.nav-toggle span { width: 18px; height: 2px; border-radius: 99px; background: var(--text); transition: transform .2s, opacity .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.projects-hero { width: calc(100% - 96px); max-width: 1344px; margin: 0 auto; padding: 174px 0 108px; border-bottom: 1px solid var(--line-soft); }
.projects-kicker { margin-bottom: 24px; color: var(--accent); font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.projects-hero h1 { max-width: 980px; margin-bottom: 32px; font: 800 clamp(68px, 10vw, 136px)/.9 var(--display); letter-spacing: 0; }
.projects-hero p { max-width: 720px; color: var(--text-mid); font-size: clamp(19px, 2vw, 26px); line-height: 1.45; }

.projects-archive { width: calc(100% - 96px); max-width: 1344px; margin: 0 auto; padding: 88px 0 110px; }
.archive-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 42px; }
.archive-toolbar h2 { margin-bottom: 8px; font: 700 clamp(34px, 4vw, 52px)/1 var(--display); }
.archive-toolbar p { color: var(--text-mid); font-size: 14px; }
.project-filters { display: flex; max-width: 100%; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.project-filters::-webkit-scrollbar { display: none; }
.filter-btn { min-height: 40px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-mid); font: 600 13px var(--body); cursor: pointer; white-space: nowrap; transition: .2s; }
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn.active { border-color: var(--text); background: var(--text); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
.archive-empty { grid-column: 1 / -1; padding: 72px 32px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-align: center; }
.archive-empty h3 { margin-bottom: 10px; font: 700 28px/1.15 var(--display); }
.archive-empty p { color: var(--text-mid); font-size: 15px; }
.project-card { min-width: 0; }
.project-card[hidden] { display: none; }
.project-image { display: block; width: 100%; aspect-ratio: 4/3; margin-bottom: 22px; border-radius: 16px; background-position: center; background-size: cover; transition: transform .3s; }
.project-card:hover .project-image { transform: translateY(-3px); }
.image-siloam, .image-national { background-image: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.2)), url('../images/vercel-im-03.jpg'); }
.image-aryaduta { background-image: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.2)), url('../images/vercel-im-05.jpg'); }
.image-fpso { background-image: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.2)), url('../images/vercel-im-11.jpg'); }
.image-pertamina { background-image: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.2)), url('../images/vercel-im-14.jpg'); }
.image-grand-lucky { background-image: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.2)), url('../images/vercel-im-07.jpg'); }
.project-category { margin-bottom: 9px; color: var(--accent); font: 700 12px var(--display); letter-spacing: .07em; text-transform: uppercase; }
.project-body h3 { margin-bottom: 6px; font: 700 24px/1.15 var(--display); }
.project-body > p { color: var(--text-mid); font-size: 14px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.project-meta span { padding: 6px 10px; border-radius: 5px; background: var(--surface); color: var(--text-mid); font-size: 11px; }
.project-link, .project-status { display: inline-flex; color: var(--accent); font-size: 14px; font-weight: 600; }
.project-link::after { content: '\203A'; margin-left: 6px; }
.project-status { color: var(--text-mid); font-weight: 500; }

.projects-cta { display: flex; width: calc(100% - 96px); max-width: 1344px; min-height: 330px; align-items: center; justify-content: space-between; gap: 48px; margin: 0 auto 100px; padding: 60px; border-radius: 24px; background: #0b1b2e; color: #fff; }
.projects-cta span { display: block; margin-bottom: 14px; color: #5ac8fa; font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.projects-cta h2 { max-width: 780px; font: 700 clamp(38px, 5vw, 62px)/1.05 var(--display); }

footer { padding: 80px 0 32px; background: #1d1d1f; color: #fff; }
.footer-inner { width: calc(100% - 96px); max-width: 1344px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr); gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .nav-logo span { color: #fff; }
.footer-desc { max-width: 320px; margin-top: 16px; color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.6; }
.footer-certifications { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.footer-certifications img { width: 88px; height: 68px; padding: 6px; object-fit: contain; border-radius: 6px; background: #fff; }
.footer-col-title { margin-bottom: 18px; font: 600 13px var(--display); text-transform: uppercase; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: center; gap: 20px; width: 100%; padding-top: 28px; color: rgba(255,255,255,.4); font-size: 12px; text-align: center; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { color: rgba(255,255,255,.5); }

@media (max-width: 1080px) {
  .archive-toolbar { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }
  .nav-inner { padding: 0 22px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-links { position: fixed; top: 72px; right: 0; left: 0; display: grid; gap: 0; padding: 10px 22px 24px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.98); box-shadow: 0 20px 50px rgba(0,0,0,.12); opacity: 0; pointer-events: none; transform: translateY(-120%); transition: .22s; }
  body.nav-open .nav-links { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a { display: flex; min-height: 52px; align-items: center; font-size: 17px; opacity: 1; }
  .projects-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .projects-hero, .projects-archive, .projects-cta, .footer-inner { width: calc(100% - 44px); }
  .projects-hero { padding: 132px 0 72px; }
  .projects-hero h1 { font-size: clamp(58px, 18vw, 86px); }
  .projects-archive { padding: 64px 0 80px; }
  .project-filters { width: calc(100vw - 22px); }
  .project-grid { grid-template-columns: 1fr; gap: 42px; }
  .project-image { border-radius: 14px; }
  .projects-cta { min-height: auto; margin-bottom: 70px; padding: 40px 28px; border-radius: 18px; }
  .projects-cta .btn { width: 100%; }
  footer { padding-top: 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { align-items: center; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
