/* ============================================================
   MALINOKU.COM — dark premium, typography editorial
   Ubah warna & font lewat variabel di :root
   ============================================================ */

:root {
  --bg: #faf3e3;              /* cream hangat */
  --bg-soft: #fffdf7;         /* kartu */
  --text: #2a2327;
  --text-dim: #765d61;
  --accent: #d9501a;          /* oranye tua — kontras di cream */
  --accent-bright: #f97316;   /* oranye logo, untuk isian */
  --accent-soft: rgba(217, 80, 26, 0.10);
  --line: rgba(42, 35, 39, 0.14);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0.9) 4%, transparent 4.2%),
    linear-gradient(160deg, #fff3dd 0%, #fdeadd 38%, #faf3e3 72%, #fdeee6 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-bright); color: #fffdf7; }

/* Tekstur film grain halus di seluruh halaman (kesan sinematik) */
body::after {
  content: "";
  position: fixed; top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 40; /* di bawah nav (50) dan intro (100) */
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -2%); }
  20% { transform: translate(2%, -4%); }
  30% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, 2%); }
  50% { transform: translate(-2%, 4%); }
  60% { transform: translate(4%, -3%); }
  70% { transform: translate(-3%, 2%); }
  80% { transform: translate(2%, 3%); }
  90% { transform: translate(-2%, -3%); }
}

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

.accent { color: var(--accent); font-style: normal; }

/* Skip link (aksesibilitas) */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--accent); color: #fffdf7;
  padding: 0.6rem 1rem; border-radius: 4px;
  font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   INTRO VIDEO
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
/* Scrim gelap sinematik: paling gelap di tengah (tempat teks) supaya kontras */
.intro::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at center, rgba(10, 10, 11, 0.72) 0%, rgba(10, 10, 11, 0.5) 65%, rgba(10, 10, 11, 0.66) 100%),
    linear-gradient(to bottom, rgba(10, 10, 11, 0.4), transparent 30%, transparent 70%, rgba(10, 10, 11, 0.55));
  pointer-events: none;
}

.intro__overlay {
  position: relative; z-index: 2;
  text-align: center; padding: 0 1.5rem;
}
.intro__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 10vw, 8rem);
  letter-spacing: 0.08em;
  animation: introWord 1.4s var(--ease) both;
}
.intro__tag {
  color: var(--text-dim);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: introWord 1.4s 0.35s var(--ease) both;
}
@keyframes introWord {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.intro__controls {
  position: absolute; z-index: 3;
  bottom: 2rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.75rem;
  padding: 0 1.5rem;
}
.intro__btn {
  background: rgba(10, 10, 11, 0.6);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font: 500 0.9rem var(--font-body);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.intro__btn:hover, .intro__btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.intro__btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.intro__progress {
  position: absolute; z-index: 3;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(242, 239, 233, 0.08);
}
.intro__progress span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(rgba(255, 248, 234, 0.92), rgba(255, 248, 234, 0));
  backdrop-filter: blur(8px);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.logo-mark { width: 30px; height: 30px; color: var(--text); }
.logo-mark--intro {
  width: clamp(48px, 8vw, 72px); height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  animation: introWord 1.4s var(--ease) both;
}
.nav__logo-text { letter-spacing: 0.02em; }
@media (max-width: 480px) {
  .nav__logo-text { display: none; } /* mobile: cukup logo mark */
}
.nav__links {
  display: flex; gap: clamp(0.9rem, 3vw, 2rem);
  list-style: none; align-items: center;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--text); }
.nav__cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.nav__cta:hover { background: var(--accent-soft); }

/* ============================================================
   LAYOUT UMUM
   ============================================================ */
main > section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head__num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1rem; letter-spacing: 0.1em;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
/* Garis aksen "menggambar" di bawah judul section saat terlihat */
.section-head h2::after {
  content: "";
  display: block;
  width: clamp(48px, 8vw, 96px); height: 3px;
  margin-top: 0.5rem;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) 0.3s;
}
.section-head.is-visible h2::after { transform: scaleX(1); }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 1rem var(--font-body);
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(145deg, #ffb548, #ff765f);
  color: #fffdf7;
  box-shadow: 0 12px 26px rgba(255, 127, 80, 0.28);
}
.btn--primary:hover { background: linear-gradient(145deg, #ffbe5e, #ff8a72); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--big { font-size: 1.1rem; padding: 1.05rem 2.2rem; }

.link-arrow {
  color: var(--text); font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.link-arrow:hover, .link-arrow:focus-visible { color: var(--accent); border-color: var(--accent); }

/* Reveal saat scroll */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: clip;            /* cincin orbit tidak bikin scroll samping */
  padding-top: 6rem !important;
}
.hero__glow {
  position: absolute; z-index: -1;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  top: 15%; right: -5%;
  pointer-events: none;
  transition: transform 1.2s var(--ease);
}
.hero__glow--2 {
  width: 380px; height: 380px;
  top: auto; bottom: 6%; right: auto; left: -8%;
  background: radial-gradient(circle, rgba(255, 150, 90, 0.16), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}

/* Cincin orbit besar di latar hero (gaya kade.malinoku.com) */
.hero::before, .hero::after {
  content: "";
  position: absolute; z-index: -2;
  width: 600px; height: 600px;
  border: 2px solid rgba(225, 115, 76, 0.15);
  border-radius: 45% 55% 60% 40%;
  animation: malinoOrbit 24s linear infinite;
  pointer-events: none;
}
.hero::before {
  right: -280px; top: -220px;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.13), 0 0 0 68px rgba(225, 115, 76, 0.06);
}
.hero::after {
  left: -340px; bottom: -380px;
  width: 680px; height: 680px;
  animation-direction: reverse;
  animation-duration: 31s;
}
@keyframes malinoOrbit { to { transform: rotate(360deg); } }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, -50px) scale(1.18); }
}
.hero__eyebrow {
  color: var(--accent);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
}
body.is-loaded .hero__line-inner { transform: none; }
body.is-loaded .hero__line:nth-child(1) .hero__line-inner { transition-delay: 0.15s; }
body.is-loaded .hero__line:nth-child(2) .hero__line-inner { transition-delay: 0.28s; }
body.is-loaded .hero__line:nth-child(3) .hero__line-inner { transition-delay: 0.41s; }

/* Elemen hero yang muncul berurutan setelah intro selesai */
.hero-fade {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
body.is-loaded .hero-fade { opacity: 1; transform: none; }
body.is-loaded .hero__eyebrow.hero-fade { transition-delay: 0.05s; }
body.is-loaded .hero__desc.hero-fade { transition-delay: 0.6s; }
body.is-loaded .hero__actions.hero-fade { transition-delay: 0.75s; }
.hero__desc {
  max-width: 34rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 2rem 0 2.5rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Panggung hero: kartu aplikasi melayang mengelilingi inti Malinoku ── */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__stage {
  position: relative;
  width: 100%; max-width: 530px;
  aspect-ratio: 530 / 300;
  margin-inline: auto;
}
.hero__stage .connector-map {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; overflow: visible;
}
.hero__stage .connector-map path {
  fill: none;
  stroke: rgba(93, 72, 76, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: malinoDash 13s linear infinite;
}
@keyframes malinoDash { to { stroke-dashoffset: -120; } }

.unit-node {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 0.55rem;
  min-width: 138px;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  color: #4c3c40;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(137, 76, 65, 0.14);
  backdrop-filter: blur(10px);
  animation: malinoFloat 5s ease-in-out infinite;
}
.unit-node b {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  color: #fff;
  font: 800 9px/1 var(--font-display);
  flex-shrink: 0;
}
.unit-node span { font: 700 10px/1.25 var(--font-display); }
.unit-node small {
  display: block; margin-top: 2px;
  color: #988185;
  font: 600 7px/1 var(--font-body);
  letter-spacing: 0.1em;
}
.node-bi { left: 0; top: 8%; }
.node-sh { right: 0; top: 2%; animation-delay: -1.1s; }
.node-bg { left: 4%; bottom: 2%; animation-delay: -2.4s; }
.node-qsn { right: 2%; bottom: 0; animation-delay: -3.5s; }
.node-bd { left: 0; top: 44%; animation-delay: -4.3s; }
.node-bi b { background: #1f6fd0; }
.node-sh b { background: #c93950; }
.node-bg b { background: #d9501a; }
.node-qsn b { background: #8f2b52; font-size: 8px; }
.node-bd b { background: #0f7a52; }
/* layar sangat kecil: panggung tak muat 5 kartu */
@media (max-width: 460px) { .node-bd { display: none; } }
@keyframes malinoFloat {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50%      { transform: translateY(-9px) rotate(0.6deg); }
}

.portal-core {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 186px; height: 124px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(145deg, #2b282b, #171517);
  box-shadow: 0 28px 50px rgba(104, 56, 55, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
}
.portal-core::after {
  content: "";
  position: absolute; left: 30px; right: 30px; bottom: -12px;
  height: 12px;
  border-radius: 0 0 14px 14px;
  background: #514a4c;
  transform: perspective(60px) rotateX(-24deg);
  transform-origin: center top;
}
.core-mark {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  color: #fffdf7;               /* bingkai logo */
  filter: drop-shadow(0 10px 20px rgba(255, 127, 80, 0.28));
}
.core-mark svg { width: 100%; height: 100%; display: block; }
.core-label {
  position: absolute; bottom: 14px;
  color: #a9a2a6;
  font: 700 8px/1 var(--font-body);
  letter-spacing: 0.16em;
}

.hero__stage-status {
  display: flex; align-items: center; gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
  color: #735b5f;
  font: 700 0.72rem/1 var(--font-body);
  letter-spacing: 0.06em;
}
.hero__stage-status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #38a169;
  box-shadow: 0 0 0 5px rgba(56, 161, 105, 0.12);
  animation: malinoPulse 2s ease infinite;
}
@keyframes malinoPulse {
  50% { box-shadow: 0 0 0 9px rgba(56, 161, 105, 0); }
}

.hero__marquee {
  position: absolute; bottom: 1.2rem; left: 0; right: 0;
  overflow: hidden; white-space: nowrap;
  opacity: 0.16;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.15em;
}
.hero__marquee-track { display: inline-flex; animation: marquee 28s linear infinite; }
.skills__marquee-track { display: inline-flex; animation: marquee 22s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 500; line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}
.about__story p + p { margin-top: 1.25rem; color: var(--text-dim); }
.about__story strong { color: var(--text); }

.about__principles { list-style: none; display: grid; gap: 1.25rem; align-content: start; }
.about__principles li {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-weight: 500;
}
.about__principles .accent { margin-right: 0.5rem; font-weight: 700; }

/* ============================================================
   SELECTED WORK
   ============================================================ */
.work-item {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.work-item--flip .work-item__visual-wrap { order: 2; }
.work-item--flip .work-item__info { order: 1; }

.work-item__visual-wrap {
  display: block; text-decoration: none;
  border-radius: 12px; overflow: hidden;
}
.work-item__visual {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 1.5rem;
  transition: transform 0.6s var(--ease);
}
.work-item__visual-wrap:hover .work-item__visual,
.work-item__visual-wrap:focus-visible .work-item__visual { transform: scale(1.03); }

/* [PLACEHOLDER] gradient pengganti screenshot proyek */
.work-item__visual--1 { background: linear-gradient(135deg, #1d1410, #3a220f 55%, var(--accent)); }
.work-item__visual--2 { background: linear-gradient(135deg, #101318, #14283a 55%, #2e77ff); }
.work-item__visual--3 { background: linear-gradient(135deg, #131017, #2b1440 55%, #9b4dff); }

.work-item__ghost {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: rgba(242, 239, 233, 0.14);
  line-height: 1;
  will-change: transform; /* parallax halus via JS */
}

/* Visual kartu proyek berupa video (mis. demo BRILink) */
.work-item__visual--video {
  position: relative; padding: 0; overflow: hidden;
  background: #efe4d4;
  box-shadow: 0 20px 44px rgba(137, 76, 65, 0.16);
}
.work-item__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.work-item__badge {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(137, 76, 65, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em;
  color: #4c3c40;
}

.work-item__status {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--live { background: #4ade80; }
.dot--build { background: var(--accent); }
.dot--exp { background: #9b4dff; }

.work-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.work-item__summary { color: var(--text-dim); margin-bottom: 1.25rem; }

.work-item__meta { display: grid; gap: 0.6rem; margin-bottom: 1.25rem; }
.work-item__meta dt {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.work-item__meta dd { font-size: 0.98rem; }

.work-item__tech {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.work-item__tech li {
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: var(--text-dim);
}
.work-item__links { display: flex; gap: 1.5rem; }

.work__cta {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.skill-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 12px 28px rgba(137, 76, 65, 0.10);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s, transform 0.4s var(--ease);
}
.skill-card:hover { box-shadow: 0 18px 36px rgba(137, 76, 65, 0.16); transform: translateY(-4px); }
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; margin-bottom: 0.6rem;
}
.skill-card p { color: var(--text-dim); font-size: 0.98rem; }

.skills__marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dim);
}

/* ============================================================
   CONTACT & FOOTER
   ============================================================ */
.contact { text-align: left; }
.contact__big {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.contact__socials {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 2rem;
}

.footer {
  border-top: 1px solid var(--line);
  max-width: 1200px; margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ============================================================
   HALAMAN DETAIL PROYEK (karya/*.html)
   ============================================================ */
.detail-hero {
  padding-top: clamp(7rem, 14vw, 10rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}
.detail-hero__back {
  display: inline-block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.25s;
}
.detail-hero__back:hover, .detail-hero__back:focus-visible { color: var(--accent); }
.detail-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.detail-hero__summary {
  max-width: 40rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
}
.detail-hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.detail-hero__facts dt {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.detail-hero__facts dd { font-size: 0.98rem; }

.detail-visual {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.detail-visual__media {
  aspect-ratio: 16 / 8;
  border-radius: 14px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 2rem;
}

.detail-body { max-width: 900px !important; }
.detail-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { color: var(--text-dim); }
.detail-body p + p { margin-top: 1rem; }
.detail-body strong { color: var(--text); }
.detail-body ul.detail-list {
  list-style: none;
  display: grid; gap: 0.9rem;
  margin-top: 1.25rem;
}
.detail-body ul.detail-list li {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}
.detail-body .work-item__tech { margin-top: 1.25rem; margin-bottom: 0; }
.detail-body .detail-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.detail-next {
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}
.detail-next__label { color: var(--text-dim); font-size: 0.95rem; }
.detail-next__link {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.detail-next__link:hover, .detail-next__link:focus-visible { color: var(--accent); }

/* Galeri screenshot di halaman detail */
.detail-gallery h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.gallery-grid a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fffdf7;
  box-shadow: 0 12px 28px rgba(137, 76, 65, 0.12);
  transition: box-shadow 0.25s, transform 0.4s var(--ease);
}
.gallery-grid a:hover, .gallery-grid a:focus-visible {
  box-shadow: 0 18px 38px rgba(137, 76, 65, 0.20);
  transform: translateY(-4px);
}
.gallery-grid img { width: 100%; height: auto; display: block; }

/* ============================================================
   RESPONSIVE & MOTION
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { margin-top: 2.5rem; max-width: 460px; aspect-ratio: 530 / 370; }
  .node-bi { top: 0; }
  .node-sh { top: 0; }
  .node-bg { bottom: 0; left: 0; }
  .unit-node { min-width: 116px; padding: 0.5rem 0.6rem; }
  .portal-core { width: 150px; height: 104px; }
  .core-mark { width: 48px; height: 48px; font-size: 23px; }
}

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; }
  .work-item--flip .work-item__visual-wrap { order: 0; }
  .work-item--flip .work-item__info { order: 1; }
  .nav__links a:not(.nav__cta) { display: none; } /* mobile: sisakan CTA */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__marquee-track, .skills__marquee-track { animation: none; }
  .intro__word, .intro__tag, .logo-mark--intro { animation: none; }
  body::after { animation: none; }
  .hero__glow--2 { animation: none; }
  .hero::before, .hero::after,
  .unit-node, .hero__stage .connector-map path, .hero__stage-status i { animation: none; }
  .hero__line-inner { transform: none; transition: none; }
  .hero-fade { opacity: 1; transform: none; transition: none; }
  .section-head h2::after { transform: scaleX(1); transition: none; }
}
