:root {
  --bg: #0d0e12;
  --bg-2: #15171d;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f1efe9;
  --muted: #9a9ca5;
  --accent: #ff6b3d;
  --accent-2: #c8f560;
  --accent-3: #7b8cff;
  --radius: 18px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --font: "Sora", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
.bg-glow {
  position: fixed; width: 60vmax; height: 60vmax; border-radius: 50%;
  left: var(--gx, 70%); top: var(--gy, 30%); translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 107, 61, .18), transparent 60%);
  pointer-events: none; transition: left 1.2s ease, top 1.2s ease;
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 40px);
  background: linear-gradient(var(--bg) 72%, rgba(13, 14, 18, 0));
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); rotate: 45deg; }
.brand-sub { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: .8rem; }
.status {
  display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card);
  backdrop-filter: blur(8px);
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.sound-toggle {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: background .3s, transform .3s var(--ease);
}
.sound-toggle:hover { background: rgba(255, 255, 255, .08); transform: scale(1.08); }
.sound-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .slash { display: none; }
.sound-toggle.muted { color: var(--muted); }
.sound-toggle.muted .wave { display: none; }
.sound-toggle.muted .slash { display: inline; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Dock (menu) ---------- */
.dock {
  position: fixed; z-index: 30; left: 50%; bottom: 20px; translate: -50% 0;
  display: flex; gap: 4px; padding: 6px;
  background: rgba(21, 23, 29, .75); border: 1px solid var(--line);
  border-radius: 20px; backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.dock-item {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 16px; border-radius: 14px; font-size: .7rem; color: var(--muted);
  transition: color .3s, transform .3s var(--ease);
}
.dock-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-item:hover { color: var(--text); transform: translateY(-3px); }
.dock-item.active { color: var(--bg); }
.dock-indicator {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0;
  background: var(--accent); border-radius: 14px;
  transition: left .55s var(--ease), width .55s var(--ease);
}

/* ---------- Stage & views ---------- */
#stage { position: fixed; inset: 0; }
.view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: 90px 0 130px;
  visibility: hidden; opacity: 0;
  scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.view.active { visibility: visible; opacity: 1; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Animasi elemen saat view masuk */
[data-anim] { opacity: 0; }
.view.active.entered [data-anim] {
  animation: rise .8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Wipe transition ---------- */
.wipe {
  position: fixed; inset: 0; z-index: 25; pointer-events: none;
  background: var(--accent);
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
  display: grid; place-items: center;
}
.wipe.in { animation: wipeIn .6s var(--ease) forwards; }
.wipe.out { animation: wipeOut .6s var(--ease) forwards; }
@keyframes wipeIn {
  from { clip-path: circle(0 at var(--x) var(--y)); }
  to { clip-path: circle(150vmax at var(--x) var(--y)); }
}
@keyframes wipeOut {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 100% 0); }
}
.wipe-label { display: flex; align-items: baseline; gap: 16px; color: var(--bg); overflow: hidden; }
.wipe-num { font-family: var(--mono); font-size: 1rem; }
.wipe-title { font-size: clamp(2.4rem, 8vw, 6rem); font-weight: 800; letter-spacing: -.03em; }
.wipe.in .wipe-label { animation: labelIn .6s var(--ease) both; }
@keyframes labelIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: .92rem;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: 0 10px 30px rgba(255, 107, 61, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 107, 61, .45); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: .82rem; }

/* ---------- Home ---------- */
/* margin:auto (bukan justify-content:center) supaya konten tidak terpotong ke atas saat layar pendek */
#home { display: flex; flex-direction: column; }
.home-wrap {
  width: min(1120px, 100% - 32px); margin: auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.eyebrow { font-family: var(--mono); color: var(--accent-2); font-size: .85rem; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .95; font-weight: 800; letter-spacing: -.045em; margin: 8px 0 16px; }
.hero-role { font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 600; }
.typer { color: var(--accent); }
.caret { color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { color: var(--muted); max-width: 520px; margin: 18px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stats b { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: .78rem; color: var(--muted); }

/* Nametag */
.tag-scene { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1200px; padding-top: 0; }
.lanyard {
  width: 34px; height: 120px; margin-bottom: -14px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 14px, #e25a2f 14px 28px);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
  border-radius: 4px;
}
.tag {
  width: 290px; height: 420px; cursor: pointer; outline: none;
  transform-origin: 50% -40px;
  animation: swing 5s ease-in-out infinite;
}
.tag:focus-visible .tag-inner { box-shadow: 0 0 0 3px var(--accent-2); border-radius: 22px; }
@keyframes swing { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
.tag-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
  transition: transform .9s var(--ease);
}
.tag.tilting .tag-inner { transition: transform .15s ease-out; }
.tag.flipped { --flip: 180deg; }
.tag-face {
  position: absolute; inset: 0; border-radius: 22px; padding: 30px 24px 22px;
  backface-visibility: hidden;
  background: linear-gradient(160deg, #fbfaf6 0%, #e9e6dc 100%);
  color: #16171c;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .06);
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
.tag-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%);
  transform: translateX(var(--shine, -100%));
  transition: transform .6s ease;
}
.tag-back { transform: rotateY(180deg); background: linear-gradient(160deg, #1d1f27, #121318); color: var(--text); }
.tag-slot { width: 56px; height: 10px; border-radius: 99px; background: var(--bg); position: absolute; top: 12px; }
.tag-head { width: 100%; display: flex; justify-content: space-between; font-size: .66rem; font-weight: 700; letter-spacing: .14em; margin-top: 8px; padding-bottom: 12px; border-bottom: 1.5px dashed currentColor; opacity: .75; }
.tag-head .mono { font-size: .66rem; }
.tag-photo {
  width: 120px; height: 120px; border-radius: 28px; margin: 22px 0 16px;
  background: conic-gradient(from 200deg, var(--accent), #ffb347, var(--accent-2), var(--accent-3), var(--accent));
  display: grid; place-items: center; font-size: 3.2rem; font-weight: 800; color: #16171c;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .55);
  background-size: cover; background-position: center;
}
.tag-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tag-role { font-size: .85rem; color: #5b5d66; margin-top: 2px; }
.tag-chips { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.tag-chips span { font-size: .66rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: #16171c; color: #fbfaf6; }
.tag-foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.tag-foot .mono { font-size: .6rem; opacity: .6; }
.barcode { width: 110px; height: 30px; background: repeating-linear-gradient(90deg, #16171c 0 2px, transparent 2px 4px, #16171c 4px 5px, transparent 5px 8px, #16171c 8px 11px, transparent 11px 12px); }
.qr {
  width: 170px; height: 170px; margin: 28px 0 20px; border-radius: 12px; padding: 10px; background: #fbfaf6;
  display: grid; grid-template-columns: repeat(13, 1fr); gap: 1px;
}
.qr i { background: #16171c; border-radius: 1px; }
.qr i.o { background: transparent; }
.tag-links { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.tag-links a { text-align: center; padding: 9px; border-radius: 10px; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; transition: background .3s, color .3s; }
.tag-links a:hover { background: var(--accent); color: var(--bg); }

/* Marquee */
.marquee { margin-top: 48px; border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0; flex-shrink: 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--accent); margin-left: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section-head { margin-bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kicker { color: var(--accent); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; max-width: 760px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(6px);
}
.card h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: .78rem; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }

/* ---------- CV ---------- */
.cv-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.cv-side, .cv-main { display: flex; flex-direction: column; gap: 20px; }
.cv-profile { text-align: center; }
.cv-avatar {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 24px;
  background: conic-gradient(from 200deg, var(--accent), #ffb347, var(--accent-2), var(--accent-3), var(--accent));
  display: grid; place-items: center; font-weight: 800; font-size: 2.2rem; color: var(--bg);
  background-size: cover; background-position: center;
}
.cv-profile h3 { font-size: 1.4rem; }
.cv-contact { list-style: none; margin-top: 18px; text-align: left; display: grid; gap: 10px; }
.cv-contact li { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; border-top: 1px solid var(--line); padding-top: 10px; overflow-wrap: anywhere; }
.cv-contact .mono { color: var(--muted); }
.cv-contact a { color: var(--accent); }
.cv-summary { font-size: 1.02rem; }
.skill { margin-bottom: 14px; }
.skill-top { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.skill-top span:last-child { font-family: var(--mono); color: var(--muted); font-size: .75rem; }
.skill-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.4s var(--ease); }
.skill.soon .skill-bar i { background: repeating-linear-gradient(45deg, var(--accent-3) 0 6px, rgba(123, 140, 255, .5) 6px 12px); }
.timeline { list-style: none; position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.timeline > li { position: relative; padding-bottom: 22px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .when { font-family: var(--mono); font-size: .72rem; color: var(--accent-2); }
.timeline h5 { font-size: 1.02rem; margin: 2px 0; }
.timeline .where { color: var(--muted); font-size: .85rem; }
.timeline ul { margin: 8px 0 0 18px; color: #cfd0d4; font-size: .9rem; }
.timeline .stack { margin-top: 12px; gap: 6px; }
.timeline .stack span { font-family: var(--mono); font-size: .7rem; padding: 4px 10px; color: var(--accent-2); border-color: rgba(200, 245, 96, .25); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.step b { font-family: var(--mono); color: var(--accent); font-size: .78rem; }
.step h6 { font-size: .95rem; margin: 6px 0 4px; }
.step p { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.filter { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); font-size: .82rem; transition: all .3s; }
.filter:hover { border-color: var(--muted); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2);
  cursor: pointer; text-align: left; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .3s, opacity .4s, box-shadow .4s;
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
}
.project:hover { border-color: rgba(255, 255, 255, .25); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.project.hide { display: none; }
.view.active.entered .project.pop { animation: pop .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(20px); } }
.project-info { padding: 18px 20px 20px; }
.project-info .mono { color: var(--accent); font-size: .66rem; }
.project-info h3 { font-size: 1.08rem; margin: 4px 0 4px; }
.project-info p { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.project-more { margin-top: 12px; font-size: .8rem; font-weight: 600; display: inline-flex; gap: 6px; }
.project:hover .project-more span { transform: translateX(4px); }
.project-more span { transition: transform .3s var(--ease); }

/* Mockup browser (dibuat dengan CSS) */
.mock { aspect-ratio: 16 / 11; background: var(--m-bg); color: var(--m-fg); position: relative; overflow: hidden; font-family: var(--font); }
.mock-bar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(0, 0, 0, .18); }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.mock-bar em { margin-left: 8px; font-style: normal; font-size: 8px; opacity: .7; font-family: var(--mono); }
.mock-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 9px; font-weight: 700; }
.mock-nav span:last-child { display: flex; gap: 8px; font-weight: 400; opacity: .7; }
.mock-hero { padding: 6px 14px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; align-items: center; }
.mock-hero h4 { font-size: 15px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.mock-hero p { font-size: 7px; opacity: .7; margin: 6px 0 8px; line-height: 1.4; }
.mock-btn { display: inline-block; font-size: 7px; padding: 4px 8px; border-radius: 4px; background: var(--m-ac); color: var(--m-bg); font-weight: 700; }
.mock-art { aspect-ratio: 1; border-radius: 10px; background: var(--m-art); transition: transform .8s var(--ease); }
.project:hover .mock-art { transform: rotate(-6deg) scale(1.06); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 14px; }
.mock-row i { height: 26px; border-radius: 5px; background: currentColor; opacity: .1; }
/* Mockup dashboard (projek Arus) */
.project { position: relative; }
.real-badge {
  position: absolute; top: 32px; right: 10px; z-index: 2;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px; background: var(--accent-2); color: var(--bg); font-weight: 600;
}
.mock-dash .dash { display: grid; grid-template-columns: 22% 1fr; height: calc(100% - 22px); }
.dash aside { background: rgba(255, 255, 255, .05); padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; }
.dash aside b { font-size: 11px; color: var(--m-ac); margin-bottom: 4px; }
.dash aside i { height: 7px; border-radius: 3px; background: currentColor; opacity: .14; }
.dash aside i.on { opacity: 1; background: var(--m-ac); }
.dash-main { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dash-main h4 { font-size: 11px; font-weight: 700; }
.dash-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dash-kpi div { background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.dash-kpi small { font-size: 6.5px; opacity: .7; white-space: nowrap; }
.dash-kpi span { height: 8px; border-radius: 3px; width: 80%; background: currentColor; opacity: .85; }
.dash-kpi span.up { background: #3ee07a; }
.dash-kpi span.down { background: #ff6b6b; width: 60%; }
.dash-chart { flex: 1; display: flex; align-items: flex-end; gap: 5px; padding: 6px; border-radius: 6px; background: rgba(255, 255, 255, .04); min-height: 0; }
.dash-chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(var(--m-ac), rgba(255, 210, 63, .35)); transform-origin: bottom; transition: transform .6s var(--ease) var(--d); }
.project:hover .dash-chart i { transform: scaleY(.6); }
.project:hover .dash-chart i:nth-child(even) { transform: scaleY(1.08); }
.modal-mock .dash-main h4 { font-size: 16px; }
.modal-mock .dash-kpi small { font-size: 10px; }
.modal-mock .dash aside b { font-size: 15px; }
.modal-mock .mock { aspect-ratio: 16 / 9; }
.modal-mock .mock-hero h4 { font-size: clamp(18px, 4vw, 30px); }
.modal-mock .mock-hero p { font-size: 11px; }
.modal-mock .mock-btn { font-size: 10px; padding: 6px 12px; }
.modal-mock .mock-nav { font-size: 12px; padding: 14px 20px; }
.modal-mock .mock-row i { height: 48px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform: scale(.4); opacity: 0;
  transition: transform .55s var(--ease), opacity .35s;
}
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); transition: rotate .3s; }
.modal-close:hover { rotate: 90deg; }
.modal-body { padding: 24px 28px 28px; }
.modal-body h3 { font-size: 1.6rem; letter-spacing: -.02em; margin: 4px 0 8px; }
.modal-tags { margin: 16px 0; }
.modal-points { margin-left: 18px; display: grid; gap: 6px; font-size: .92rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; transition: transform .4s var(--ease), border-color .3s; }
.service::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 50%); translate: -50% -50%;
  background: radial-gradient(circle, var(--glow, rgba(255, 107, 61, .25)), transparent 65%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .2); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ic, var(--accent)); color: var(--bg); margin-bottom: 20px; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.service p { color: var(--muted); font-size: .9rem; margin: 8px 0 16px; }
.service ul { list-style: none; display: grid; gap: 6px; font-size: .86rem; margin-bottom: 20px; }
.service li::before { content: "→ "; color: var(--accent); }
.badge { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; }
.badge.live { background: rgba(200, 245, 96, .14); color: var(--accent-2); }
.badge.soon { background: rgba(123, 140, 255, .14); color: var(--accent-3); }
.service.is-soon { border-style: dashed; }
.service .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Contact ---------- */
.contact-title { font-size: clamp(2.2rem, 6vw, 4.4rem) !important; max-width: 900px !important; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 40px;
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  transition: color .45s var(--ease), border-color .3s;
}
.contact::before {
  content: ""; position: absolute; inset: 0; background: var(--c, var(--accent));
  transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1;
}
.contact { isolation: isolate; }
.contact:hover { color: var(--bg); border-color: transparent; }
.contact:hover::before { transform: none; }
.contact-top { display: flex; justify-content: space-between; align-items: center; }
.contact-top svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-arrow { font-size: 1.4rem; transition: transform .45s var(--ease); }
.contact:hover .contact-arrow { transform: rotate(-45deg); }
.contact b { font-size: 1.3rem; display: block; }
.contact small { font-size: .8rem; opacity: .7; overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
/* Laptop dengan layar pendek: kecilkan kartu supaya Home muat satu layar */
@media (min-width: 961px) and (max-height: 860px) {
  .lanyard { height: 70px; }
  .tag { width: 260px; height: 380px; }
  .tag-photo { width: 104px; height: 104px; margin: 16px 0 12px; }
  .qr { width: 150px; height: 150px; margin: 20px 0 16px; }
  .hero-stats { margin-top: 28px; }
  .marquee { margin-top: 28px; }
}

@media (max-width: 960px) {
  .home-wrap { grid-template-columns: 1fr; gap: 56px; padding-top: 10px; }
  .tag-scene { order: -1; }
  .lanyard { height: 70px; }
  .cv-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  #home { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .view { padding-top: 76px; }
  .projects { grid-template-columns: 1fr; }
  .dock { bottom: 12px; width: calc(100% - 24px); justify-content: space-between; }
  .dock-item { padding: 8px 6px; flex: 1; }
  .hero-stats { gap: 20px; }
  .status { display: none; }
  .tag { width: 250px; height: 370px; }
  .tag-photo { width: 96px; height: 96px; margin: 16px 0 12px; font-size: 2.6rem; }
  .qr { width: 140px; height: 140px; margin: 20px 0 14px; }
  .modal-body { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Print: hanya CV ---------- */
@media print {
  body { overflow: visible; background: #fff; color: #111; }
  .bg-grid, .bg-glow, .topbar, .dock, .wipe, .modal, .view:not(#cv), #printCv { display: none !important; }
  #stage, .view#cv { position: static; visibility: visible; opacity: 1; overflow: visible; padding: 0; }
  [data-anim] { opacity: 1 !important; animation: none !important; }
  .card { background: none; border: 1px solid #ddd; break-inside: avoid; backdrop-filter: none; }
  .muted, .card h4, .timeline .where, .step p, .skill-top span:last-child { color: #555; }
  .timeline ul { color: #222; }
  .cv-grid { grid-template-columns: 240px 1fr; }
  .section-head h2 { font-size: 1.6rem; }
  .chips span, .step { border-color: #ccc; }
}
