/* ==========================================================
   SECTIONS — isi tiap lembar
   ========================================================== */

/* ---------- Elemen umum ---------- */
.title {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(36px, min(6vw, 7vh), 54px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* huruf hasil split — tiap huruf dibungkus agar bisa dianimasikan */
.title .char {
  display: inline-block;
  will-change: transform;
}

.title .char-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.06em 0 0.08em;
  margin: -0.06em 0 -0.08em;
  vertical-align: top;
}

/* satu kata judul tidak boleh terpotong di tengah */
.word {
  display: inline-block;
  white-space: nowrap;
}

/* judul panjang (mis. EXPERIENCE & EDUCATION) boleh dua baris */
.title--wrap {
  white-space: normal;
  line-height: 0.92;
}

.lede {
  max-width: 40ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.lede--wide {
  max-width: 52ch;
  margin: clamp(10px, 2.4vh, 24px) 0 clamp(10px, 2.2vh, 22px);
}

.lede--big {
  max-width: 24ch;
  margin: clamp(20px, 4vh, 40px) 0 clamp(18px, 3.5vh, 32px);
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.25;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}

.link-arrow:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
}

.link-arrow span {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.link-arrow:hover span {
  transform: translateX(3px) rotate(var(--r, 0deg));
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sheet-head .link-arrow {
  flex: none;
  margin-top: 10px;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 1px 5px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  background: var(--tag-bg, transparent);
}

.tag--ink {
  --tag-bg: var(--ink);
  color: var(--sheet-c);
}

.mono-num {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- ABOUT ---------- */
.clip-label {
  position: absolute !important;
  top: -4px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px 12px 26px;
  background: #ecefef;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transform: rotate(-1.2deg);
  transform-origin: 0 0;
}

.clip-label__clip {
  position: absolute;
  top: -10px;
  left: 10px;
  width: 12px;
  height: 34px;
  fill: none;
  stroke: #8b8f93;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* ==========================================================
   ABOUT — tata letak seperti referensi Portfolder:
   nama besar di tengah atas; teks, LET'S TALK, dan foto perangko di satu
   kolom (mulai ±1/3 lebar lembar); skill berundak di bawah; footer di dasar.
   Satu layar penuh, tidak bisa di-scroll — semua ukuran mengikuti tinggi layar.
   ========================================================== */
#about .sheet__scroll {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: clamp(18px, 3vh, 30px);
}

.about {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.title--name {
  align-self: center;
  font-size: clamp(56px, 12vh, 108px);
  line-height: 0.84;
  text-align: center;
  cursor: default;
}

/* caption peran di bawah nama — sejajar kolom teks (rata kiri) */
.role-caption {
  align-self: flex-start;
  margin: clamp(6px, 1.4vh, 14px) 0 0 32%;
  font-family: var(--f-mono);
  font-size: clamp(10px, 1.45vh, 12px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: left;
}

/* kolom isi: mulai ±1/3 lebar lembar, seperti referensi */
.about .lede,
.about .link-arrow,
.stamp-wrap {
  margin-left: 32%;
}

.about .lede {
  width: min(50%, 46ch);
  max-width: none;
  margin-top: clamp(10px, 2.6vh, 26px);
  font-size: clamp(13px, 2vh, 16px);
  line-height: 1.32;
  text-align: justify;
  hyphens: auto;
}

.about .link-arrow {
  align-self: flex-start;
  margin-top: clamp(8px, 2vh, 18px);
  font-size: clamp(11px, 1.6vh, 13px);
  /* tanpa garis bawah */
  background: none;
}

/* foto profil: perangko persegi, rata kiri dengan kolom teks */
.stamp-wrap {
  position: relative;
  align-self: flex-start;
  margin-top: clamp(8px, 1.8vh, 16px);
  margin-bottom: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

/* Tepi perangko — lubang setengah lingkaran hanya di sepanjang tepi (mask) */
.stamp {
  --r: 6px;
  width: clamp(140px, 28.5vh, 250px);
  aspect-ratio: 1 / 1;
  padding: calc(2 * var(--r));
  background: #f4f4f1;
  -webkit-mask:
    radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}

.stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* foto hitam-putih; wajah ada di tengah-bawah foto */
  object-position: 50% 58%;
  filter: grayscale(1) contrast(1.15) brightness(1.04);
}

/* catatan tangan miring di kanan bawah perangko */
.handnote {
  position: absolute;
  left: 66%;
  bottom: -26px;
  font-family: var(--f-hand);
  font-size: clamp(16px, 2.8vh, 23px);
  line-height: 0.85;
  white-space: nowrap;
  transform: rotate(-22deg);
  transform-origin: 0 100%;
}

.handnote span {
  display: block;
}

.handnote span + span {
  margin-left: -6px;
}

/* skill: nama di atas angkanya; tiap skill sedikit lebih rendah dari
   sebelumnya sehingga membentuk undakan, tahun di ujung kanan */
.services {
  --stair: clamp(14px, 3vh, 24px);
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 2vw, 22px);
  margin-top: auto;
  padding-top: clamp(10px, 2vh, 20px);
}

.services li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: calc(var(--i, 0) * var(--stair));
}

.services .mono-num {
  font-size: clamp(11px, 1.6vh, 13px);
}

.services .tag {
  white-space: nowrap;
  font-size: clamp(11px, 1.6vh, 13px);
}

.services-year {
  margin-left: auto;
}

.tone-blue { --tag-bg: var(--hl-blue); }
.tone-sage { --tag-bg: var(--hl-sage); }
.tone-rose { --tag-bg: var(--hl-rose); }
.tone-cream { --tag-bg: #e6dcc3; }
.tone-lilac { --tag-bg: #d6cfe3; }

.sheet-foot {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(8px, 1.8vh, 16px);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* HP: satu kolom penuh, skill jadi label berjajar — tetap satu layar */
@media (max-width: 760px) {
  #about .sheet__scroll {
    padding-top: 12px;
  }

  .title--name {
    font-size: clamp(42px, 8vh, 64px);
  }

  .about .lede,
  .about .link-arrow,
  .stamp-wrap,
  .role-caption {
    margin-left: 0;
  }

  .about .lede {
    width: auto;
    margin-top: 10px;
    font-size: clamp(12px, 1.7vh, 14px);
    text-align: left;
  }

  .stamp-wrap {
    align-self: center;
  }

  .stamp {
    --r: 5px;
    width: clamp(110px, 30vh, 260px);
  }

  .handnote {
    left: 70%;
    font-size: 16px;
  }

  .services {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 6px;
  }

  .services li {
    display: inline-flex;
    margin-top: 0;
  }

  .services-year {
    display: none !important;
  }

  .services .mono-num {
    display: none;
  }

  .services .tag {
    font-size: 11px;
  }
}

/* layar sangat pendek (HP mendatar): lebih baik bisa digeser daripada terpotong */
@media (max-height: 520px) {
  #about .sheet__scroll {
    overflow-y: auto;
  }
}

/* ---------- WORKS ---------- */
.view-toggle {
  display: flex;
  gap: 6px;
  margin-top: 46px;
  margin-right: auto;
  margin-left: 18%;
}

.view-toggle button {
  padding: 1px 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.view-toggle button.is-on {
  background: var(--ink);
  color: var(--sheet-c);
}

.works {
  margin-top: 26px;
}

.works--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12%;
  row-gap: 40px;
}

.works--grid .work:nth-child(even) {
  margin-top: 120px;
}

.work a {
  display: block;
}

.work .mono-num {
  display: block;
  margin-bottom: 8px;
}

.work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: min(100%, 230px);
  background: rgba(0, 0, 0, 0.06);
}

.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.6s;
  filter: saturate(0.85);
}

.work a:hover .work__media img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.work__meta {
  margin-top: 6px;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.work__kind {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
}

/* klien / lokasi proyek — tulisan tangan, dipisah titik */
.work__clients {
  display: flex;
  flex-wrap: wrap;
  max-width: 230px;
  font-family: var(--f-hand);
  font-size: 17px;
  line-height: 1;
  color: var(--ink-soft);
}

.work__clients li + li::before {
  content: "·";
  margin: 0 5px;
}

/* mode list */
.works--list {
  display: grid;
  border-top: 1px solid var(--line);
}

.works--list .work {
  border-bottom: 1px solid var(--line);
}

.works--list .work a {
  display: grid;
  grid-template-columns: 52px 64px 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.works--list .work .mono-num {
  margin: 0;
}

.works--list .work__media {
  width: 64px;
}

.works--list .work__meta {
  margin: 0;
}

.works--list .work__clients {
  max-width: none;
}

/* ---------- GITHUB ---------- */
.skyline-mount {
  min-height: 300px;
  margin-bottom: 40px;
}

/* ---------- TABLE (contact + experience) ---------- */
.table {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 26% 1fr;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid var(--line);
}

.row--tall {
  align-items: start;
  padding-top: 9px;
}

.row__key {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.row__val {
  min-width: 0;
  font-family: var(--f-mono);
  font-size: 12px;
}

.contact-table {
  margin-left: auto;
  width: min(100%, 520px);
  margin-bottom: 40px;
}

.socials {
  display: flex;
}

.socials a {
  flex: 1;
  padding: 8px 0 8px 8px;
  border-left: 1px solid var(--line);
  font-weight: 500;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.row__val:has(.copy) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.copy {
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
}

.contact-form {
  margin-top: clamp(14px, 3vh, 32px);
  border-top: 1px solid var(--line);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  outline: none;
  resize: vertical;
}

.contact-form ::placeholder {
  color: var(--ink-faint);
}

.submit {
  display: block;
  margin: 16px auto 0;
  padding: 3px 6px;
  background: var(--ink);
  color: var(--sheet-c);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease-out);
}

.submit:hover {
  transform: translateY(-2px);
}

/* ---------- EDUCATION ---------- */
.edu-list {
  margin: clamp(12px, 2.4vh, 24px) 0 24px;
}

.edu-list .row {
  grid-template-columns: 26% 1fr auto;
  padding: 4px 0;
  gap: 8px;
}

.edu-list .row__val strong {
  display: block;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .sheet__scroll {
    padding: 16px 14px 24px;
  }

  .clip-label {
    display: none !important;
  }

  .sheet-head {
    flex-wrap: wrap;
  }

  .view-toggle {
    margin: 4px 0 0;
  }

  .works--grid {
    column-gap: 16px;
  }

  .works--grid .work:nth-child(even) {
    margin-top: 60px;
  }

  .works--list .work a {
    grid-template-columns: 36px 52px 1fr;
  }

  .works--list .work__media {
    width: 52px;
  }

  .works--list .work__kind {
    display: none;
  }

  .row {
    grid-template-columns: 30% 1fr;
  }

  .edu-list .row {
    grid-template-columns: 1fr;
  }
}

/* label jenis di tabel experience */
.kind-tag {
  justify-self: end;
  font-size: 10px;
}

.kind-work { --tag-bg: #e8e0cc; }
.kind-edu { --tag-bg: var(--hl-blue); }

@media (max-width: 640px) {
  .edu-list .row {
    grid-template-columns: 1fr auto;
  }

  .edu-list .row__key {
    grid-column: 1 / -1;
  }
}

/* ---------- WORKS: map arsip ---------- */
.works-count {
  margin-top: 14px;
}

.folders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 28px;
  margin-top: clamp(4px, 1.5vh, 14px);
  padding-bottom: 24px;
}

@media (max-width: 640px) {
  .folders {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
