/* =========================================================
   Vebri Patria — Portfolio
   1. Tokens & reset
   2. Base & utilities
   3. Chrome (preloader, cursor, noise, progress)
   4. Navigation
   5. Hero
   6. Sections & about
   7. Timeline
   8. Work
   9. Gallery
   10. Contact & footer
   11. Tabbar, modal, toast
   12. Responsive & motion
   ========================================================= */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --bg: #05070f;
  --bg-2: #080c18;
  --bg-3: #0b1020;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --ink: #eef1ff;
  --muted: #99a1bf;
  --muted-2: #6f7795;
  --accent: #2c67ed;
  --accent-2: #5b93ff;
  --teal: #12b981;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font-sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Atribut hidden harus selalu menang atas display dari kelas */
[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }

/* Teks untuk pembaca layar saja */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05070f; }
::-webkit-scrollbar-thumb {
  background: #1e2540;
  border-radius: 99px;
  border: 2px solid #05070f;
}
::-webkit-scrollbar-thumb:hover { background: #2f3a61; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ink);
  color: #05070f;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---------- 2. Base & utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(88px, 13vh, 150px);
}

section[id] { scroll-margin-top: 92px; }

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h2 em {
  font-style: normal;
  color: var(--accent-2);
}
.h2--light { color: #fff; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.label span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 10px;
  color: var(--ink);
  letter-spacing: 0;
}
.label--light { color: rgba(255, 255, 255, 0.62); }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
  color: #d5d9ee;
  font-weight: 300;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.badge--live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(18, 185, 129, 0.7);
  animation: pulseDot 2.4s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(18, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(18, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 185, 129, 0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s, border-color 0.3s;
  will-change: transform;
}
.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(44, 103, 237, 0.9);
}
.btn--primary:hover {
  background: #3573ff;
  box-shadow: 0 16px 40px -14px rgba(44, 103, 237, 1);
  transform: translateY(-2px);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}
.btn--block { width: 100%; }

/* ---------- 3. Chrome ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.preloader__mark {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.preloader__mark::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}
.preloader__bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 99px;
}
.preloader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent-2);
  animation: loadSlide 1.1s var(--ease-soft) infinite;
}
@keyframes loadSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.preloader__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.cursor { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor__dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--ink);
}
.cursor__ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease),
    background 0.3s, border-color 0.3s;
}
.cursor.is-hover .cursor__ring {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  background: rgba(44, 103, 237, 0.14);
  border-color: rgba(91, 147, 255, 0.6);
}
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(0.85); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #9dc0ff);
}

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  transition: top 0.4s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: 1080px;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(6, 9, 19, 0.86);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 1);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #16389b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.nav__name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.nav__link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
  transform: translateX(-50%);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #06080f;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.nav__cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav__cta:hover { background: #fff; transform: translateY(-1px); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  height: 230vh;
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 110%, #0b1a3a 0%, transparent 60%),
    radial-gradient(90% 60% at 50% -10%, #0d1330 0%, transparent 55%),
    linear-gradient(180deg, #04060e 0%, #060a16 45%, #070c1c 100%);
}

.hero__stars {
  position: absolute;
  inset: -10% 0 auto;
  height: 70%;
  opacity: 0.75;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 26% 58%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.6px 1.6px at 41% 14%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.1px 1.1px at 55% 44%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 68% 20%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 79% 52%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.7px 1.7px at 88% 28%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.1px 1.1px at 34% 38%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.3px 1.3px at 61% 66%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 17% 74%, rgba(255, 255, 255, 0.45), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 0.85; }
}

.hero__aurora {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(1100px, 120vw);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(44, 103, 237, 0.32), transparent 70%),
    radial-gradient(closest-side, rgba(18, 185, 129, 0.14), transparent 65%);
  filter: blur(40px);
  opacity: 0.9;
  animation: auroraDrift 14s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes auroraDrift {
  from { transform: translate(-52%, -52%) scale(1); }
  to { transform: translate(-48%, -46%) scale(1.08); }
}

.hero__grid {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -6%;
  height: 58%;
  background-image:
    linear-gradient(rgba(91, 147, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 147, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 5%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 5%, transparent 78%);
  opacity: 0.55;
}

.hero__ridge {
  position: absolute;
  left: -5%;
  width: 110%;
  bottom: -1px;
  pointer-events: none;
  will-change: transform;
}
.hero__ridge--back {
  height: 46%;
  fill: #0a1226;
  opacity: 0.9;
}
.hero__ridge--front {
  height: 30%;
  fill: #060a15;
}

.hero__content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1040px;
  padding-inline: var(--gutter);
  text-align: center;
  will-change: transform, opacity;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(18px, 3vh, 30px);
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c6cbe4;
}
.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 185, 129, 0.16);
}

.hero__title {
  font-size: clamp(3.4rem, 13.5vw, 11rem);
  line-height: 0.86;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #fff;
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(60%) rotate(2deg);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
  background: linear-gradient(180deg, #ffffff 25%, #a9b6e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.is-loaded .hero__line {
  opacity: 1;
  transform: none;
}
.hero__line:nth-child(2) { --d: 120ms; }

.hero__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 420px);
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(20px, 4vh, 38px);
  text-align: left;
}
.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dfe4ff;
  white-space: nowrap;
}
.hero__role span { color: #dfe4ff; }
.hero__role i {
  font-style: normal;
  color: var(--accent-2);
  margin: 0 0.45em;
}
.hero__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 1px solid var(--border-strong);
  padding-left: clamp(16px, 2vw, 26px);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(22px, 4vh, 38px);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__scroll i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--accent-2), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- 6. About ---------- */
.section__head { max-width: 760px; }
.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
}
.section__note {
  max-width: 340px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  padding-bottom: 8px;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 80% 0%, rgba(44, 103, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-top: clamp(40px, 6vh, 70px);
}

.about__text { display: grid; gap: 20px; }
.about__text .reveal:nth-child(2) { transition-delay: 90ms; }
.about__text > p:not(.lead) {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 52ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}
.stat {
  display: grid;
  gap: 4px;
  padding: 18px 14px;
  background: #070b17;
}
.stat strong {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
}
.stat span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Profile card */
.about__card {
  position: relative;
  perspective: 900px;
}
.about__card-inner {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  padding: 12px;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.4s;
  will-change: transform;
}
.about__card:hover .about__card-inner { border-color: rgba(255, 255, 255, 0.22); }

.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 20%, rgba(44, 103, 237, 0.35), transparent 70%),
    linear-gradient(170deg, #101a33, #070a14 70%);
}
.about__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(closest-side, black, transparent);
  -webkit-mask-image: radial-gradient(closest-side, black, transparent);
}
.about__initials {
  position: relative;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 18px 50px rgba(44, 103, 237, 0.5);
  transform: translateZ(40px);
}
.about__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.about__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(91, 147, 255, 0.22), transparent 60%);
  transform: translateY(-100%);
  animation: scan 6s var(--ease-soft) infinite;
}
@keyframes scan {
  0%, 60% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.about__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 4px;
}
.about__card-name { font-size: 14px; font-weight: 500; }
.about__card-role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 2px;
}

/* ---------- 7. Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(56px, 9vh, 96px);
}
.timeline__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline__title svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline__list { display: grid; gap: 10px; }

.tl-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  transition: background 0.35s, border-color 0.35s, transform 0.45s var(--ease);
  overflow: hidden;
}
.tl-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-2), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.tl-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}
.tl-card:hover::after { opacity: 1; }

.tl-card__index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  padding-top: 4px;
  letter-spacing: 0.1em;
}
.tl-card__body { display: grid; gap: 3px; }
.tl-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.tl-card__title { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.tl-card__year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tl-card__place { font-size: 12.5px; color: var(--muted); }
.tl-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tl-card__tags span {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 8. Work ---------- */
.work { background: linear-gradient(180deg, #05070f 0%, #060a15 100%); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(28px, 4vh, 44px) 0 clamp(26px, 4vh, 40px);
}
.filter {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.filter:hover { color: var(--ink); border-color: var(--border-strong); }
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #06080f;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

.project {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #080c17;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.4s, transform 0.6s var(--ease), opacity 0.4s;
  animation: cardIn 0.6s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.project:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-4px); }
.project.is-hidden { display: none; }

.project__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, hsl(var(--h) 80% 55% / 0.55), transparent 60%),
    radial-gradient(100% 80% at 90% 100%, hsl(calc(var(--h) + 40) 75% 50% / 0.35), transparent 60%),
    linear-gradient(160deg, #0d1428, #070a13);
}
.project__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.6;
  transition: opacity 0.5s;
}
.project__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project:hover .project__cover img { transform: scale(1.05); }
.project:hover .project__cover::before { opacity: 0.3; }

.project__glyph {
  position: absolute;
  left: 22px;
  bottom: 16px;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
  transition: color 0.4s, transform 0.7s var(--ease);
}
.project:hover .project__glyph {
  color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
}

.project__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition: opacity 0.4s, transform 0.5s var(--ease), background 0.3s;
}
.project:hover .project__arrow { opacity: 1; transform: none; }
.project__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 20px;
}
.project__title {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.project__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b83a1;
}

/* Tombol transparan penutup kartu: satu-satunya elemen yang bisa difokus */
.project__open {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.project__open:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent-2);
}
.project__year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

/* ---------- 8b. TikTok ---------- */
.tiktok {
  background:
    radial-gradient(70% 55% at 15% 0%, rgba(44, 103, 237, 0.1), transparent 65%),
    #05070f;
  border-top: 1px solid var(--border);
}
.tiktok__head {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.tiktok__all {
  height: 46px;
  padding: 0 22px;
  font-size: 13px;
}
.tiktok__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(30px, 5vh, 48px);
}

.tiktok-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #080c17;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.tiktok-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-5px);
}

.tiktok-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, hsl(var(--h) 80% 55% / 0.55), transparent 60%),
    radial-gradient(100% 80% at 90% 100%, hsl(calc(var(--h) + 40) 75% 50% / 0.35), transparent 60%),
    linear-gradient(160deg, #0d1428, #070a13);
}
.tiktok-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.tiktok-card:hover .tiktok-card__cover img { transform: scale(1.05); }
.tiktok-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 6, 13, 0.72));
  pointer-events: none;
}

.tiktok-card__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.16);
}

.tiktok-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(4, 6, 13, 0.35);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.tiktok-card:hover .tiktok-card__play {
  background: rgba(44, 103, 237, 0.8);
  border-color: transparent;
  transform: translate(-50%, -50%) scale(1.08);
}
.tiktok-card__play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: currentColor;
  stroke: none;
}

.tiktok-card__body {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
}
.tiktok-card__caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.tiktok-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tiktok-card__meta svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  transition: transform 0.4s var(--ease);
}
.tiktok-card:hover .tiktok-card__meta svg { transform: translate(2px, -2px); }

@media (min-width: 901px) {
  .tiktok__head { justify-items: end; text-align: right; }
}
@media (max-width: 900px) {
  .tiktok__head { justify-items: start; }
}
@media (max-width: 640px) {
  .tiktok__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tiktok-card__play { width: 44px; height: 44px; }
  .tiktok-card__body { padding: 12px; }
  .tiktok-card__caption { font-size: 12px; }
}

/* ---------- 9. Gallery ---------- */
.gallery {
  position: relative;
  background: #04060d;
  border-block: 1px solid var(--border);
}
.gallery__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(44, 103, 237, 0.14), transparent 70%);
  pointer-events: none;
}

.gallery__head {
  position: absolute;
  top: clamp(70px, 10vh, 110px);
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}

.gallery__track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  padding-inline: var(--gutter);
  padding-top: 60px;
  will-change: transform;
}

.cert {
  position: relative;
  flex: 0 0 clamp(280px, 26vw, 360px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 20% 0%, hsl(var(--h) 75% 55% / 0.4), transparent 62%),
    linear-gradient(170deg, #0c1222, #06080f 75%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.cert::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(200deg, black, transparent 70%);
  -webkit-mask-image: linear-gradient(200deg, black, transparent 70%);
  opacity: 0.7;
}
.cert:hover { border-color: rgba(255, 255, 255, 0.24); transform: translateY(-6px); }

.cert__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cert__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}
.cert__kind {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.cert__glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
}
.cert__body { position: relative; display: grid; gap: 6px; }
.cert__title {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}
.cert__issuer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}
.cert__num {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
}

.gallery__hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 46px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.gallery__hint i {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

/* ---------- 10. Contact ---------- */
.contact { overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 55vw;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(44, 103, 237, 0.16), transparent 70%);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact__left .lead { margin-top: 22px; max-width: 44ch; }

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 4vh, 40px);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-strong);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  transition: border-color 0.3s, color 0.3s;
}
.contact__mail svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.contact__mail:hover { color: var(--accent-2); border-color: var(--accent-2); }
.contact__mail:hover svg { transform: translate(3px, -3px); }

.socials {
  display: grid;
  gap: 2px;
  margin-top: clamp(32px, 5vh, 48px);
  border-top: 1px solid var(--border);
}
.social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
  transition: padding 0.35s var(--ease), color 0.3s;
}
.social:hover { padding-left: 12px; color: var(--accent-2); }
.social__label {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.social__name { font-size: 14px; }
.social__handle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.social svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.social:hover svg { transform: translate(2px, -2px); opacity: 1; }

/* Form */
.form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(6px);
}
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #5d6584; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(91, 147, 255, 0.7);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(44, 103, 237, 0.12);
}
.field.has-error input,
.field.has-error textarea { border-color: #f0567a; }
.field__error {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #f0567a;
  min-height: 0;
}
.form__hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted-2);
}

/* Honeypot anti-spam: tak terlihat oleh manusia, tapi diisi bot */
.field--hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(64px, 10vh, 110px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.footer p { font-size: 11.5px; color: var(--muted-2); }
.footer__right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.footer__top:hover { color: var(--ink); }
.footer__top svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.footer__top:hover svg { transform: translateY(-3px); }

/* ---------- 11. Tabbar, modal, toast ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 95;
  display: none;
  gap: 2px;
  padding: 6px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 1);
  width: min(380px, calc(100vw - 28px));
}
.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 14px;
  color: var(--muted-2);
  transition: color 0.3s, background 0.3s;
}
.tabbar__item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar__item span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tabbar__item.is-active { color: #fff; background: var(--accent); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 11, 0.78);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s var(--ease-soft) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(86vh, 800px);
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #080c17;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  animation: modalIn 0.5s var(--ease) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.modal__close:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }
.modal__close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.modal__cover {
  position: relative;
  height: clamp(170px, 28vh, 240px);
  background:
    radial-gradient(120% 100% at 20% 0%, hsl(var(--h, 220) 80% 55% / 0.55), transparent 60%),
    linear-gradient(160deg, #0e162c, #070a13);
  overflow: hidden;
}
.modal__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent);
  -webkit-mask-image: linear-gradient(180deg, black, transparent);
}
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.modal__cover .project__glyph { font-size: 6rem; bottom: 10px; }

.modal__body { padding: 24px clamp(20px, 4vw, 32px) 30px; }
.modal__meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.modal__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.modal__desc { font-size: 14px; line-height: 1.75; color: var(--muted); }
.modal__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.modal__stack li {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 160;
  padding: 12px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: var(--ink);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 12. Responsive & motion ---------- */
@media (max-width: 1080px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__card { max-width: 420px; }
  .hero__meta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero__desc { border-left: 0; padding-left: 0; max-width: 460px; text-align: center; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .tabbar { display: flex; }
  .section { padding-bottom: 130px; }
  .contact { padding-bottom: 130px; }
  .footer { padding-bottom: 70px; }
  .timeline { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .section__head--split { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section__note { max-width: 46ch; }
  .gallery__head { top: clamp(56px, 8vh, 80px); }
  .cert { flex-basis: 270px; }

  /* Di layar kecil, galeri jadi scroll horizontal biasa (tanpa pin) */
  .gallery { height: auto !important; }
  .gallery__pin {
    position: relative;
    height: auto;
    display: block;
    overflow: visible;
    padding-block: clamp(72px, 12vh, 110px) 32px;
  }
  .gallery__head { position: static; margin-bottom: 26px; }
  .gallery__track {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .cert { scroll-snap-align: start; }
  .gallery__hint { display: none; }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav { top: 10px; }
  .nav__name { display: none; }
  .nav__cta span { display: none; }
  .nav__cta { width: 38px; padding: 0; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(3rem, 17vw, 5rem); }
  .hero__desc { display: none; }
  .hero__meta { margin-top: 18px; }
  .gallery__head h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .about__card { max-width: 100%; }
  .gallery__hint { display: none; }
  .cursor { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
  .hero { height: 185vh; }
}

@media (hover: none) {
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__line { opacity: 1; transform: none; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: 100svh; }
  .gallery__pin { position: relative; height: auto; padding-block: 90px; }
  .gallery__track { overflow-x: auto; padding-bottom: 20px; }
}
