:root {
  --bg: #ebebe8;
  --ink: #2c2c2b;
  --muted: #84847f;
  --line: #a3a39e;
  --dark: #1d1d1d;
  --display: "Anton", "Impact", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- shared ---------- */
.title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: 0.005em;
  margin: 0 0 10px;
  color: #333331;
}
.subtitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 34px;
}
.center { text-align: center; }
.right { text-align: right; }

.pill {
  display: inline-block;
  background: #2f2f2e;
  color: #f2f2ef;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 24px;
  border-radius: 99px;
  margin-top: 26px;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.pill:hover { transform: translateY(-2px); background: #000; }

.deco { position: absolute; pointer-events: none; }
.deco--sq { width: 64px; height: 64px; border: 1px solid var(--line); opacity: 0.7; }
.deco--sq::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--line); right: -12px; top: -12px; background: var(--bg); }
.deco--line { width: 70px; height: 14px; border: 1px solid var(--line); left: 0; top: -26px; opacity: 0.7; }

.sec { position: relative; max-width: 1180px; margin: 0 auto; padding: 100px 6vw; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 5vw 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.4vw;
}
.nav { position: absolute; top: 34px; left: 5vw; right: 5vw; display: flex; justify-content: space-between; align-items: flex-start; }
.logo { display: block; height: 26px; width: auto; image-rendering: pixelated; }
.logo--sm { height: 16px; }
.brand { display: inline-block; transition: transform 0.3s var(--ease); }
.brand:hover { transform: translateY(-2px); }
.nav-left { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.nav-left .nav-group { margin-top: 0; }
.loader-brand { display: flex; align-items: center; gap: 10px; }
.loader-brand .logo { height: 22px; }
.nav-group { display: flex; gap: 8px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #5c5c58; margin-top: 26px; }
.nav-group--right { margin-top: 0; }
.nav-group a { text-decoration: none; position: relative; }
.nav-group a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-group a:hover::after { transform: scaleX(1); }
.nav-group span { color: #b0b0ab; }

.hero-left { position: relative; justify-self: end; }
.greet { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); margin: 0 0 2px; color: #4a4a47; }
.role { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 3.9vw, 56px); line-height: 1; margin: 0; color: #2b2b2a; }
.role-sub { font-size: 9.5px; letter-spacing: 0.42em; line-height: 1.9; text-transform: uppercase; color: var(--muted); margin: 6px 0 18px; max-width: 300px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.5vw, 21px); color: #5a5a56; margin: 0; }
.script { font-family: var(--script); font-style: normal; font-size: clamp(40px, 4.2vw, 62px); color: #3a3a38; line-height: 0.6; display: inline-block; margin-left: 6px; transform: translateY(14px); }
.stats { display: flex; gap: 34px; margin-top: 46px; }
.stats b { display: block; font-weight: 300; font-size: 26px; color: #3a3a38; }
.stats small { font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.hero-center { position: relative; display: flex; flex-direction: column; align-items: center; }
.arch {
  width: clamp(230px, 25vw, 330px);
  aspect-ratio: 3 / 4.2;
  background: #c9c8c3;
  border-radius: 22px 22px 999px 999px;
  overflow: hidden;
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.arch img[src$=".svg"] { image-rendering: pixelated; }
.pill--arch { position: absolute; bottom: -16px; margin: 0; }

.hero-right { justify-self: start; position: relative; }
.exp-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 3.9vw, 56px); line-height: 0.95; margin: 0 0 18px; color: #2b2b2a; }
.exp li { margin-bottom: 12px; }
.exp b { display: block; font-weight: 500; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: #4a4a47; }
.exp small { font-size: 10px; color: var(--muted); }

/* ---------- experience timeline ---------- */
.timeline { position: relative; margin: 10px 0 0; padding: 0; list-style: none; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 236px; top: 10px; bottom: 10px; width: 1px; background: #c9c9c4; }
.tl-item { display: grid; grid-template-columns: 210px 52px minmax(0, 1fr); align-items: start; padding: 0 0 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-period { font-family: var(--display); text-transform: uppercase; font-size: 19px; line-height: 1.1; color: #3a3a38; text-align: right; padding-top: 4px; white-space: nowrap; }
.tl-dot { justify-self: center; width: 13px; height: 13px; margin-top: 8px; border-radius: 50%; background: var(--bg); border: 2px solid #2f2f2e; position: relative; z-index: 1; transition: background 0.3s, transform 0.3s var(--ease); }
.tl-item:first-child .tl-dot { background: #d8322f; border-color: #d8322f; box-shadow: 0 0 0 5px rgba(216, 50, 47, 0.15); }
.tl-item:hover .tl-dot { transform: scale(1.3); background: #2f2f2e; }
.tl-item:first-child:hover .tl-dot { background: #d8322f; }
.tl-role { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1.05; color: #2b2b2a; }
.tl-place { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin: 7px 0 0; }
.tl-place + .tl-desc { margin-top: 10px; }
.tl-desc { margin: 0; font-size: 13px; line-height: 1.75; color: #6b6b67; max-width: 560px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tl-tags span { font-size: 10px; padding: 4px 11px; border-radius: 99px; border: 1px solid #c9c9c4; color: #55554f; }
.timeline + .center .pill { margin-top: 46px; }

/* ---------- media ---------- */
.media { position: absolute; inset: 0; }
iframe.media, video.media, img.media { width: 100%; height: 100%; border: 0; object-fit: cover; }
.media img, .media video, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt { all: unset; position: absolute; inset: 0; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.playbtn { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #111; display: grid; place-items: center; font-size: 22px; transition: transform 0.3s var(--ease); }
.yt:hover .playbtn { transform: scale(1.1); }

.ph { position: absolute; inset: 0; background: var(--c); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 10% 9%; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.45)); }
.ph > * { position: relative; }
.ph-k { font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.85; margin-bottom: 6px; }
.ph-t { font-family: var(--display); text-transform: uppercase; line-height: 1; font-size: clamp(16px, 1.6vw, 24px); }
.ph-i { position: absolute; top: 9%; right: 9%; font-size: 26px; opacity: 0.55; }
.ph-big .ph-t { font-size: clamp(24px, 3vw, 44px); }
.ph-big .ph-i { font-size: 54px; }
.ph-stripe { position: absolute; left: -20%; right: -20%; top: 18%; height: 26%; background: rgba(255, 255, 255, 0.09); transform: rotate(-12deg); }

/* ---------- shorts (phones) ---------- */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 1.6vw, 22px); margin-top: 40px; }
.phones > div { flex: 0 1 160px; min-width: 0; }
.phones .phone { width: 100%; }
.phone {
  width: clamp(110px, 12.5vw, 160px);
  aspect-ratio: 9 / 19;
  background: #121212;
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 24px 34px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease);
}
.phone:hover { transform: translateY(-10px); }
.phone .scr { position: relative; height: 100%; border-radius: 19px; overflow: hidden; background: #000; }
.phone .scr iframe.tt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.phone .scr::before { content: ""; position: absolute; z-index: 2; top: 6px; left: 50%; width: 34%; height: 12px; margin-left: -17%; background: #121212; border-radius: 10px; }

/* ---------- players ---------- */
.player { background: var(--dark); border-radius: 16px; padding: 10px 10px 0; box-shadow: 0 26px 40px -22px rgba(0, 0, 0, 0.6); transition: transform 0.45s var(--ease); }
.player:hover { transform: translateY(-6px); }
.player .scr { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.player .bar { display: flex; align-items: center; gap: 10px; color: #cfcfcb; font-size: 10px; padding: 9px 4px 10px; }
.player .bar i { font-size: 14px; }
.player .track { flex: 1; height: 3px; background: #4a4a48; border-radius: 3px; position: relative; }
.player .track::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 30%); background: #e6e6e2; border-radius: 3px; }
.player .top { position: absolute; z-index: 2; top: 8px; right: 10px; color: #fff; font-size: 13px; opacity: 0.85; display: flex; gap: 8px; }


/* YouTube slider */
.slider-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.slider-head .title { margin: 0; }
.slider-ctrl { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.slider-count { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.slider-count b { color: var(--ink); font-weight: 500; }
.sbtn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #2f2f2e; background: transparent; color: #2f2f2e; font-size: 18px; display: grid; place-items: center; cursor: pointer; transition: background 0.25s, color 0.25s, opacity 0.25s; }
.sbtn:hover { background: #2f2f2e; color: #f2f2ef; }
.sbtn[disabled] { opacity: 0.25; pointer-events: none; }
.slider {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  column-gap: 20px;
  row-gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 2px 26px;
  margin: -10px -2px 0;
  cursor: grab;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; min-width: 0; }
.slider .player { padding: 8px 8px 0; border-radius: 13px; }
.slider .bar { padding: 7px 2px 8px; font-size: 9px; }
.slider-title { font-size: 12px; line-height: 1.5; color: #4a4a47; margin: 12px 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slider.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider.is-drag * { pointer-events: none; }
.slider-progress { height: 2px; background: #d3d3ce; margin-top: 4px; position: relative; }
.slider-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width 0.2s; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card-cap { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; color: #e6e6e2; }
.card-cap b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 18px; letter-spacing: 0.02em; }
.card-cap small { font-size: 10px; color: #9b9b97; }
.card-cap .badge { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #1d1d1d; background: #e6e6e2; padding: 3px 9px; border-radius: 99px; }
.player.game { display: block; text-decoration: none; color: inherit; }
.player.game .scr img { transition: transform 0.6s var(--ease); }
.player.game:hover .scr img { transform: scale(1.04); }
.play-rbx {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; color: #111; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 99px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.play-rbx i { font-size: 14px; }
.player.game:hover .play-rbx { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .play-rbx { opacity: 1; transform: translate(-50%, 0); } }
.game-stats { gap: 16px; font-size: 11px; color: #cfcfcb; }
.game-stats span { display: inline-flex; align-items: center; gap: 6px; }
.game-stats .tag { margin-left: auto; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #8d8d89; }

/* studio card */
.studio {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 28px;
  margin-top: 24px; padding: 18px 26px 18px 18px; border-radius: 16px;
  background: var(--dark); color: #eeeeea; text-decoration: none;
  box-shadow: 0 26px 40px -22px rgba(0, 0, 0, 0.6);
  transition: transform 0.45s var(--ease);
}
.studio:hover { transform: translateY(-6px); }
.studio-logo { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.studio-k { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: #8d8d89; }
.studio-name { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1.05; margin: 4px 0 4px; }
.studio-tag { margin: 0; font-size: 12px; color: #a9a9a4; }
.studio-stats { display: flex; gap: 26px; }
.studio-stats b { display: block; font-weight: 300; font-size: 24px; color: #fff; }
.studio-stats small { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #8d8d89; }
.studio-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 11px 18px; border-radius: 99px; white-space: nowrap; transition: background 0.25s; }
.studio:hover .studio-btn { background: #d8322f; color: #fff; }

/* ---------- software ---------- */
.soft { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 56px; align-items: center; }
.photo-frame { position: relative; aspect-ratio: 4 / 5; background: #fff; padding: 10px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.5); transform: rotate(-2deg); }
.photo-frame > div, .photo-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo-frame .pixel-desk { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.soft-names { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--display); text-transform: uppercase; font-size: 17px; color: #555552; margin: 6px 0 24px; }
.soft-list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.tile { width: 52px; height: 52px; border-radius: 12px; background: #2f2f2e; color: #eeeeea; display: grid; place-items: center; font-size: 21px; font-weight: 500; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.6); }
.tile i { font-size: 26px; }
.tile-logo { width: 30px; height: 30px; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.soft-list p { margin: 0; font-size: 12px; line-height: 1.65; color: #76766f; }
.soft-list p b { color: #3d3d3a; font-weight: 600; }

/* ---------- AI that I use ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 6px; }
.ai-grid > div { height: 100%; }
.ai-card {
  height: 100%; background: #f5f5f2; border: 1px solid #dcdcd8; border-radius: 16px; padding: 20px 20px 22px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.ai-card:hover { transform: translateY(-6px); box-shadow: 0 24px 36px -24px rgba(0, 0, 0, 0.45); }
.ai-name { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: 1; color: #2b2b2a; margin: 18px 0 8px; }
.ai-card p { margin: 0; font-size: 12px; line-height: 1.65; color: #76766f; }

/* ---------- contact ---------- */
.sec--contact { padding-bottom: 140px; }
.contact-wrap { max-width: 520px; margin: 0 auto; }
.contact { margin: 22px 0 10px; }
.contact li { margin-bottom: 14px; }
.contact a { display: inline-flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 300; color: #6a6a66; text-underline-offset: 4px; }
.contact a:hover { color: #000; }
.contact i { width: 34px; height: 34px; border: 1.5px solid #4a4a47; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #3a3a38; }
#contact-btn { margin-top: 40px; }

.footer { display: flex; justify-content: space-between; align-items: center; padding: 18px 5vw; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-top: 1px solid #dcdcd8; }

/* ---------- loading screen ---------- */
body.is-loading { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 1000; pointer-events: all; }
.loader-curtain, .loader-panel { position: absolute; inset: 0; }
.loader-curtain { background: var(--dark); }
.loader-panel {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 5vw 26px;
}
.loader-top { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #5c5c58; }
.loader-script { font-family: var(--script); font-size: 34px; letter-spacing: 0; text-transform: none; color: #3a3a38; }
.loader-mid { display: flex; flex-direction: column; align-items: center; }
.loader-track { position: relative; width: min(340px, 64vw); height: 2px; background: #cfcfca; }
.loader-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
#loader-runner { position: absolute; bottom: 4px; left: 0; width: 32px; height: 48px; margin-left: -16px; image-rendering: pixelated; }
.loader-label { margin: 18px 0 0; font-size: 9.5px; letter-spacing: 0.45em; text-transform: uppercase; color: var(--muted); }
.loader-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.loader-tags { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.6vw, 21px); color: #5a5a56; }
.loader-count { font-family: var(--display); line-height: 0.8; color: #2b2b2a; display: flex; align-items: flex-start; }
.loader-count b { font-weight: 400; font-size: clamp(90px, 17vw, 220px); font-variant-numeric: tabular-nums; }
.loader-count small { font-size: clamp(24px, 3vw, 40px); margin-left: 6px; }

.loader.is-done .loader-panel { transform: translateY(-100%); transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1); }
.loader.is-done .loader-curtain { transform: translateY(-100%); transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.14s; }
.loader.is-done { pointer-events: none; }

/* ---------- music prompt ---------- */
.mprompt {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px;
  background: rgba(29, 29, 29, 0.35); opacity: 0; transition: opacity 0.4s;
}
.mprompt.is-in { opacity: 1; }
.mprompt[hidden] { display: none; }
.mprompt-card {
  width: min(420px, 100%); background: var(--bg); border-radius: 22px; padding: 30px 28px 26px; text-align: center;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  /* masuk: muncul dari bawah, sedikit miring, lalu memantul ke posisi */
  opacity: 0; transform: translateY(60px) scale(0.8) rotate(-3deg);
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.mprompt.is-in .mprompt-card { opacity: 1; transform: none; }
/* isi kartu muncul satu-satu */
.mprompt-card > * { opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease, transform 0.6s var(--ease); }
.mprompt.is-in .mprompt-card > * { opacity: 1; transform: none; }
.mprompt.is-in .mprompt-card > :nth-child(1) { transition-delay: 0.25s; }
.mprompt.is-in .mprompt-card > :nth-child(2) { transition-delay: 0.33s; }
.mprompt.is-in .mprompt-card > :nth-child(3) { transition-delay: 0.41s; }
.mprompt.is-in .mprompt-card > :nth-child(4) { transition-delay: 0.49s; }
/* keluar: isi hilang duluan, lalu kartu terangkat, mengecil, dan blur */
.mprompt.is-out { opacity: 0; transition: opacity 0.4s ease 0.35s; }
.mprompt.is-out .mprompt-card {
  opacity: 0; transform: translateY(-50px) scale(0.88); filter: blur(8px);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.84, 0) 0.12s, opacity 0.4s ease 0.3s, filter 0.4s ease 0.3s;
}
.mprompt.is-out .mprompt-card > * { opacity: 0; transform: translateY(-12px); transition: opacity 0.25s ease, transform 0.3s ease; transition-delay: 0s; }
.mbtn.is-picked { transform: scale(0.93) !important; background: #d8322f !important; border-color: #d8322f !important; color: #fff !important; }
.mprompt-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 38px; line-height: 1; margin: 14px 0 10px; color: #2b2b2a; }
.mprompt-text { font-size: 12.5px; line-height: 1.7; color: #6b6b67; margin: 0 0 24px; }
.mprompt-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mbtn { display: inline-flex; align-items: center; gap: 8px; font: 600 10px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 20px; border-radius: 99px; cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s; }
.mbtn i { font-size: 15px; }
.mbtn--yes { background: #2f2f2e; color: #f2f2ef; border: 1.5px solid #2f2f2e; }
.mbtn--yes:hover { background: #d8322f; border-color: #d8322f; transform: translateY(-2px); }
.mbtn--no { background: transparent; color: #2f2f2e; border: 1.5px solid #2f2f2e; }
.mbtn--no:hover { background: #2f2f2e; color: #f2f2ef; transform: translateY(-2px); }
.mprompt-eq, .mp-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.mprompt-eq i, .mp-eq i { width: 4px; background: #d8322f; border-radius: 2px; height: 30%; }
.mprompt-eq i { animation: eq 0.9s ease-in-out infinite; }
.mprompt-eq i:nth-child(2), .mp-eq i:nth-child(2) { animation-delay: -0.3s; }
.mprompt-eq i:nth-child(3), .mp-eq i:nth-child(3) { animation-delay: -0.6s; }
.mprompt-eq i:nth-child(4), .mp-eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ---------- music player ---------- */
.mp {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.4s var(--ease);
}
.mp.is-in { opacity: 1; transform: none; }
.mp[hidden] { display: none; }
.mp-full {
  display: flex; align-items: center; gap: 10px; width: min(460px, calc(100vw - 24px));
  background: var(--dark); color: #eeeeea; border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.65);
  transform-origin: bottom right; transition: transform 0.35s var(--ease), opacity 0.25s;
}
.mp.is-min .mp-full { position: absolute; right: 0; bottom: 0; transform: scale(0.2); opacity: 0; pointer-events: none; }
.mp-mini {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--dark);
  display: grid; place-items: center; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease);
}
.mp-mini:hover { transform: scale(1.08); }
.mp:not(.is-min) .mp-mini { display: none; }
.mp-eq { height: 18px; }
.mp-eq i { background: #eeeeea; height: 25%; }
.mp.is-playing .mp-eq i { animation: eq 0.9s ease-in-out infinite; background: #ff5a4f; }
.mp-btn { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #eeeeea; display: grid; place-items: center; font-size: 17px; cursor: pointer; transition: background 0.2s; }
.mp-btn:hover { background: #333331; }
.mp-play { width: 40px; height: 40px; background: #eeeeea; color: #111; font-size: 18px; }
.mp-play:hover { background: #fff; }
.mp-mid { flex: 1; min-width: 0; }
.mp-top { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; margin-bottom: 4px; }
.mp-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-time { color: #9b9b97; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-vol { display: flex; align-items: center; gap: 2px; }
.mp-vol .mp-range { width: 70px; }
.mp-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; cursor: pointer; margin: 0;
  background: linear-gradient(90deg, #ff5a4f var(--p, 0%), #4a4a48 var(--p, 0%));
}
.mp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.mp-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
@media (max-width: 520px) {
  .mp { right: 12px; bottom: 12px; }
  .mp-vol .mp-range { display: none; }
}

/* ---------- tombol mode gelap / terang ---------- */
.theme-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 800;
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor;
  background: var(--bg); color: var(--ink); display: grid; place-items: center; font-size: 19px; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.theme-toggle:hover { transform: rotate(-20deg) scale(1.08); }
.theme-toggle i { transition: transform 0.5s var(--ease); }
.theme-toggle.spin i { transform: rotate(360deg); }
.nav { right: calc(5vw + 52px); }
/* transisi warna halus waktu ganti mode */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, fill 0.45s ease !important;
}

/* ---------- menu HP (disembunyikan di desktop) ---------- */
.menu-toggle, .mobile-menu { display: none; }
@media (max-width: 640px) {
  .nav .nav-group { display: none; }
  .hero { padding-top: 90px; }
  .menu-toggle {
    display: grid; place-items: center; position: fixed; top: 14px; right: 60px; z-index: 800;
    width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid currentColor;
    background: var(--bg); color: var(--ink); font-size: 18px; cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
  }
  .mobile-menu {
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; z-index: 790;
    background: var(--bg); padding: 70px 22px 18px;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.45);
    transform: translateY(-105%); transition: transform 0.5s var(--ease); visibility: hidden;
  }
  .mobile-menu.is-open { transform: none; visibility: visible; }
  .mobile-menu a {
    font-family: var(--display); text-transform: uppercase; font-size: 26px; line-height: 1;
    color: var(--ink); text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.4s var(--ease);
  }
  .mobile-menu a:last-child { border-bottom: 0; }
  .mobile-menu.is-open a { opacity: 1; transform: none; }
  .mobile-menu.is-open a:nth-child(2) { transition-delay: 0.04s; }
  .mobile-menu.is-open a:nth-child(3) { transition-delay: 0.08s; }
  .mobile-menu.is-open a:nth-child(4) { transition-delay: 0.12s; }
  .mobile-menu.is-open a:nth-child(5) { transition-delay: 0.16s; }
  .mobile-menu.is-open a:nth-child(6) { transition-delay: 0.2s; }
  .mobile-menu.is-open a:nth-child(7) { transition-delay: 0.24s; }
}

/* ---------- MODE GELAP ---------- */
html[data-theme="dark"] { --bg: #121212; --ink: #ecece8; --muted: #8d8d88; --line: #4a4a47; --dark: #1c1c1c; color-scheme: dark; }
html[data-theme="dark"] .title,
html[data-theme="dark"] .role,
html[data-theme="dark"] .exp-title,
html[data-theme="dark"] .tl-period,
html[data-theme="dark"] .tl-role,
html[data-theme="dark"] .ai-name,
html[data-theme="dark"] .mprompt-title,
html[data-theme="dark"] .stats b,
html[data-theme="dark"] .script,
html[data-theme="dark"] .soft-list p b { color: #ecece8; }
html[data-theme="dark"] .greet,
html[data-theme="dark"] .tagline,
html[data-theme="dark"] .exp b,
html[data-theme="dark"] .soft-names,
html[data-theme="dark"] .nav-group { color: #b9b9b4; }
html[data-theme="dark"] .nav-group span { color: #4a4a47; }
html[data-theme="dark"] .tl-desc,
html[data-theme="dark"] .ai-card p,
html[data-theme="dark"] .soft-list p,
html[data-theme="dark"] .slider-title,
html[data-theme="dark"] .mprompt-text,
html[data-theme="dark"] .contact a { color: #a3a39e; }
html[data-theme="dark"] .contact a:hover { color: #fff; }
html[data-theme="dark"] .contact i { border-color: #8d8d88; color: #ecece8; }
html[data-theme="dark"] .pill { background: #ecece8; color: #141414; }
html[data-theme="dark"] .pill:hover { background: #fff; }
html[data-theme="dark"] .sbtn { border-color: #ecece8; color: #ecece8; }
html[data-theme="dark"] .sbtn:hover { background: #ecece8; color: #141414; }
html[data-theme="dark"] .mbtn--yes { background: #ecece8; border-color: #ecece8; color: #141414; }
html[data-theme="dark"] .mbtn--no { border-color: #ecece8; color: #ecece8; }
html[data-theme="dark"] .mbtn--no:hover { background: #ecece8; color: #141414; }
html[data-theme="dark"] .timeline::before { background: #3a3a38; }
html[data-theme="dark"] .tl-dot { background: var(--bg); border-color: #ecece8; }
html[data-theme="dark"] .tl-item:hover .tl-dot { background: #ecece8; }
html[data-theme="dark"] .tl-tags span { border-color: #3a3a38; color: #b9b9b4; }
html[data-theme="dark"] .ai-card { background: #1b1b1b; border-color: #2c2c2a; }
html[data-theme="dark"] .photo-frame { background: #222220; }
html[data-theme="dark"] .arch { background: #2a2a28; }
html[data-theme="dark"] .player,
html[data-theme="dark"] .studio,
html[data-theme="dark"] .phone { box-shadow: 0 0 0 1px #2e2e2c, 0 26px 40px -22px rgba(0, 0, 0, 0.8); }
html[data-theme="dark"] .slider-progress { background: #2e2e2c; }
html[data-theme="dark"] .footer { border-top-color: #262624; }
html[data-theme="dark"] .mp-full,
html[data-theme="dark"] .mp-mini { box-shadow: 0 0 0 1px #333331, 0 24px 50px -20px rgba(0, 0, 0, 0.8); }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(42px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .loader.is-done .loader-panel, .loader.is-done .loader-curtain { transform: none; opacity: 0; transition: opacity 0.3s; }
  .mprompt-card, .mprompt-card > *, .mprompt.is-out .mprompt-card { transform: none !important; filter: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 54px; }
  .hero-left, .hero-right { justify-self: center; }
  .deco--line { left: 50%; margin-left: -35px; }
  .stats { justify-content: center; }
  .nav { flex-direction: column; align-items: center; gap: 8px; top: 22px; }
  .nav-left { align-items: center; gap: 12px; }
  .nav { right: 5vw; }
  .theme-toggle { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 17px; }
  .nav-group { margin-top: 0; flex-wrap: wrap; justify-content: center; }
  .duo, .soft { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
  .studio-stats, .studio-btn { grid-column: 1 / -1; }
  .studio-btn { justify-self: start; }
  .slider { grid-auto-columns: calc((100% - 20px) / 2); }
  .photo-frame { width: 100%; max-width: 320px; margin: 0 auto; }
  .sec { padding: 70px 6vw; }
}
@media (max-width: 640px) {
  /* rapihin tampilan HP */
  .deco { display: none; }
  .sec { padding: 64px 22px; }
  .hero { padding: 90px 22px 70px; gap: 46px; }
  .nav { left: 16px; right: 16px; }
  .nav-group { font-size: 9px; letter-spacing: 0.1em; gap: 6px; }
  .theme-toggle { box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35); }
  .title { font-size: 40px; }
  .subtitle { letter-spacing: 0.3em; margin-bottom: 26px; }
  .phones { flex-wrap: wrap; gap: 14px; }
  .phones > div { flex: 0 0 calc(50% - 7px); max-width: 190px; }
  .play-rbx { bottom: 10px; padding: 8px 14px; font-size: 9px; }
  .photo-frame { width: 100%; max-width: 300px; }
  .slider-head { align-items: center; }
  .slider-head .title { font-size: 34px; }
  .sbtn { width: 40px; height: 40px; }
  .ai-grid { gap: 12px; }
  .ai-card { padding: 16px 14px 18px; }
  .ai-name { font-size: 20px; margin-top: 14px; }
  .studio { padding: 16px; gap: 14px 16px; }
  .studio-logo { width: 72px; height: 72px; }
  .studio-name { font-size: 24px; }
  .studio-stats { gap: 20px; }
  .studio-stats b { font-size: 20px; }
  .contact a { font-size: 14px; word-break: break-all; }
  .mprompt-card { padding: 26px 20px 22px; }
  .mprompt-title { font-size: 32px; }
  .mbtn { flex: 1 1 100%; justify-content: center; }
  .loader-count b { font-size: 96px; }
  .footer { padding: 16px 22px 90px; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 13px minmax(0, 1fr); column-gap: 18px; }
  .tl-period { grid-column: 2; grid-row: 1; text-align: left; font-size: 16px; margin-bottom: 4px; }
  .tl-dot { grid-column: 1; grid-row: 1; margin-top: 4px; }
  .tl-body { grid-column: 2; }
}
@media (max-width: 520px) {
  .slider { grid-auto-columns: 85%; }
  .slider-count { display: none; }
}
