/* ==========================================================================
   baserbidigital - arctic teal
   Shared design tokens and components for the link-in-bio and its landing
   pages. Palette and motion are ported from the original design export.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0A1A1E;
  --stage-1: #04141A;
  --stage-2: #0A3238;
  --stage-3: #06232A;
  --card-1: #0C3D43;
  --card-2: #08292E;
  --card-3: #10565C;

  /* lines */
  --line: rgba(90, 200, 190, .2);
  --line-soft: rgba(120, 220, 210, .14);

  /* accents */
  --accent: #46E0D0;
  --accent-2: #34D6C6;
  --accent-3: #1FA89B;
  --accent-deep: #0E7C72;
  --green: #5FD08C;

  /* type on dark */
  --ink: #E4F5F2;
  --ink-2: #CDE6E2;
  --muted: #93C2BE;
  --muted-2: #7FB0AC;
  --muted-3: #5E8783;

  /* type on white */
  --on-white: #08312E;
  --on-white-2: #0F3B40;
  --on-white-muted: #5C7A77;

  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --col: 390px;
  --radius-lg: 30px;
  --radius: 18px;
}

* { box-sizing: border-box; }

/* Atribut hidden harus selalu menang. Aturan display milik sebuah komponen
   punya specificity lebih tinggi daripada [hidden] bawaan peramban, jadi tanpa
   baris ini elemen ber-hidden tetap tampil. Sudah dua kali kejadian di berkas
   ini: panel pratinjau yang menelan semua klik, dan tombol "lihat lebih
   banyak" yang muncul padahal tidak ada yang bisa diungkap. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { -webkit-tap-highlight-color: transparent; }

img { max-width: 100%; }

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

.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;
}

/* ------------------------------------------------------------------ motion */

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(8deg); }
}
@keyframes floaty2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(16px) translateX(-10px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes popin {
  from { transform: translateY(16px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { opacity: .45; }
  50%      { opacity: .78; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: .6; }
}
@keyframes shine {
  0%        { transform: translateX(-160%) skewX(-18deg); }
  55%, 100% { transform: translateX(460%) skewX(-18deg); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

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

/* ------------------------------------------------------------------- stage */

.stage {
  position: relative;
  width: min(var(--col), 100%);
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(160deg, var(--stage-1), var(--stage-2) 55%, var(--stage-3));
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
  box-shadow: 0 40px 80px -28px rgba(4, 20, 26, .8), 0 0 0 1px rgba(90, 200, 190, .08);
}

@media (min-width: 430px) {
  body { padding: 40px 20px 56px; }
  .stage { min-height: 0; border-radius: 46px; }
}

.stage__glow,
.stage__glow--2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.stage__glow {
  top: -40px; right: -34px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, #119488, transparent 70%);
  opacity: .5;
  filter: blur(10px);
  animation: floaty 12s ease-in-out infinite;
}
.stage__glow--2 {
  bottom: 200px; left: -44px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, #0C5E58, transparent 70%);
  opacity: .45;
  filter: blur(12px);
  animation: floaty2 14s ease-in-out infinite;
}

.stage__inner {
  position: relative;
  z-index: 2;
  padding: 34px 22px;
}

/* ------------------------------------------------------------ identity card */

.identity {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--card-1), var(--card-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 22px 44px -18px rgba(0, 0, 0, .6);
  text-align: center;
}

.identity::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: .6;
  pointer-events: none;
}

.identity__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.socials {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 16px;
  background: rgba(52, 214, 198, .12);
  border: 1px solid rgba(52, 214, 198, .28);
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6);
  transition: transform .16s, background .16s, box-shadow .16s;
}
.social:hover,
.social:focus-visible {
  transform: translateY(-4px);
  background: rgba(52, 214, 198, .22);
  box-shadow: 0 12px 24px -10px rgba(52, 214, 198, .5);
}

.identity__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -.8px;
  color: var(--ink);
}

.identity__tagline {
  margin: 7px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #A8D4D0;
}

.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(95, 208, 140, .22);
  animation: dotPulse 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------- photo card */

.photo {
  position: relative;
  margin: 30px 0 12px;
  perspective: 1400px;
}

.photo__group {
  position: relative;
  height: 384px;
  transform-origin: 50% 100%;
  transition: transform .22s ease-out;
  will-change: transform;
}

.photo__tilt {
  position: absolute;
  left: 30px; right: 30px; top: 64px; bottom: 18px;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(168deg, #0B454A, #082E33);
  box-shadow: 0 18px 38px -18px rgba(0, 0, 0, .55);
  transform: rotate(-5deg);
  transform-origin: 50% 100%;
  transition: transform .18s ease-out;
}

.photo__frame {
  position: absolute;
  left: 12px; right: 12px; top: 74px; bottom: 4px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 220, 210, .22);
  background: linear-gradient(168deg, var(--card-3) 0%, #0C3F46 48%, #0E5054 100%);
  box-shadow: 0 24px 44px -16px rgba(0, 0, 0, .55);
  transition: box-shadow .22s ease-out;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .55;
  pointer-events: none;
}

.photo__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(70, 224, 208, .3), transparent 58%),
    linear-gradient(to top, rgba(8, 30, 34, .7), transparent 30%);
  pointer-events: none;
}

.photo__halo {
  position: absolute;
  top: -4px; left: 50%;
  z-index: 1;
  width: 262px; height: 262px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 190, 175, .42), transparent 62%);
  filter: blur(8px);
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.photo__cutout {
  position: absolute;
  left: 50%; bottom: 20px;
  z-index: 2;
  width: 286px;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .42));
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 80%, transparent 96%);
}

.chip {
  position: absolute;
  z-index: 4;
  background: #fff;
  border-radius: 18px;
  padding: 13px 15px;
  box-shadow: 0 20px 38px -14px rgba(0, 0, 0, .5);
  animation: cardFloat 5s ease-in-out infinite;
}

.chip--money { left: -2px; bottom: 26px; }
.chip--ai {
  right: -2px; top: 172px;
  border-radius: 15px;
  padding: 10px 13px;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .45);
  animation-delay: 1.3s;
}

.chip__row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chip__amount {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--accent-deep);
}

.chip__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #E3F7EF;
  color: #1E9E73;
  font-size: 11px;
  font-weight: 700;
}

.chip__note {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--on-white-muted);
}

.chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: #E3F7EF;
  color: #1E9E73;
}

.chip__label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8A9C9A;
}

.chip__title {
  margin-top: 3px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: var(--on-white-2);
}

/* -------------------------------------------------------------------- story */

.story {
  margin: 26px 4px 22px;
  text-align: center;
  animation: popin .6s cubic-bezier(.2, .8, .3, 1.4) both .1s;
}

.story p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.62;
  color: var(--ink-2);
}

.story p + p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
}

.story b {
  color: var(--accent);
  font-weight: 700;
}

/* --------------------------------------------------------------- link list */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links > li {
  list-style: none;
  animation: popin .5s cubic-bezier(.2, .8, .3, 1.4) both;
}
.links > li:nth-child(1) { animation-delay: .12s; }
.links > li:nth-child(2) { animation-delay: .18s; }
.links > li:nth-child(3) { animation-delay: .24s; }

.links { margin: 0; padding: 0; }

.link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
          backdrop-filter: blur(12px) saturate(150%);
  color: var(--on-white);
  text-decoration: none;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .16s, background .16s, box-shadow .16s;
}
.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.link__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: var(--stage-3);
}

.link__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.link__title { font-weight: 700; font-size: 15px; }
.link__sub { font-weight: 500; font-size: 11.5px; color: #4E7B76; }

.link__arrow { flex: none; color: #0E9C8C; font-size: 18px; }

.link__shine {
  position: absolute;
  top: 0; left: 0;
  width: 38%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(52, 214, 198, .16), transparent);
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
}
.links > li:nth-child(1) .link__shine { animation-delay: 1.2s; }
.links > li:nth-child(2) .link__shine { animation-delay: 2.4s; }
.links > li:nth-child(3) .link__shine { animation-delay: 3.6s; }

/* ------------------------------------------------------------------- footer */

.stage__footer {
  margin-top: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: #5F8783;
}

/* ------------------------------------------------------------ ikon di chip */

.chip__ikon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex: none;
  border-radius: 7px;
  background: #E3F7EF;
  color: var(--accent-deep);
}

/* ------------------------------------------------------------ progres target */

.target {
  margin: 22px 4px 0;
  animation: popin .5s cubic-bezier(.2, .8, .3, 1.4) both .14s;
}

.target__atas {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.target__judul {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.target__nilai {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.4px;
  color: var(--accent);
}

.target__bar {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(120, 220, 210, .16);
}

.target__isi {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  box-shadow: 0 0 14px -2px rgba(70, 224, 208, .7);
  transition: width .6s cubic-bezier(.2, .8, .3, 1);
}

.target__kaki {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted-3);
}

/* ------------------------------------------------------------------ proyek */

.proyek {
  margin: 20px 4px 0;
  animation: popin .5s cubic-bezier(.2, .8, .3, 1.4) both .18s;
}

.proyek__judul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Dua kolom, dua baris. Sel potret 3:4 supaya tangkapan situs terbaca sebagai
   halaman, bukan potongan melintang. Slot yang belum terisi tetap ditampilkan
   supaya sisa perjalanan menuju target ikut kelihatan. */
.proyek__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proyek__slot {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
}

/* Slot kosong bukan sekadar tempat kosong: ada orang yang sedang mengerjakan
   sesuatu di depan laptop, menandakan proyek berikutnya sedang digarap.
   Ilustrasinya berkas SVG tersendiri; animasi mengetik, layar menyala, dan
   butir hasil yang memancar didefinisikan di dalam berkas itu — termasuk
   penghentiannya saat pengunjung mengaktifkan reduce motion, karena aturan
   global di halaman ini tidak menjangkau isi sebuah <img>.

   Yang diatur di sini hanya ukuran dan ayunan pelan, dengan jeda berbeda per
   slot supaya ketiganya tidak bergerak serempak. */
.proyek__kerja {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proyek__kerja img {
  width: 78%;
  height: auto;
  opacity: .85;
  animation: ayunKerja 4.2s ease-in-out infinite;
}

.proyek__slot--kosong:nth-of-type(3) .proyek__kerja img { animation-delay: 1.4s; }
.proyek__slot--kosong:nth-of-type(4) .proyek__kerja img { animation-delay: 2.8s; }

@keyframes ayunKerja {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50%      { transform: translateY(-4px); opacity: 1; }
}

/* Proyek kelima dan seterusnya, disembunyikan sampai tombolnya ditekan. */
.proyek__slot--lanjut { display: none; }
.proyek__grid--lengkap .proyek__slot--lanjut { display: block; }

.proyek__slot--kosong {
  position: relative;
  border: 1px dashed rgba(120, 220, 210, .22);
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, .022) 0 6px,
      transparent 6px 12px);
}

.proyek__tautan {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(120, 220, 210, .2);
  background: rgba(255, 255, 255, .04);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.proyek__tautan:hover,
.proyek__tautan:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(52, 214, 198, .5);
  box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .65);
}

/* Kartunya memperlihatkan kepala halaman klien, bukan seluruh halaman yang
   dikecilkan. cover memenuhi sel, top menahan potongannya di bagian atas —
   di situlah logo, judul, dan tombol utamanya berada. contain akan
   memuat seluruh halaman jangkung itu ke dalam sel kecil dan hasilnya cuma
   garis-garis abu yang tidak terbaca, jadi jangan diganti. */
.proyek__tautan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Penanda bahwa thumbnail bisa diklik untuk pratinjau, bukan sekadar gambar. */
.proyek__kaca {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(6, 22, 25, .78);
  border: 1px solid rgba(120, 220, 210, .3);
  color: var(--accent);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  opacity: .9;
  transition: opacity .16s, transform .16s;
}
.proyek__tautan:hover .proyek__kaca,
.proyek__tautan:focus-visible .proyek__kaca {
  opacity: 1;
  transform: scale(1.08);
}

.proyek__lagi {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 220, 210, .22);
  background: rgba(255, 255, 255, .05);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}
.proyek__lagi:hover,
.proyek__lagi:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(52, 214, 198, .4);
}

/* --------------------------------------------------------------- pratinjau */

.pratinjau {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
}

.pratinjau__tirai {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 14, .82);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.pratinjau__kotak {
  position: relative;
  display: flex;
  flex-direction: column;
  /* 390 piksel: lebar layar yang dipakai saat tangkapannya diambil
     (tools/capture-proyek.mjs). Disamakan supaya pratinjaunya menampilkan
     situs klien pada ukuran ponsel sebenarnya, tidak direntangkan. */
  width: min(390px, 100%);
  max-height: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(120, 220, 210, .22);
  background: var(--card-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}

.pratinjau__kepala {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pratinjau__judul {
  flex: 1;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pratinjau__buka {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.pratinjau__buka:hover { text-decoration: underline; }

.pratinjau__tutup {
  flex: none;
  width: 26px; height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.pratinjau__tutup:hover { background: rgba(255, 255, 255, .14); }

/* Tangkapannya sangat jangkung, jadi kotaknya yang digulung. */
.pratinjau__gulung {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pratinjau__gulung img {
  display: block;
  width: 100%;
  height: auto;
}
