/* =========================================================
   Asrafi Folio — tema biru royal & kuning (mengikuti PDF portfolio)
   ========================================================= */
:root {
  --blue-950: #04126a;
  --blue-900: #061a8c;
  --blue-800: #0822b4;
  --blue-700: #0a2bd6;
  --blue-600: #1a42ea;
  --blue-500: #3a63ff;
  --yellow: #ffd400;
  --yellow-600: #f2b900;
  --white: #ffffff;
  --ink: #0b1b5e;
  --text: #eef2ff;
  --muted: rgba(238, 242, 255, .72);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .18);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -24px rgba(2, 8, 60, .65);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--blue-800);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(58, 99, 255, .55), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(6, 26, 140, .9), transparent 60%),
    linear-gradient(180deg, var(--blue-700) 0%, var(--blue-800) 45%, var(--blue-900) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before { /* grid seperti background PDF */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  z-index: 0;
}
main, header, footer, section { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; vertical-align: -3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(6, 26, 140, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 1.15rem;
  box-shadow: 4px 4px 0 rgba(255,255,255,.18);
}
.brand-text { font-size: 1.2rem; }
.brand-script { font-family: var(--script); color: var(--yellow); font-weight: 400; font-size: 1.55em; margin-left: 2px; line-height: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500;
  color: var(--muted); transition: background .2s, color .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--white); background: var(--glass-strong); }
.site-nav a.active { box-shadow: inset 0 -2px 0 var(--yellow); }
.nav-toggle { display: none; background: var(--glass-strong); border: 1px solid var(--line); color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; place-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  min-height: 46px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 212, 0, .7); }
.btn-primary:hover { background: #ffe14d; }
.btn-ghost { background: var(--glass); border-color: var(--line); color: #fff; }
.btn-ghost:hover { background: var(--glass-strong); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: .85rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--yellow); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-title { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; font-weight: 800; }
.ft-sans { font-weight: 800; }
.ft-script { font-family: var(--script); color: var(--yellow); font-weight: 400; font-size: 1.25em; letter-spacing: 0; line-height: .8; display: inline-block; transform: translateY(.06em); }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 640px; }

/* ---------- Pixel decorations ---------- */
.pixels { position: absolute; width: 150px; height: 100px; background: url('../img/pixels.svg') no-repeat center / contain; pointer-events: none; opacity: .95; z-index: 0; }
.pixels.tl { top: 0; left: 0; }
.pixels.tr { top: 0; right: 0; transform: scaleX(-1); }
.pixels.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.pixels.br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .85rem; margin-bottom: 22px; }
.hero-kicker .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.hero-title { font-size: clamp(3.2rem, 11vw, 7.6rem); line-height: .95; font-weight: 800; letter-spacing: -.04em; margin: 0; }
.hero-title .ft-script { font-size: 1.15em; margin-left: -.05em; }
.hero-years { font-family: var(--script); color: var(--yellow); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 4px 0 18px; text-align: right; max-width: 560px; }
.hero-name { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; margin-bottom: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-photo { position: relative; aspect-ratio: 1; max-width: 440px; margin-left: auto; width: 100%; }
.hero-photo .circle { position: absolute; inset: 12% 0 0 0; border-radius: 50%; background: var(--yellow); box-shadow: 0 30px 80px -20px rgba(255,212,0,.5); }
.hero-photo img, .hero-photo .img-empty { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0 0 50% 50% / 0 0 40% 40%; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.hero-photo .img-empty { inset: 12% 0 0 0; border-radius: 50%; background: transparent; color: var(--ink); mask-image: none; -webkit-mask-image: none; }
.hero-badge { position: absolute; left: -6%; bottom: 10%; background: rgba(6, 26, 140, .8); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: .85rem; box-shadow: var(--shadow); }
.hero-badge strong { display: block; font-size: 1.4rem; color: var(--yellow); line-height: 1.1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; align-items: center; gap: 14px; }
.stat-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { color: var(--muted); font-size: .9rem; line-height: 1.3; }

/* ---------- Glass card ---------- */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card h3 { font-size: 1.15rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.about-name { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.02; margin: 4px 0 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; }
.chip-yellow { background: var(--yellow); color: var(--ink); border-color: transparent; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ico { color: var(--yellow); margin-top: 2px; }
.info-list a { text-decoration: none; word-break: break-word; }
.info-list a:hover { color: var(--yellow); }
.sub-title { font-size: 1rem; font-weight: 700; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.sub-title::before { content: ""; width: 8px; height: 8px; background: var(--yellow); }

/* ---------- Timeline ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.timeline li { position: relative; padding-left: 22px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--yellow); }
.timeline li::after { content: ""; position: absolute; left: 4px; top: 1.4em; bottom: -18px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.tl-title { font-weight: 600; line-height: 1.35; }
.tl-period { font-style: italic; font-size: .8rem; color: var(--yellow); font-weight: 500; }
.tl-sub { color: var(--muted); font-size: .9rem; }

/* ---------- Brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.brand-item { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); text-align: center; font-weight: 600; font-size: .85rem; transition: background .2s, transform .2s; text-decoration: none; }
.brand-item:hover { background: var(--glass-strong); transform: translateY(-3px); }
.brand-item img { max-height: 64px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.2; text-decoration: none; display: block; background: var(--blue-900); border: 1px solid var(--line); isolation: isolate; }
.cat-card img, .cat-card .img-empty { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 18, 106, .95)); z-index: 1; }
.cat-card:hover img { transform: scale(1.06); }
.cat-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.cat-info h3 { margin: 0; font-size: 1.3rem; }
.cat-info p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.cat-arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .3s; }
.cat-card:hover .cat-arrow { transform: rotate(45deg); }
.cat-count { position: absolute; top: 14px; left: 14px; z-index: 2; }
.img-empty { display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.08) 12px 24px); color: rgba(255,255,255,.4); }
.img-empty svg { width: 44px; height: 44px; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 24px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filter-bar a { flex: none; padding: 9px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.filter-bar a.active, .filter-bar a:hover { background: var(--yellow); color: var(--ink); border-color: transparent; }

/* ---------- Project cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.work-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue-900); display: block; }
.work-thumb img, .work-thumb .img-empty { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.work-body h3 { font-size: 1.05rem; margin: 0; }
.work-body h3 a { text-decoration: none; }
.work-body h3 a:hover { color: var(--yellow); }
.work-meta { font-size: .8rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(4, 18, 106, .75); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.badge-yellow { background: var(--yellow); color: var(--ink); border-color: transparent; }
.thumb-badge { position: absolute; top: 12px; right: 12px; z-index: 2; }

/* Logo layout */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-tile { background: #fff; border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; padding: 18px; color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.logo-tile:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile .img-empty { width: 100%; height: 100%; border-radius: 12px; color: #c4cbe8; background: #f2f4fb; }
.logo-tile span { position: absolute; bottom: 8px; left: 8px; right: 8px; text-align: center; font-size: .72rem; font-weight: 600; opacity: 0; transition: opacity .2s; }
.logo-tile:hover span { opacity: 1; }

/* Photo layout */
.photo-list { display: grid; gap: 28px; }
.photo-item { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; }
.photo-item:nth-child(even) { grid-template-columns: 1fr 1.5fr; }
.photo-item:nth-child(even) .photo-media { order: 2; }
.photo-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--blue-900); display: block; }
.photo-media img, .photo-media .img-empty { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photo-media:hover img { transform: scale(1.04); }
.photo-type { font-style: italic; color: var(--yellow); font-weight: 500; font-size: .95rem; }
.photo-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 4px 0 12px; }
.meta-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.meta-list li { display: flex; gap: 8px; align-items: center; }
.meta-list .ico { color: var(--yellow); width: 18px; height: 18px; }

/* ---------- Carousel (Feed Design slides) ---------- */
.carousel { position: relative; overflow: hidden; border-radius: inherit; background: var(--blue-950); }
.work-thumb .carousel, .gallery-main .carousel { height: 100%; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; height: 100%; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; background: #030c4d; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 3; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: opacity .2s; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn .ico { width: 18px; height: 18px; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; pointer-events: none; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); transition: width .25s, background .25s; }
.carousel-dots span.on { width: 20px; border-radius: 4px; background: var(--yellow); }
.carousel-count { position: absolute; top: 12px; left: 12px; z-index: 3; }

/* ---------- Project detail ---------- */
.project-hero { padding-top: 36px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; list-style: none; padding: 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.project-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.gallery-main.landscape { aspect-ratio: 16 / 10; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--blue-900); opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button.on, .gallery-thumbs button:hover { opacity: 1; border-color: var(--yellow); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { position: sticky; top: calc(var(--header-h) + 16px); }
.detail-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.desc { white-space: normal; color: var(--muted); }

/* ---------- 3D ---------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.model-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.model-thumb { position: relative; aspect-ratio: 16 / 11; background: radial-gradient(circle at 50% 40%, var(--blue-600), var(--blue-950)); display: grid; place-items: center; overflow: hidden; }
.model-thumb img { width: 100%; height: 100%; object-fit: cover; }
.model-thumb .cube-ico { width: 72px; height: 72px; color: rgba(255,255,255,.55); animation: spin 8s linear infinite; }
.model-thumb .badge { position: absolute; top: 12px; left: 12px; }
.model-body { padding: 16px 18px 20px; }
.model-body h3 { margin: 0 0 4px; font-size: 1.1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.viewer-shell { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0a1f8f; aspect-ratio: 16 / 9; min-height: 340px; box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; }
.viewer-shell:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.viewer-shell:-webkit-full-screen { border-radius: 0; width: 100vw; height: 100vh; }
.viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.viewer-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 18, 106, .82); backdrop-filter: blur(6px); z-index: 5; text-align: center; padding: 24px; transition: opacity .35s; }
.viewer-overlay.hide { opacity: 0; pointer-events: none; }
.viewer-loader { width: min(320px, 80vw); }
.viewer-loader .cube-ico { width: 56px; height: 56px; color: var(--yellow); margin: 0 auto 14px; animation: spin 3s linear infinite; }
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), #fff176); border-radius: inherit; transition: width .2s; }
.progress.indeterminate .progress-bar { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.viewer-status { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.viewer-error { color: #ffd1d9; }
.viewer-toolbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(4, 18, 106, .78); border: 1px solid var(--line); backdrop-filter: blur(10px); z-index: 4; max-width: calc(100% - 20px); overflow-x: auto; }
.viewer-toolbar button { width: 42px; height: 42px; border-radius: 11px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.viewer-toolbar button:hover, .viewer-toolbar button.on { background: var(--yellow); color: var(--ink); }
.viewer-toolbar .ico { width: 20px; height: 20px; }
.viewer-hint { position: absolute; top: 12px; left: 12px; z-index: 4; font-size: .75rem; }
.viewer-watermark { position: absolute; right: 14px; top: 12px; z-index: 4; font-size: .72rem; opacity: .7; pointer-events: none; font-weight: 600; letter-spacing: .04em; }

/* ---------- PDF viewer ---------- */
.pdf-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.pdf-list { display: grid; gap: 10px; }
.pdf-list a { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.pdf-list a.active, .pdf-list a:hover { background: var(--glass-strong); border-color: var(--yellow); }
.pdf-list .ico { color: var(--yellow); width: 28px; height: 28px; }
.pdf-shell { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(3, 12, 77, .6); overflow: hidden; user-select: none; -webkit-user-select: none; }
.pdf-shell:fullscreen { border-radius: 0; background: #030c4d; display: flex; flex-direction: column; }
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(4, 18, 106, .85); position: sticky; top: 0; z-index: 3; flex-wrap: wrap; }
.pdf-toolbar .grp { display: flex; align-items: center; gap: 6px; }
.pdf-toolbar button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--glass-strong); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pdf-toolbar button:hover { background: var(--yellow); color: var(--ink); }
.pdf-toolbar button[disabled] { opacity: .4; pointer-events: none; }
.pdf-toolbar .ico { width: 18px; height: 18px; }
.pdf-page-info { font-size: .9rem; min-width: 92px; text-align: center; display: flex; align-items: center; gap: 4px; }
.pdf-page-info input { width: 52px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.1); color: #fff; text-align: center; font: inherit; }
.pdf-stage { position: relative; display: grid; place-items: center; padding: 18px; min-height: 360px; overflow: auto; max-height: 82vh; }
.pdf-shell:fullscreen .pdf-stage { max-height: none; flex: 1; }
.pdf-stage canvas { max-width: none; border-radius: 8px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.6); background: #fff; }
.pdf-stage.fit canvas { max-width: 100%; height: auto !important; }
.pdf-loading { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(3, 12, 77, .7); z-index: 2; padding: 20px; }
.pdf-loading.hide { display: none; }
.pdf-watermark { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; z-index: 1; }
.pdf-watermark span { transform: rotate(-24deg); font-size: clamp(1rem, 3vw, 2rem); font-weight: 800; color: rgba(10, 43, 214, .08); white-space: nowrap; }

/* ---------- Social ---------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.social-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.social-card:hover { transform: translateY(-3px); background: var(--glass-strong); border-color: var(--yellow); }
.social-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); flex: none; }
.social-ico .ico { width: 26px; height: 26px; }
.social-card strong { display: block; font-size: 1rem; word-break: break-word; }
.social-card small { color: var(--muted); }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-strong); border: 1px solid var(--line); transition: background .2s, color .2s, transform .2s; }
.social-btn:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }

/* ---------- CTA / Contact ---------- */
.cta-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, var(--blue-600), var(--blue-900)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-card .pixels { width: 120px; height: 80px; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; position: relative; z-index: 1; }

/* ---------- Copyright band ---------- */
.copyright-band { padding: 28px 0; background: rgba(255, 212, 0, .08); border-top: 1px solid rgba(255, 212, 0, .35); border-bottom: 1px solid rgba(255, 212, 0, .35); }
.copyright-inner { display: flex; gap: 18px; align-items: flex-start; }
.copyright-icon { width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.copyright-icon .ico { width: 28px; height: 28px; }
.copyright-band h2 { font-size: 1.1rem; color: var(--yellow); margin-bottom: 4px; }
.copyright-band p { margin: 0; font-size: .9rem; color: var(--text); }
.notice-inline { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 212, 0, .1); border: 1px dashed rgba(255, 212, 0, .5); font-size: .82rem; color: var(--text); margin-top: 16px; }
.notice-inline .ico { color: var(--yellow); width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 24px; background: rgba(4, 18, 106, .7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-title { font-size: 1rem; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--yellow); }
.brand-lg .brand-text { font-size: 1.4rem; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--glass); color: var(--muted); }
.empty .ico { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--yellow); }
.empty h3 { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(2, 8, 50, .94); display: none; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox.open { display: flex; }
.lightbox-img-wrap { position: relative; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.lightbox-wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.lightbox-wm span { transform: rotate(-28deg); font-weight: 800; font-size: clamp(1rem, 4vw, 2.4rem); color: rgba(255, 255, 255, .14); white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-nav.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--yellow); color: var(--ink); }
.lightbox-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .85rem; color: var(--muted); padding: 0 16px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: var(--yellow); color: var(--ink); padding: 12px 18px; border-radius: 14px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast[hidden] { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Proteksi gambar */
.protect img, img.protect { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .project-layout { grid-template-columns: 1fr; }
  .detail-card { position: static; }
  .pdf-layout { grid-template-columns: 1fr; }
  .pdf-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(4, 18, 106, .97); backdrop-filter: blur(12px);
    transform: translateX(100%); transition: transform .3s ease; padding: 20px 16px; overflow-y: auto;
  }
  .site-nav.open { transform: none; }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav a { font-size: 1.1rem; padding: 14px 18px; border-radius: 14px; }
  body.nav-open { overflow: hidden; }

  .hero-grid, .about-grid, .two-col, .cta-grid, .photo-item, .photo-item:nth-child(even) { grid-template-columns: 1fr; }
  .photo-item:nth-child(even) .photo-media { order: 0; }
  .hero-photo { max-width: 320px; margin: 0 auto; order: -1; }
  .hero-years { text-align: left; }
  .hero-badge { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .viewer-shell { aspect-ratio: 4 / 5; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .stat { padding: 16px 18px; }
  .work-grid, .model-grid, .cat-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pixels { width: 96px; height: 64px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .copyright-inner { flex-direction: column; }
  .pdf-stage { padding: 8px; min-height: 240px; }
  .pdf-toolbar { padding: 8px; }
  .pdf-toolbar button { width: 36px; height: 36px; }
  .viewer-toolbar button { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
