/* ==========================================================================
   ihsan.dev — minimal luxe, code-first
   ========================================================================== */

:root {
  --bg: #f4f3ee;
  --bg-alt: #ecebe4;
  --surface: #fbfaf7;
  --ink: #141413;
  --ink-2: #3b3a36;
  --muted: #85837a;
  --line: rgba(20, 20, 19, 0.11);
  --line-strong: rgba(20, 20, 19, 0.22);
  --accent: #0e7a50;
  --accent-soft: rgba(14, 122, 80, 0.1);
  --on-accent: #f4f3ee;
  --code-k: #8a3ffc;
  --code-s: #0e7a50;
  --code-n: #b45309;
  --code-f: #1d4ed8;
  --shadow: 0 1px 0 rgba(20, 20, 19, 0.04), 0 24px 60px -30px rgba(20, 20, 19, 0.28);
  --grain-opacity: 0.05;

  --f-display: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-body: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
}

[data-theme='dark'] {
  --bg: #0d0d0c;
  --bg-alt: #121211;
  --surface: #171715;
  --ink: #edece6;
  --ink-2: #c4c2b9;
  --muted: #84827a;
  --line: rgba(237, 236, 230, 0.1);
  --line-strong: rgba(237, 236, 230, 0.22);
  --accent: #7fe0a8;
  --accent-soft: rgba(127, 224, 168, 0.1);
  --on-accent: #0d0d0c;
  --code-k: #c4a5ff;
  --code-s: #7fe0a8;
  --code-n: #f7b267;
  --code-f: #8ab4ff;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --grain-opacity: 0.07;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
code, pre { font-family: var(--f-display); }
b { font-weight: 600; color: var(--ink); }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 1.5px dashed var(--accent); outline-offset: 4px; border-radius: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.c-accent { color: var(--accent); }
.c-muted { color: var(--muted); }

/* Scrollbar: tipis, melayang, aksen saat disentuh */
html { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--line-strong);
  border: 3px solid transparent; background-clip: padding-box;
  border-radius: 999px; min-height: 48px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--accent); border-width: 2px; }
::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
::-webkit-scrollbar-corner { background: transparent; }
.code-window__body::-webkit-scrollbar, .filters::-webkit-scrollbar { height: 6px; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- Ambient ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 120;
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 130;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--accent); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease),
    background-color 0.35s var(--ease), opacity 0.3s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: var(--accent);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: clip-path 1s var(--ease-io), visibility 0s 1s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__term {
  width: min(440px, calc(100% - 32px));
  font-family: var(--f-display); font-size: 13px; line-height: 2;
}
.loader__line { opacity: 0; transform: translateY(6px); transition: all 0.4s var(--ease); }
.loader__line.is-in { opacity: 1; transform: none; }
.loader__bar { margin-top: 18px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 22px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid var(--ink); border-radius: 999px;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.4s var(--ease);
}
.btn span { display: inline-block; transition: transform 0.45s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: var(--on-accent); border-color: var(--accent); }
.btn--ghost { color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn--sm { --pad-y: 8px; --pad-x: 14px; font-size: 12px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--f-display); font-size: 13px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1px; color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
/* fallback dulu, lalu color-mix untuk browser modern */
.nav.is-scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; display: inline-flex; align-items: center; }
.caret {
  display: inline-block; width: 8px; height: 16px; margin-left: 4px;
  background: var(--accent); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; padding: 8px 12px;
  font-family: var(--f-display); font-size: 12.5px;
  color: var(--ink-2); transition: color 0.3s;
}
.nav__links a span { margin-right: 2px; font-size: 11px; }
.nav__links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  position: relative; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(25deg); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; transition: transform 0.6s var(--ease), opacity 0.4s; }
.icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme='dark'] .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme='dark'] .icon-moon { opacity: 1; transform: none; }

.burger { display: none; width: 40px; height: 40px; position: relative; border: 1px solid var(--line-strong); border-radius: 50%; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 22px; }
.menu-open .burger span:first-child { top: 18.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 18.5px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  /* Tinggi = area yang benar-benar terlihat (di iOS, inset:0 ikut area di balik toolbar browser) */
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  height: 100vh; height: 100dvh;
  background: var(--bg);
  padding: calc(var(--nav-h) + 16px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  clip-path: circle(0% at calc(100% - 40px) 36px);
  transition: clip-path 0.8s var(--ease-io);
  pointer-events: none;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 36px); pointer-events: auto; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: clamp(6px, 1.4vh, 10px) 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(24px, min(8vw, 5.2vh), 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.25;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), color 0.3s;
}
.menu__links a span { font-size: 12px; font-weight: 400; color: var(--accent); letter-spacing: 0; }
.menu__links a:hover { color: var(--accent); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: 0.18s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: 0.22s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: 0.26s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: 0.3s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: 0.34s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: 0.38s; }
.menu-open .menu__links a:nth-child(7) { transition-delay: 0.42s; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; font-family: var(--f-display); font-size: 13px; color: var(--muted); }
.menu-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute; inset: -20% 0 0 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.hero__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }

.hero__comment { font-family: var(--f-display); font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(42px, 7.6vw, 108px);
  line-height: 0.95; letter-spacing: -0.065em;
  margin-bottom: 28px;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line__in { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.line:nth-child(2) .line__in { transition-delay: 0.1s; }
.is-ready .line__in { transform: none; }
/* Setelah JS memecah nama per huruf, tiap huruf yang beranimasi */
.line__in.is-split { transform: none; transition: none; }
.char { display: inline-block; transform: translateY(115%) rotate(6deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); transition-delay: calc(0.25s + var(--i) * 0.035s); }
.is-ready .char { transform: none; }

.hero__role { font-family: var(--f-display); font-size: clamp(14px, 1.6vw, 17px); margin-bottom: 22px; }
.typed { color: var(--accent); font-weight: 500; }
.typed-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -0.15em; margin-left: 2px; animation: blink 0.9s steps(1) infinite; }

.hero__lead { max-width: 54ch; color: var(--ink-2); font-size: clamp(14px, 1.2vw, 15.5px); margin-bottom: 34px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__status {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--f-display); font-size: 12px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }

/* Visual */
.hero__visual { position: relative; justify-self: center; width: min(420px, 100%); }
.portrait {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
  will-change: transform;
  transition: transform 0.8s var(--ease);
  opacity: 0; transform: scale(0.94);
}
.is-ready .portrait { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) 0.3s, transform 1.4s var(--ease) 0.3s; }
.portrait__bar, .code-window__bar, .form__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 11.5px; color: var(--ink-2);
}
.portrait__bar span:last-child { margin-left: auto; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); }
.dots i:first-child { background: var(--accent); border-color: var(--accent); }

.portrait__img { overflow: hidden; aspect-ratio: 1 / 1.03; background: #fff; }
.portrait__img img {
  width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 1s var(--ease), transform 1.2s var(--ease);
  will-change: transform;
}
.portrait:hover .portrait__img img { filter: grayscale(0) contrast(1); }
[data-theme='dark'] .portrait__img img { filter: grayscale(1) contrast(1.08) brightness(0.92); }
[data-theme='dark'] .portrait:hover .portrait__img img { filter: grayscale(0) brightness(0.96); }

.corner { position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; border-width: 0; }
.corner--tl { top: -8px; left: -8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner--tr { top: -8px; right: -8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner--bl { bottom: -8px; left: -8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner--br { bottom: -8px; right: -8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.float-card {
  position: absolute; z-index: 2;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: var(--f-display);
  will-change: transform;
  opacity: 0;
  transition: opacity 1s var(--ease) 0.9s;
}
.is-ready .float-card { opacity: 1; }
.float-card--code { left: -22%; bottom: 12%; padding: 14px 18px; font-size: 11.5px; line-height: 1.7; }
.float-card--code pre { white-space: pre; }
.float-card--badge {
  right: -12%; top: 14%;
  padding: 12px 16px; display: flex; flex-direction: column; gap: 2px;
  font-size: 11px;
}
.float-card--badge b { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.k { color: var(--code-k); font-style: normal; }
.v { color: var(--ink); }
.s { color: var(--code-s); font-style: normal; }
.n { color: var(--code-n); }
.f { color: var(--code-f); font-style: normal; }
.p { color: var(--muted); }
.key { color: var(--code-f); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--accent); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 22px 0;
  background: var(--bg-alt);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
.marquee span {
  font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.04em;
  white-space: nowrap; color: var(--ink-2);
}
.marquee span::after { content: '/'; color: var(--accent); font-weight: 300; margin: 0 clamp(18px, 2.4vw, 30px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 12vw, 160px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head__idx { font-family: var(--f-display); font-size: 12px; color: var(--accent); }
.sec-head__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(32px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.06em;
  white-space: nowrap;
}
.sec-head__title .c-accent { font-weight: 400; }
.sec-head__rule { flex: 1; height: 1px; background: var(--line-strong); align-self: center; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) 0.2s; }
.sec-head.is-in .sec-head__rule { transform: scaleX(1); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__text > p { color: var(--ink-2); margin-bottom: 18px; max-width: 62ch; }
.about__text .about__big {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 28px;
}
.about__big em { font-style: italic; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 40px; }
.stat { padding: 22px 16px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat b { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat > span { font-size: 11.5px; color: var(--muted); }

.code-window {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: var(--shadow); overflow: hidden;
}
.code-window__body { padding: 20px 22px; font-size: 12.5px; line-height: 1.85; overflow-x: auto; }

/* ---------- Stack ---------- */
.stack { border-top: 1px solid var(--line-strong); }
.stack__row {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.stack__row:hover { padding-left: 12px; }
.stack__key { font-family: var(--f-display); font-size: 14px; font-weight: 500; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--f-display); font-size: 12.5px;
  padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.chips li:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.job { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 0 0 56px 40px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent);
  transition: background 0.4s;
}
.job:first-child::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.job:hover::before { background: var(--accent); }
.job__meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-display); font-size: 12.5px; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.job__hash { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job__hash .c-accent { display: none; }
.tag-head { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 500; }
.tag-head--alt { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.job__date { font-weight: 500; color: var(--ink); }
.job__body h3 { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.2; }
.job__role { font-family: var(--f-display); font-size: 13px; color: var(--accent); margin: 4px 0 18px; }
.job__body ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.job__body li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 14px; }
.job__body li::before { content: '+'; position: absolute; left: 0; color: var(--accent); font-family: var(--f-display); }
.job--muted .job__body h3 { font-size: clamp(18px, 2vw, 22px); }
.job--muted::before { width: 11px; height: 11px; left: 2px; top: 9px; }

.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips span {
  font-family: var(--f-display); font-size: 11px;
  padding: 3px 9px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
}

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  font-family: var(--f-display); font-size: 12.5px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink-2);
  transition: all 0.4s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.5s var(--ease), box-shadow 0.6s var(--ease),
    opacity 0.9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.project:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.project.is-hidden { display: none; }
.project.is-filtering { opacity: 0; transform: translateY(16px) scale(0.98); }
.project--wide { grid-column: span 2; flex-direction: row; }
.project--wide .project__cover { flex: 1.1; aspect-ratio: auto; min-height: 320px; }
.project--wide .project__body { flex: 1; }

.project__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.project--wide .project__cover { border-bottom: 0; border-right: 1px solid var(--line); }
.project__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease), filter 0.8s; filter: saturate(0.85); }
.project:hover .project__cover img { transform: scale(1.05); filter: saturate(1); }

.cover-code {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 15%, var(--accent-soft), transparent 55%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--bg-alt);
}
.cover-code__inner { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-display); font-size: clamp(11px, 1.05vw, 13px); line-height: 1.6; transition: transform 1s var(--ease); }
.project:hover .cover-code__inner { transform: translateX(6px); }
.cc-l { white-space: nowrap; color: var(--ink-2); }
.cc-l.in { padding-left: 2ch; }
.cc-l.c, .cc-l .c { color: var(--muted); font-style: normal; }
.cover-code__label {
  position: absolute; right: 14px; bottom: 12px;
  font-family: var(--f-display); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.project__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project__meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-display); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.project h3 { font-family: var(--f-display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.25; }
.project p { font-size: 13.5px; color: var(--ink-2); }
.project p code { font-size: 12px; padding: 1px 5px; border-radius: 3px; background: var(--bg-alt); }
.project__link {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--f-display); font-size: 12.5px;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.3s;
}
.project__link span { transition: transform 0.5s var(--ease); }
a.project__link:hover { color: var(--accent); }
a.project__link:hover span { transform: translate(3px, -3px); }
.project__link--private { color: var(--muted); }

.projects__more { margin-top: 40px; text-align: center; }

/* ---------- Certs ---------- */
.cert-list { border-top: 1px solid var(--line-strong); margin-bottom: 56px; }
.cert-list li {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  transition: padding 0.5s var(--ease), color 0.3s;
}
.cert-list li:hover { padding-left: 12px; }
.cert-list__yr { font-size: 12.5px; color: var(--muted); }
.cert-list__name { font-size: clamp(14px, 1.5vw, 17px); font-weight: 500; letter-spacing: -0.02em; }
.cert-list__ok { font-size: 11.5px; color: var(--accent); }

.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert {
  text-align: left; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--surface);
  transition: border-color 0.4s, box-shadow 0.6s var(--ease), opacity 1s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.cert:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.cert img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: #fff; transition: transform 1s var(--ease); }
.cert:hover img { transform: scale(1.04); }
.cert__cap { padding: 12px 14px; font-family: var(--f-display); font-size: 13px; font-weight: 500; display: flex; flex-direction: column; gap: 2px; }
.cert__cap i { font-style: normal; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__big {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.06em;
  margin-bottom: 22px;
}
.contact__left > p { margin-bottom: 30px; max-width: 46ch; }

.email-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 18px 0; border-block: 1px solid var(--line-strong);
  font-family: var(--f-display); text-align: left;
  transition: color 0.3s;
}
.email-copy__text { font-size: clamp(15px, 2vw, 22px); font-weight: 500; letter-spacing: -0.03em; word-break: break-all; }
.email-copy__hint { font-size: 12px; color: var(--accent); white-space: nowrap; }
.email-copy:hover { color: var(--accent); }

.socials li a {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 13.5px;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.socials li a i { font-style: normal; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.socials li a b { font-weight: 400; transition: transform 0.5s var(--ease); }
.socials li a:hover { padding-left: 10px; color: var(--accent); }
.socials li a:hover b { transform: translate(3px, -3px); }

.form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.form__body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-family: var(--f-display); font-size: 11.5px; color: var(--muted); }
.field > span i { color: var(--accent); font-style: normal; }
.field input, .field textarea {
  font-family: var(--f-body); font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 8px 0; border-radius: 0; resize: vertical;
  transition: border-color 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.6; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field.is-error input, .field.is-error textarea { border-bottom-color: #d14343; }
.form__status { font-family: var(--f-display); font-size: 12px; min-height: 1.4em; color: var(--accent); }
.form__status.is-error { color: #d14343; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-family: var(--f-display); font-size: 12px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 24px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.lightbox figure { max-width: min(1000px, 100%); transform: scale(0.94) translateY(20px); transition: transform 0.7s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: var(--shadow); background: #fff; }
.lightbox figcaption { text-align: center; margin-top: 16px; font-family: var(--f-display); font-size: 13px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; font-family: var(--f-display); font-size: 12px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; transition: all 0.3s; }
.lightbox__close:hover { background: var(--ink); color: var(--bg); }

/* ---------- View transition (theme) ---------- */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .float-card--code { left: -10%; }
  .float-card--badge { right: -6%; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .hero { padding: calc(var(--nav-h) + 36px) 0 72px; align-items: flex-start; min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { width: min(320px, 78vw); margin: 56px auto 8px; }
  .hero__copy { text-align: left; }
  .hero__scroll { display: none; }
  .float-card--code { left: -14%; bottom: -6%; font-size: 10px; padding: 10px 12px; }
  .float-card--badge { right: -12%; top: 8%; padding: 9px 12px; }
  .float-card--badge b { font-size: 18px; }
  .about, .contact { grid-template-columns: 1fr; }
  .stack__row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .job { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
  .job__meta {
    flex-direction: row; flex-wrap: wrap; gap: 4px 14px;
    top: 0; z-index: 3; padding: 14px 0 10px; margin-top: -14px;
    background: var(--bg);
    box-shadow: 0 10px 14px -12px var(--bg);
    transition: top 0.6s var(--ease);
  }
  .nav:not(.is-hidden) ~ main .job__meta { top: var(--nav-h); }
  .project--wide { grid-column: span 2; flex-direction: column; }
  .project--wide .project__cover { min-height: 0; aspect-ratio: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .nav__cv { display: none; }
  .hero__cta .btn { flex: 1; }
  .hero__status {
    display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px;
    border-radius: 12px; padding: 10px 14px; line-height: 1.5;
  }
  .hero__status .dot { align-self: start; margin-top: 5.5px; }
  .hero__status > span:last-child { grid-column: 2; }
  .float-card--code { left: -6%; bottom: -7%; font-size: 9.5px; padding: 9px 11px; }
  .float-card--badge { right: -8%; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding-left: 10px; padding-right: 0; }
  .stat:first-child { padding-left: 0; }
  .projects { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; }
  .certs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert__cap { padding: 10px 12px; font-size: 12px; }
  .code-window__body { font-size: 11px; padding: 16px; }
  .cert-list li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .cert-list__yr { grid-column: 1 / -1; }
  .socials li a { grid-template-columns: 92px 1fr auto; font-size: 13px; }
  .sec-head { gap: 12px; }
  .sec-head__title { white-space: normal; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
}

/* Grid children may shrink below their content (pre/code blocks) */
.hero__inner > *, .about > *, .contact > *, .job > *, .stack__row > *, .projects > * { min-width: 0; }

/* About — approach card */
.principles li {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.principles li:last-child { border-bottom: 0; }
.principles li:hover { background: var(--accent-soft); }
.principles__no { font-family: var(--f-display); font-size: 12px; color: var(--accent); padding-top: 3px; }
.principles h3 { font-family: var(--f-display); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.principles p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 640px) { .principles li { padding: 16px; } }

/* Honeypot anti-spam — tersembunyi dari manusia, tetap terjangkau bot */
.field--bot {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 920px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { padding-left: 12px; color: var(--accent); }
.faq__item h3 { font-family: var(--f-display); font-size: clamp(15px, 1.7vw, 19px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; }
.faq__item summary i { position: relative; flex-shrink: 0; width: 14px; height: 14px; }
.faq__item summary i::before, .faq__item summary i::after {
  content: ''; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px;
  background: var(--accent); transition: transform 0.5s var(--ease);
}
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item p { padding: 0 40px 26px 0; color: var(--ink-2); font-size: 14px; max-width: 72ch; animation: faqIn 0.6s var(--ease); }
.faq__item p a { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .faq__item p { padding-right: 0; } .faq__item summary { padding: 20px 0; } }

/* ==========================================================================
   Layar sentuh: pengganti efek hover + performa
   ========================================================================== */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (hover: none), (pointer: coarse) {
  /* Grain statis: animasi layer 2x layar terlalu berat untuk HP */
  .grain { animation: none; }

  /* Kartu di hero melayang pelan */
  .is-ready .float-card--code { animation: floatY 6s ease-in-out 1.2s infinite; }
  .is-ready .float-card--badge { animation: floatY 5s ease-in-out 1.6s infinite reverse; }

  /* Foto berwarna otomatis (di laptop saat hover) */
  .portrait.is-color .portrait__img img { filter: grayscale(0) contrast(1); transition-duration: 1.8s; }
  [data-theme='dark'] .portrait.is-color .portrait__img img { filter: grayscale(0) brightness(0.96); }

  /* Elemen di tengah layar mendapat efek seperti hover */
  .project.is-active { border-color: var(--line-strong); box-shadow: var(--shadow); }
  .project.is-active .project__cover img { transform: scale(1.05); filter: saturate(1); }
  .project.is-active .cover-code__inner { transform: translateX(6px); }
  .cert.is-in.is-active { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
  .cert.is-active img { transform: scale(1.04); }
  .stack__row.is-active, .cert-list li.is-active { padding-left: 12px; }
  .cert-list li.is-active .cert-list__name { color: var(--accent); }
  .job.is-active::before { background: var(--accent); }

  /* Umpan balik saat ditekan */
  .btn:active, .filter:active, .theme-toggle:active, .burger:active, .email-copy:active, .cert:active {
    transform: scale(0.96); transition-duration: 0.15s;
  }
  .project:active { transform: scale(0.985); }
}

/* Garis timeline yang terisi mengikuti scroll */
.timeline::after {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
  background: var(--accent); transform-origin: top; transform: scaleY(var(--tl, 0));
}
.job::before { z-index: 1; }

/* Transisi tema cadangan untuk browser tanpa View Transitions */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, fill 0.6s ease, stroke 0.6s ease !important;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 85;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-family: var(--f-display); font-size: 16px; color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s 0.5s, background-color 0.3s, color 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 1.5; }
.to-top__track { stroke: var(--line); }
.to-top__ring { stroke: var(--accent); stroke-dasharray: 138.23; stroke-dashoffset: calc(138.23 * (1 - var(--p, 0))); stroke-linecap: round; }
.to-top span { position: relative; transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .to-top:hover { background: var(--ink); color: var(--bg); }
  .to-top:hover span { transform: translateY(-3px); }
}
.to-top:active { transform: scale(0.92); }
.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 640px) { .to-top { width: 46px; height: 46px; font-size: 15px; } }

/* ==========================================================================
   Motion tambahan
   ========================================================================== */

/* About: kata menyala mengikuti scroll */
.about__big .w { color: var(--line-strong); transition: color 0.35s ease; }
.about__big .w.on { color: var(--ink); }
.about__big em .w.on { color: var(--accent); }

/* Marquee digerakkan JS mengikuti kecepatan scroll */
.marquee.is-js .marquee__track { animation: none; will-change: transform; }

/* Efek tirai pada gambar saat muncul */
.project .project__cover,
.cert img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease) calc(var(--d, 0s) + 0.15s), transform 1.2s var(--ease), filter 0.8s;
}
.project.is-in .project__cover,
.cert.is-in img { clip-path: inset(0 0 0 0); }
.portrait__img { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease) 0.45s; }
.is-ready .portrait__img { clip-path: inset(0 0 0 0); }

/* ---------- Dunia 3D sepanjang halaman (Three.js) ---------- */
.bg3d {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%; display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.has-3d .bg3d { opacity: 1; }
.has-3d .hero__grid-bg { opacity: 0; transition: opacity 1.2s var(--ease); }
/* Latar section dibuat tembus pandang agar partikel terlihat di seluruh halaman */
.has-3d .section--alt { background: var(--bg-alt); background: color-mix(in srgb, var(--bg-alt) 55%, transparent); }
.has-3d .marquee { background: var(--bg-alt); background: color-mix(in srgb, var(--bg-alt) 60%, transparent); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.has-3d .job__meta { background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); }
