/* =========================================================================
   MODIFICATION - SKETCH / HANDBOOK BENTO CANVAS (1 FULL PAGE, NO SCROLL)
   Purpose: Personal website REZA FERDIAN dalam 1 layar penuh terpadu (100dvh),
            tanpa scroll vertikal, penuh karya, keahlian, dan kepribadian sketsa.
   Tone: Sketsa pensil di buku gambar arsitek/desainer.
         Cabin Sketch (display) + Architects Daughter (body).
   Theme: Kertas berpetak, bingkai bergoyang ala tangan (SVG filter wobble),
          selotip polaroid, coretan pensil, dan arsiran silang.
   ========================================================================= */

:root {
  --font-display: "Cabin Sketch", "Songti SC", "Noto Serif JP", Georgia, serif;
  --font-body: "Architects Daughter", "Hiragino Sans", "Noto Sans JP", "Noto Sans SC", system-ui, sans-serif;

  --paper: #fbfbf8;
  --paper-2: #f2f1ea;
  --paper-card: #fdfdfb;
  --ink: #161616;
  --ink-soft: #5b5b56;
  --line: rgba(22, 22, 22, 0.45);
  --line-soft: rgba(22, 22, 22, 0.18);
  --grid: rgba(22, 22, 22, 0.075);
  --fill: rgba(22, 22, 22, 0.055);
  --fill-hover: rgba(22, 22, 22, 0.09);

  --wobble: url(#sketchwobble);
  --wobble-sm: url(#sketchwobble-sm);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.dark {
  --paper: #16161a;
  --paper-2: #1f1f24;
  --paper-card: #19191e;
  --ink: #f2f1ea;
  --ink-soft: #a7a69e;
  --line: rgba(242, 241, 234, 0.48);
  --line-soft: rgba(242, 241, 234, 0.2);
  --grid: rgba(242, 241, 234, 0.075);
  --fill: rgba(242, 241, 234, 0.07);
  --fill-hover: rgba(242, 241, 234, 0.12);
}

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

html {
  font-size: 18px;
}

html, body {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Strict: NO window scroll */
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

/* Tekstur kertas berpetak */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
}

/* Serat kertas halus */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45;
  background-image: radial-gradient(var(--grid) 0.6px, transparent 0.7px);
  background-size: 5px 5px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.sk-defs { position: absolute; }

/* Aksesibilitas */
.skip-link {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100; transform: translateY(-200%);
  background: var(--ink); color: var(--paper); padding: 0.4rem 0.8rem;
  font-family: var(--font-body); font-size: 0.8rem; text-decoration: none;
  border-radius: 10px 4px 12px 4px / 4px 12px 4px 10px;
}
.skip-link:focus-visible { transform: translateY(0); }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }

/* =========================================================================
   TOPBAR
   ========================================================================= */

.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(0.5rem, 1.2vw, 1.5rem);
  padding: clamp(0.4rem, 0.8vh, 0.65rem) clamp(0.8rem, 1.8vw, 1.6rem);
  border-bottom: 2px solid var(--line-soft);
  background: var(--paper);
  flex-shrink: 0;
}

.brand {
  display: flex; align-items: center; gap: 0.65rem; text-decoration: none;
}
.brand__mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  border: 2px solid var(--ink); color: var(--ink);
  border-radius: 14px 5px 15px 6px / 6px 14px 5px 15px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  transform: rotate(-2deg);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand__role { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.05em; text-transform: uppercase; }

/* Navigasi Pil Kanvas */
.canvas-nav {
  display: flex; align-items: center; gap: 0.3rem;
  background: var(--fill);
  padding: 0.2rem 0.35rem;
  border-radius: 20px 8px 18px 7px / 7px 18px 8px 20px;
  border: 1.5px dashed var(--line-soft);
}
.canvas-nav__btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  color: var(--ink-soft);
  border-radius: 12px 4px 12px 4px / 4px 12px 4px 12px;
  transition: all 0.2s var(--ease);
}
.canvas-nav__btn:hover {
  color: var(--ink);
  background: var(--fill-hover);
}
.canvas-nav__btn.is-active {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-0.5deg);
}

/* Kontrol kanan: status + bahasa + tema */
.controls {
  display: flex; align-items: center; gap: clamp(0.35rem, 0.8vw, 0.75rem);
}

.badge {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem; margin: 0;
  font-size: 0.82rem; padding: 0.25rem 0.65rem; color: var(--ink);
}
.badge::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--ink);
  border-radius: 12px 4px 13px 5px / 5px 12px 4px 13px;
  filter: var(--wobble-sm); pointer-events: none;
}
.badge__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.lang {
  display: flex; align-items: center; gap: 0.1rem; padding: 0.15rem 0.35rem;
  border: 1.5px solid var(--line-soft); color: var(--ink-soft);
  border-radius: 10px 4px 11px 4px / 4px 11px 4px 10px;
}
.lang button {
  border: 0; background: none; cursor: pointer; color: var(--ink-soft);
  font-family: var(--font-body); font-size: 0.74rem; padding: 0.2rem 0.35rem;
  border-radius: 6px 2px 6px 2px;
  transition: all 0.2s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button.is-active { background: var(--ink); color: var(--paper); }

.theme-toggle {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none;
  border: 1.5px solid var(--line-soft); background: none; cursor: pointer; color: var(--ink-soft);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%;
  transition: all 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }

/* =========================================================================
   BENTO STUDIO BOARD (1 FULL PAGE CANVAS)
   ========================================================================= */

.bento-board {
  position: relative; z-index: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(380px, 1.45fr) minmax(300px, 1.05fr);
  gap: clamp(0.6rem, 1vw, 1.1rem);
  padding: clamp(0.5rem, 0.9vh, 0.9rem) clamp(0.8rem, 1.8vw, 1.6rem);
  overflow: hidden;
}

/* Bingkai bergoyang (signature ink-box) */
.ink-box {
  position: relative;
  background: var(--paper-card);
}
.ink-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 2px solid var(--ink);
  border-radius: 16px 6px 18px 7px / 7px 17px 6px 18px;
  filter: var(--wobble);
  z-index: 2;
}

/* Panel Bento */
.bento-panel {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.bento-panel--profile { transform: rotate(-0.35deg); }
.bento-panel--work { transform: rotate(0.25deg); }
.bento-col-stack {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.9vh, 0.85rem);
  transform: rotate(-0.25deg);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), filter 0.4s var(--ease);
}

.bento-panel:hover, .bento-col-stack:hover {
  transform: rotate(0deg);
}

/* =========================================================================
   INTERAKSI FOKUS & AMBIENT ANIMATION (GENTLE FLOATING / BREATHE)
   ========================================================================= */

/* Efek redup lembut untuk panel lain saat satu panel sedang aktif/fokus */
.bento-board.has-focus .bento-panel:not(.is-focused) {
  opacity: 0.36;
  filter: grayscale(0.5);
  transform: scale(0.982);
}
.bento-board.has-focus .bento-panel:not(.is-focused):hover {
  opacity: 0.75;
  filter: grayscale(0.15);
  transform: scale(0.995);
  cursor: pointer;
}

/* Panel yang sedang fokus (Pop entrance + Slow gentle breathe kontinu) */
.bento-panel.is-focused,
.bento-col-stack.is-focused .bento-panel.is-focused {
  z-index: 10;
  opacity: 1 !important;
  filter: none !important;
  animation: panelFocusEnter 0.42s var(--ease) forwards, panelBreathe 4.8s ease-in-out 0.42s infinite;
}

/* Bingkai ink-box pada panel yang fokus */
.bento-panel.is-focused .ink-box::before,
.bento-col-stack.is-focused .bento-panel.is-focused .ink-box::before {
  border-width: 3.5px;
  border-color: var(--ink);
  filter: var(--wobble);
  box-shadow: 0 0 0 3px var(--fill-hover), 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: all 0.4s var(--ease);
}

.dark .bento-panel.is-focused,
.dark .bento-col-stack.is-focused .bento-panel.is-focused {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(242, 241, 234, 0.08);
}
.dark .bento-panel.is-focused .ink-box::before,
.dark .bento-col-stack.is-focused .bento-panel.is-focused .ink-box::before {
  box-shadow: 0 0 0 3px rgba(242, 241, 234, 0.12), 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Watermark angka sudut lebih hidup saat fokus */
.bento-panel.is-focused .panel__scribble,
.bento-col-stack.is-focused .bento-panel.is-focused .panel__scribble {
  opacity: 0.26;
  transform: scale(1.1) rotate(2.5deg);
  color: var(--ink);
  transition: all 0.5s var(--ease);
}

/* Detail spesifik saat panel tertentu fokus */
.bento-panel--profile.is-focused .polaroid-frame {
  transform: rotate(-1.5deg) scale(1.02);
  transition: transform 0.4s var(--ease);
}

/* Animasi Pop Pertama saat diklik (Kentara namun halus) */
@keyframes panelFocusEnter {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  45% {
    transform: scale(1.034) translateY(-7px) rotate(-0.45deg);
  }
  100% {
    transform: scale(1.02) translateY(-3px) rotate(-0.2deg);
  }
}

/* Animasi Napas/Mengambang Lambat Kontinu (Pelan & Elegan, Tidak Bikin Pusing) */
@keyframes panelBreathe {
  0%, 100% {
    transform: scale(1.02) translateY(-3px) rotate(-0.2deg);
  }
  50% {
    transform: scale(1.027) translateY(-7px) rotate(0.25deg);
  }
}

/* Angka coretan watermark sudut (01, 02, 03, ...) */
.panel__scribble {
  position: absolute; top: 0.2rem; right: 0.6rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem); line-height: 0.8;
  color: var(--ink); opacity: 0.08; pointer-events: none; user-select: none; z-index: 1;
}

.panel-card {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: clamp(0.7rem, 1.2vw, 1.15rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Tipografi umum */
.kicker {
  margin: 0 0 0.3rem; font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.05em;
}
.kicker::before { content: "// "; opacity: 0.6; }

.section-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

/* Tombol sketsa */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.45rem 0.95rem; cursor: pointer; border: 0;
  font-family: var(--font-body); font-size: 0.82rem; background: none; color: var(--ink);
  transition: transform 0.15s var(--ease); text-decoration: none;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  border: 1.8px solid var(--ink);
  border-radius: 12px 4px 13px 5px / 5px 12px 4px 13px;
  filter: var(--wobble-sm); pointer-events: none;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { border-color: var(--ink); }
.btn--sm { padding: 0.3rem 0.75rem; font-size: 0.76rem; }
.btn:hover { transform: rotate(-1deg) translateY(-1px); }
.btn:active { transform: translateY(1px); }

/* =========================================================================
   PANEL 1: PROFIL & BIO & STATS
   ========================================================================= */

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.7rem, 1vw, 1rem);
  margin-bottom: clamp(0.5rem, 0.9vh, 0.8rem);
}

/* Polaroid Photo */
.polaroid-frame {
  position: relative; flex: 0 0 clamp(82px, 7vw, 108px);
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  padding: 4px 4px 18px 4px;
  border-radius: 8px 3px 9px 4px / 4px 9px 3px 8px;
  box-shadow: 2px 3px 0 var(--line-soft);
  transform: rotate(-3deg);
  margin-top: 0.4rem;
}
.polaroid-photo {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--paper-2);
}
.polaroid-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.06);
}
.polaroid-caption {
  display: block; font-size: 0.7rem; color: var(--ink-soft); text-align: center;
  margin-top: 3px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Selotip polaroid */
.tape {
  position: absolute; width: 2.8rem; height: 0.9rem;
  background: var(--fill); border: 1px dashed var(--line-soft); z-index: 3;
}
.tape--tl { top: -0.45rem; left: -0.65rem; transform: rotate(-32deg); }
.tape--tr { top: -0.45rem; right: -0.65rem; transform: rotate(32deg); }

.profile-header__lead {
  flex: 1; min-width: 0;
}
.hero__name {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 0.98;
}
.hero__underline {
  display: block; width: 100%; max-width: 210px; height: 10px;
  margin: 0.15rem 0 0.35rem; color: var(--ink); overflow: visible;
}
.hero__tagline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(0.95rem, 1.25vw, 1.15rem); line-height: 1.25; margin: 0;
}

.profile-bio {
  font-size: clamp(0.82rem, 0.98vw, 0.92rem); line-height: 1.5; color: var(--ink-soft);
  margin: 0 0 clamp(0.5rem, 0.9vh, 0.8rem);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* Baris Statistik */
.stats-row {
  list-style: none; margin: 0 0 clamp(0.5rem, 0.9vh, 0.8rem); padding: 0.4rem 0.6rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  border-top: 1.5px dashed var(--line-soft);
  border-bottom: 1.5px dashed var(--line-soft);
  background: var(--fill);
  border-radius: 8px 3px 8px 3px;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.stat-item__value {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1;
}
.stat-item__label {
  font-size: 0.74rem; color: var(--ink-soft); line-height: 1.2; margin-top: 0.15rem;
}

/* Fakta Singkat */
.facts-section {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
}
.facts__title {
  font-family: var(--font-body); font-size: 0.78rem; color: var(--ink-soft);
  margin: 0 0 0.35rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.facts-list {
  margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 0.8rem;
  font-size: 0.8rem;
}
.fact-item {
  display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-soft);
  padding: 0.2rem 0;
}
.fact-item__label { color: var(--ink-soft); margin: 0; }
.fact-item__val { font-weight: 700; text-align: right; margin: 0; }

/* =========================================================================
   PANEL 2: SELECTED WORK (INTERACTIVE SHOWCASE)
   ========================================================================= */

.work-card {
  display: flex; flex-direction: column; justify-content: space-between;
}

.work-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.8rem; margin-bottom: clamp(0.4rem, 0.7vh, 0.65rem);
  padding-bottom: 0.35rem; border-bottom: 1.5px dashed var(--line-soft);
}
.work-lead {
  margin: 0; font-size: 0.82rem; color: var(--ink-soft); max-width: 32ch; text-align: right;
}

/* Tab Pil Proyek (01 Aurora, 02 Toko Kita, ...) */
.work-pills {
  display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: clamp(0.4rem, 0.8vh, 0.7rem);
}
.work-pill {
  border: 1.5px solid var(--line-soft); background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.8rem; padding: 0.22rem 0.6rem;
  border-radius: 12px 4px 13px 4px / 4px 13px 4px 12px;
  color: var(--ink-soft); transition: all 0.2s var(--ease);
}
.work-pill:hover {
  color: var(--ink); border-color: var(--ink); background: var(--fill);
}
.work-pill.is-active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  transform: rotate(-0.5deg);
}

/* Panggung Proyek Aktif */
.work-stage {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(0.5rem, 0.9vh, 0.8rem);
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 14px 5px 15px 6px / 6px 14px 5px 15px;
  padding: clamp(0.6rem, 1vw, 0.9rem);
  position: relative;
}

/* Gambar Proyek dengan Arsiran Pensil */
.work-media {
  position: relative; width: 100%; height: 100%; min-height: 0;
  overflow: hidden; border: 1.5px solid var(--line-soft);
  border-radius: 10px 4px 10px 4px; background: var(--paper);
}
.work-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.08);
  transition: transform 0.4s var(--ease);
}
.work-media:hover img { transform: scale(1.03); }
.work-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.14;
  background: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 5px);
}

.work-info {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.work-info__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; font-size: 0.78rem;
}
.work-info__category {
  display: inline-block; font-weight: 700; color: var(--ink);
  background: var(--fill); padding: 0.15rem 0.45rem;
  border-radius: 6px 2px 6px 2px; border: 1px dashed var(--line);
}
.work-info__year {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-soft);
}
.work-info__title {
  font-size: clamp(1.22rem, 1.85vw, 1.5rem); line-height: 1.1; margin: 0;
}
.work-info__summary {
  margin: 0; font-size: clamp(0.82rem, 0.95vw, 0.92rem); line-height: 1.45; color: var(--ink-soft);
}
.work-info__cta {
  align-self: flex-start; margin-top: 0.2rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid var(--ink); padding-bottom: 1px;
}
.work-info__cta:hover { opacity: 0.7; }

/* Showcase Footer: Prev/Next/Dots */
.work-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-top: clamp(0.4rem, 0.7vh, 0.65rem);
  padding-top: 0.35rem; border-top: 1.5px dashed var(--line-soft);
}
.work-controls {
  display: flex; align-items: center; gap: 0.4rem;
}
.arrow {
  position: relative; display: grid; place-items: center; width: 1.85rem; height: 1.85rem;
  border: 1.5px solid var(--ink); background: none; cursor: pointer; color: var(--ink);
  border-radius: 10px 4px 11px 4px / 4px 11px 4px 10px;
  transition: all 0.18s var(--ease);
}
.arrow:hover { background: var(--ink); color: var(--paper); transform: rotate(-3deg); }
.work-counter {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; min-width: 4.5ch; text-align: center;
}
.work-dots {
  display: flex; align-items: center; gap: 0.35rem;
}
.work-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  border: 1.5px solid var(--ink); background: none; cursor: pointer; padding: 0;
  transition: all 0.2s var(--ease);
}
.work-dot.is-active {
  background: var(--ink); transform: scale(1.25);
}
.work-quote {
  margin: 0; font-size: 0.7rem; color: var(--ink-soft); font-style: italic;
  max-width: 28ch; text-align: right; line-height: 1.25;
}

/* =========================================================================
   PANEL 3: KEAHLIAN + PERJALANAN + KONTAK
   ========================================================================= */

.panel-head {
  margin-bottom: 0.3rem; padding-bottom: 0.25rem; border-bottom: 1.5px dashed var(--line-soft);
}
.panel-title {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

/* Keahlian (Skills) */
.bento-panel--skills { flex: 1.1; }
.skills-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.6rem;
  overflow: hidden;
}
.skill-box {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.skill-box__title {
  font-size: 0.78rem; font-weight: 700; color: var(--ink); margin: 0;
  border-bottom: 1px dashed var(--line-soft); padding-bottom: 1px;
}
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 0.2rem;
}
.skill-tag {
  font-size: 0.74rem; color: var(--ink-soft);
  background: var(--fill); padding: 0.1rem 0.4rem;
  border-radius: 6px 2px 6px 2px;
}

/* Perjalanan (Journey Timeline) */
.bento-panel--journey { flex: 1.1; }
.journey-list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
  gap: 0.28rem; overflow: hidden;
}
.journey-item {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.4rem;
  font-size: 0.78rem; line-height: 1.25; border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 0.25rem;
}
.journey-item:last-child { border-bottom: 0; padding-bottom: 0; }
.journey-item__period {
  color: var(--ink-soft); font-size: 0.72rem; transform: rotate(-0.5deg);
}
.journey-item__role {
  font-weight: 700; color: var(--ink); font-size: 0.84rem;
}
.journey-item__org {
  color: var(--ink-soft); font-size: 0.74rem; margin: 0;
}

/* Kontak (Contact) */
.bento-panel--contact { flex: 0.95; }
.contact-box {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.contact-box__head { margin-bottom: 0.3rem; }
.contact-box__title { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

.contact-box__action {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.35rem 0.5rem; background: var(--fill);
  border-radius: 10px 4px 11px 4px / 4px 11px 4px 10px;
  border: 1px dashed var(--line-soft);
  margin-bottom: 0.35rem;
}
.contact-mail {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  text-decoration: none; border-bottom: 2px solid var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-mail:hover { opacity: 0.75; }

.socials-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.3rem;
}
.social-pill {
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  padding: 0.25rem 0.45rem; border: 1px solid var(--line-soft);
  border-radius: 8px 3px 8px 3px; font-size: 0.78rem; text-decoration: none;
  color: var(--ink-soft); transition: all 0.18s var(--ease);
}
.social-pill:hover {
  color: var(--ink); border-color: var(--ink); background: var(--fill);
  transform: translateY(-1px);
}

/* =========================================================================
   BASEBAR (FOOTER STATUS)
   ========================================================================= */

.basebar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.35rem clamp(0.8rem, 1.8vw, 1.6rem);
  border-top: 2px solid var(--line-soft);
  background: var(--paper);
  font-size: 0.78rem; color: var(--ink-soft);
  flex-shrink: 0;
}
.basebar__meta { display: flex; align-items: center; gap: 0.45rem; }
.basebar__sep { opacity: 0.45; }
.basebar__copy { text-align: right; }

/* =========================================================================
   ANIMASI REVEAL
   ========================================================================= */

.bento-panel {
  animation: drawIn 0.5s var(--ease) both;
}
.bento-panel--profile { animation-delay: 0.05s; }
.bento-panel--work { animation-delay: 0.12s; }
.bento-col-stack { animation-delay: 0.18s; }

@keyframes drawIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; }
}

/* =========================================================================
   RESPONSIF (TETAP 100dvh, TETAP 1 FULL PAGE, TANPA SCROLL)
   ========================================================================= */

@media (max-width: 1080px) {
  html { font-size: 17px; }
  .bento-board {
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
  }
  .work-quote { display: none; }
}

@media (max-width: 900px) {
  html { font-size: 16px; }
  /* Di layar tablet/kecil, canvas-nav mengontrol panel aktif secara 1 full screen */
  .canvas-nav { display: flex; }
  .bento-board {
    display: flex;
    position: relative;
    padding: 0.5rem 0.8rem;
  }
  .bento-panel, .bento-col-stack {
    position: absolute; inset: 0.5rem 0.8rem;
    display: none;
    height: calc(100% - 1rem);
    transform: none !important;
    animation: none !important;
  }
  .bento-panel.is-active-tab, .bento-col-stack.is-active-tab {
    display: flex;
  }
  .bento-col-stack.is-active-tab .bento-panel {
    display: flex; position: relative; inset: auto; height: auto;
  }
  .bento-board.has-focus .bento-panel:not(.is-focused) {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .badge--status { display: none; }
}

@media (max-height: 740px) {
  html { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .bento-panel.is-focused,
  .bento-col-stack.is-focused .bento-panel.is-focused {
    animation: none !important;
  }
}
