/* ---------- Tokens ---------- */
:root {
  --bg: #0a0b0d;
  --bg-elev: #101114;
  --surface: #15161a;
  --surface-2: #1b1d22;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f5f6;
  --text-2: #b9bec7;
  --muted: #858a94;
  --accent: #34d399;
  --accent-ink: #052e20;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; outline: 1px solid rgba(255, 255, 255, 0.08); outline-offset: -1px; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* Soft background light */
.bg-glow {
  position: fixed;
  inset: -20vh -10vw auto auto;
  width: 70vw;
  height: 70vh;
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.logo { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; margin-right: auto; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-2); transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5ee0ad; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-small:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--accent); padding-right: 0.06em; }
.lede { font-size: 1.1rem; color: var(--text-2); max-width: 32rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Ikon sosial di hero ---------- */
.hero-socials { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.soc:hover { transform: translateY(-2px); color: var(--text); }
.soc svg { flex-shrink: 0; }

.soc--gh {
  width: auto;
  height: 52px;
  padding: 0 20px 0 16px;
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0b0d;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.soc--gh:hover { background: #e9ebee; border-color: #e9ebee; color: #0a0b0d; }

.soc--wa:hover { color: #25d366; border-color: rgba(37, 211, 102, 0.55); background: rgba(37, 211, 102, 0.1); }
.soc--li:hover { color: #0a66c2; border-color: rgba(10, 102, 194, 0.6); background: rgba(10, 102, 194, 0.12); }
.soc--ig:hover { color: #e1306c; border-color: rgba(225, 48, 108, 0.55); background: rgba(225, 48, 108, 0.12); }
.soc--dc:hover { color: var(--accent); border-color: rgba(52, 211, 153, 0.5); background: var(--accent-soft); }

.hero-media { position: relative; display: flex; justify-content: center; }
.photo-frame {
  width: min(330px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  transform: rotate(2deg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-badge {
  position: absolute;
  left: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(21, 22, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.pb-num { font-family: "Outfit", sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.pb-lbl { font-size: 0.78rem; color: var(--text-2); line-height: 1.35; }
.pb-role { font-family: "Outfit", sans-serif; font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.4; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-family: "Outfit", sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 0.85rem; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 44px; width: max-content; }
.marquee-track span { font-family: "JetBrains Mono", monospace; font-size: 0.88rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-elev); }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1rem; max-width: 60ch; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.text-link { font-size: 0.92rem; font-weight: 600; color: var(--accent); transition: color 0.2s var(--ease); }
.text-link:hover { color: #6ee7b7; }

/* ---------- Tentang ---------- */
.about { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 48px; align-items: start; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 18px; }
.about-lead { font-size: 1.2rem; color: var(--text); margin-bottom: 14px; max-width: 60ch; }
.about-copy p:not(.about-lead) { color: var(--text-2); max-width: 62ch; }
.about-side { display: flex; flex-direction: column; gap: 14px; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.about-label { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.about-card p { display: flex; align-items: center; gap: 9px; margin-top: 4px; font-size: 0.95rem; }

/* ---------- Layanan ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.service:hover { border-color: rgba(52, 211, 153, 0.35); transform: translateY(-3px); }
.service-num { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--accent); }
.service h3 { font-size: 1.08rem; margin: 12px 0 8px; }
.service p { color: var(--text-2); font-size: 0.9rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.tl-item { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -30px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border-strong); }
.tl-period { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--muted); padding-top: 3px; }
.tl-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.tl-org { display: inline-block; font-size: 0.85rem; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.tl-body p { color: var(--text-2); font-size: 0.96rem; max-width: 60ch; }

/* ---------- Proyek: unggulan ---------- */
.featured { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; margin-bottom: 56px; }
.feat {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feat:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feat-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--border); }
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
.feat:hover .feat-thumb img { transform: scale(1.04); }
.feat-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feat-body h3 { font-size: 1.6rem; }
.feat-body p { color: var(--text-2); font-size: 0.98rem; }
.feat-body .chips { margin-top: auto; padding-top: 6px; }

.feat--game {
  position: relative;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(239, 68, 68, 0.18), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(251, 191, 36, 0.10), transparent 65%),
    #120d0d;
  border-color: rgba(239, 68, 68, 0.2);
  justify-content: flex-end;
}
.feat--game:hover { border-color: rgba(239, 68, 68, 0.42); }
.feat--game .feat-body { padding: 30px; }
.feat--game .card-kicker { color: #f0a3a3; }
.game-score {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.3);
  background: rgba(253, 230, 138, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Proyek: kelompok kategori ---------- */
.pgroup { margin-bottom: 52px; }
.pgroup:last-of-type { margin-bottom: 0; }
.pgroup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-strong);
}
.pgroup-head h3 { font-size: 1.2rem; }
.pgroup-head span { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--muted); }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pcard:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.pcard-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--border); }
.pcard-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
.pcard:hover .pcard-thumb img { transform: scale(1.05); }
.pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard-body h3 { font-size: 1.05rem; }
.pcard-body p { color: var(--text-2); font-size: 0.88rem; }
.pcard-body .chips { margin-top: auto; padding-top: 4px; }
.pcard--text {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(52, 211, 153, 0.10), transparent 62%),
    var(--surface);
}
.pcard--text .pcard-body { padding: 24px; }

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(52, 211, 153, 0.32);
  padding: 3px 9px;
  border-radius: 999px;
}
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.card-kicker { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--muted); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips span { font-size: 0.72rem; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }

/* ---------- Daftar repositori ---------- */
.repo-list { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.repo-list-title { font-size: 1.1rem; margin-bottom: 26px; color: var(--text-2); }
.repo-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.repo-list-title { grid-column: 1 / -1; margin-bottom: 0; }
.repo-group h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.repo-group ul { display: flex; flex-direction: column; }
.repo-group li { border-bottom: 1px solid var(--border); }
.repo-group li:last-child { border-bottom: none; }
.repo-group a { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; transition: color 0.18s var(--ease); }
.repo-group a:hover { color: var(--accent); }
.rl-name { font-size: 0.9rem; font-weight: 500; }
.rl-tech { font-size: 0.74rem; color: var(--muted); }

/* ---------- Skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-col { border-top: 1px solid var(--border-strong); padding-top: 20px; }
.skill-col h3 { font-size: 1rem; color: var(--accent); margin-bottom: 14px; letter-spacing: 0; }
.skill-col ul li { font-size: 0.92rem; color: var(--text-2); padding: 5px 0; }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.cert { display: block; }
.cert-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface); margin-bottom: 12px; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.cert:hover .cert-thumb { border-color: var(--border-strong); }
.cert:hover .cert-thumb img { transform: scale(1.05); }
.cert-title { font-size: 0.86rem; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cert-issuer { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ---------- CTA / Contact ---------- */
.cta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(52, 211, 153, 0.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 48px;
}
.cta-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.cta-copy > p { color: var(--text-2); margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.wa-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-bottom: 26px;
  padding: 14px 22px 14px 16px;
  border-radius: 16px;
  background: #25d366;
  color: #062b14;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.wa-cta:hover { background: #3be07a; transform: translateY(-2px); }
.wa-cta:active { transform: scale(0.98); }
.wa-ic { width: 26px; height: 26px; flex-shrink: 0; color: #062b14; }
.wa-cta strong { display: block; font-family: "Outfit", sans-serif; font-size: 1.05rem; }
.wa-cta small { display: block; font-size: 0.8rem; opacity: 0.85; }
.contact-item { display: flex; flex-direction: column; gap: 2px; font-size: 1rem; color: var(--text); transition: color 0.2s var(--ease); width: fit-content; }
.contact-item:hover { color: var(--accent); }
.contact-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f87171; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 0.86rem; min-height: 1em; }
.form-note.ok { color: var(--accent); }
.form-note.err { color: #f87171; }

/* ---------- Tombol WhatsApp melayang ---------- */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #062b14;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s var(--ease);
}
.wa-fab.show { opacity: 1; visibility: visible; transform: none; }
.wa-fab:hover { background: #3be07a; }
.wa-fab:active { transform: scale(0.95); }

.wa-fab-tip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.wa-fab:hover .wa-fab-tip, .wa-fab.hint .wa-fab-tip { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .wa-fab.show::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: waPulse 2.6s ease-out infinite;
  }
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 700px) {
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-fab-tip { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: var(--text-2); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { justify-content: flex-start; }
  .photo-frame { width: 240px; }
  .photo-badge { left: 180px; bottom: 16px; }
  .hero-socials { gap: 9px; }
  .soc--gh { height: 48px; padding: 0 16px 0 14px; font-size: 0.95rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .feat--game { min-height: 260px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .repo-list { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-period { padding-top: 0; }
}

@media (max-width: 700px) {
  .header-cta { display: none; }
  .hero { padding-top: 36px; }
  .hero-inner { gap: 32px; padding-bottom: 44px; }
  .hero-media { order: -1; justify-content: flex-start; }
  .photo-frame { width: 100%; max-width: 100%; aspect-ratio: 16 / 11; border-radius: 20px; transform: none; }
  .photo-frame img { object-position: center 22%; }
  .photo-badge {
    position: static;
    width: 100%;
    margin-top: 12px;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: none;
  }
  .pb-role { text-align: center; }
  .pb-role br { content: ""; display: inline; white-space: pre; }
  .pb-role br::after { content: " "; }
  .status { margin-bottom: 18px; font-size: 0.8rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .lede { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 calc(50% - 5px); padding: 0.8rem 1rem; }
  .hero-socials { margin-top: 20px; gap: 8px; }
  .soc { width: 42px; height: 42px; }
  .soc--gh { width: 100%; height: 48px; justify-content: center; order: -1; margin-bottom: 4px; }
  .stats { gap: 18px 16px; padding: 26px 0; }
  .stat .num { font-size: 1.6rem; }
  .stat .lbl { font-size: 0.78rem; }
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px;
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 44px; }
  .photo-frame { width: 200px; }
  .photo-badge { left: 140px; }
  .pgrid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .feat-body h3 { font-size: 1.35rem; }
  .feat-body, .feat--game .feat-body { padding: 20px; }
  .skill-grid { grid-template-columns: 1fr; }
  .repo-list { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 68px 0; }
  .cta-panel { padding: 24px; border-radius: 22px; }
}
