@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,900;1,9..144,600&family=Work+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root{
  /* --- Warna --- */
  --ink:        #16213E;
  --ink-soft:   #2C3958;
  --paper:      #FBF7EF;
  --paper-alt:  #EFE7D3;
  --brass:      #C9A227;
  --brass-dark: #9C7C17;
  --red:        #B5433A;
  --slate:      #5B6478;
  --line:       #DED9C9;
  --white:      #FFFFFF;

  /* --- Tipografi --- */
  --f-display: 'Fraunces', serif;
  --f-body:    'Work Sans', sans-serif;
  --f-mono:    'Space Mono', monospace;

  /* --- Layout --- */
  --page-max: 1080px;
  --rail-w: 34px;
  --radius: 14px;
  --shadow-paper: 0 1px 0 var(--white), 0 18px 40px -22px rgba(22,33,62,0.35);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper-alt);
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--f-display); margin: 0 0 .4em; line-height: 1.1; }
p{ margin: 0 0 1em; line-height: 1.7; color: var(--ink-soft); }

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.eyebrow{
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: .6em;
}

.btn{
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn--solid{ background: var(--ink); color: var(--paper); }
.btn--solid:hover{ background: var(--ink-soft); }
.btn--brass{ border-color: var(--brass-dark); background: var(--brass); color: var(--ink); }
.btn--brass:hover{ background: #d8b23c; }

/* ==========================================================================
   HEADER — folder tabs (nav)
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-alt);
  padding: 18px 20px 0;
}
.header-inner{
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand{
  display: flex;
  align-items: center;
  gap: .6em;
  padding-bottom: 12px;
  font-family: var(--f-mono);
  font-size: .85rem;
  color: var(--ink);
}
.brand .dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(181,67,58,.15);
}
.brand strong{ font-family: var(--f-display); font-size: 1.05rem; }

.tab-toggle{
  display: none;
  font-family: var(--f-mono);
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  margin-bottom: 10px;
}

.tab-nav{
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar{ display: none; }

.tab-nav a{
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  white-space: nowrap;
  padding: 10px 18px 12px;
  border-radius: 10px 10px 0 0;
  background: var(--paper-alt);
  color: var(--slate);
  border: 1.5px solid var(--line);
  border-bottom: none;
  position: relative;
  top: 2px;
  transition: background .15s ease, color .15s ease, top .15s ease;
}
.tab-nav a:hover{ color: var(--ink); background: #f4eddc; }
.tab-nav a.active{
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  top: 0;
  font-weight: 700;
  box-shadow: 0 -6px 14px -10px rgba(22,33,62,.4);
}
.tab-nav a.active::after{
  content: "";
  position: absolute;
  left: 10px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ==========================================================================
   PAGE / PAPER SHEET
   ========================================================================== */
.page-sheet{
  max-width: var(--page-max);
  margin: 0 auto 60px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow-paper);
  padding: 48px clamp(20px, 5vw, 64px) 60px;
  position: relative;
  overflow: hidden;
}

/* rel lubang kertas — signature element */
.punch-rail{
  position: absolute;
  left: 14px;
  top: 40px;
  bottom: 40px;
  width: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.punch-rail span{
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper-alt);
  box-shadow: inset 0 2px 3px rgba(22,33,62,.25);
}
@media (max-width: 720px){ .punch-rail{ display: none; } }
.page-sheet{ padding-left: clamp(20px, 5vw, 64px); }
@media (min-width: 721px){ .page-sheet{ padding-left: 56px; } }

.section-head{ max-width: 640px; margin-bottom: 34px; }
.section-head h1{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head .lede{ font-size: 1.05rem; }

hr.rule{
  border: none;
  border-top: 1.5px dashed var(--line);
  margin: 40px 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  max-width: var(--page-max);
  margin: 0 auto 40px;
  padding: 0 clamp(20px,5vw,64px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--slate);
}
.footer-social{ display: flex; gap: 14px; }
.footer-social a{
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover{ border-color: var(--brass-dark); color: var(--ink); }

/* ==========================================================================
   HOME — kartu identitas (ID badge)
   ========================================================================== */
.hero{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 640px){ .hero{ grid-template-columns: 1fr; } }

.id-card{
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, var(--white), var(--paper));
  position: relative;
  transform: rotate(-2.5deg);
  box-shadow: 0 16px 30px -18px rgba(22,33,62,.5);
}
.id-card .photo-frame{
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px dashed var(--line);
  background: var(--paper-alt);
  margin-bottom: 12px;
}
.id-card .photo-frame img{ width: 100%; height: 100%; object-fit: cover; }
.id-card .stamp{
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.id-card .stamp b{ color: var(--red); }
.id-card .pin{
  position: absolute; top: -10px; left: 24px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 3px 6px rgba(0,0,0,.25);
}

.hero-text .name{
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-bottom: .15em;
}
.hero-text .role-line{
  font-family: var(--f-mono);
  color: var(--slate);
  font-size: .95rem;
  margin-bottom: 1em;
}
.hero-text .role-line b{ color: var(--ink); }
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }

.quick-facts{
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 18px;
}
.quick-facts .fact{
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--paper);
}
.quick-facts .fact .k{
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4em;
  display: block;
}
.quick-facts .fact .v{ font-family: var(--f-display); font-size: 1.15rem; overflow-wrap:break-word; }

/* ==========================================================================
   TENTANG — bio & hobi chips
   ========================================================================== */
.about-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}
@media (max-width: 760px){ .about-grid{ grid-template-columns: 1fr; } }

.chip-list{ display: flex; flex-wrap: wrap; gap: 10px; }
.chip{
  font-family: var(--f-mono);
  font-size: .8rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  background: var(--paper);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover{ transform: translateY(-2px); }
.chip.is-active{
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hobi-note{
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: .85rem;
  color: var(--slate);
  border-left: 3px solid var(--brass);
  padding-left: 12px;
  min-height: 1.6em;
}

.aside-box{
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--paper-alt);
  align-self: start;
}
.aside-box h3{ font-size: 1rem; }

/* ==========================================================================
   PENDIDIKAN — timeline (urutan waktu asli, jadi wajar pakai marka)
   ========================================================================== */
.timeline{ position: relative; margin-top: 10px; }
.timeline::before{
  content: "";
  position: absolute;
  left: 22px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.tl-item{
  position: relative;
  padding: 0 0 34px 60px;
}
.tl-item:last-child{ padding-bottom: 0; }
.tl-item .tl-dot{
  position: absolute;
  left: 12px; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--brass-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: .65rem; color: var(--brass-dark);
}
.tl-item .tl-period{
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3em;
  display: block;
}
.tl-item h3{ font-size: 1.15rem; margin-bottom: .25em; }
.tl-item .tl-place{ color: var(--slate); font-size: .92rem; margin-bottom: .4em; }

/* ==========================================================================
   KEAHLIAN — skill bars & soft skill chips
   ========================================================================== */
.skill-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px){ .skill-cols{ grid-template-columns: 1fr; } }

.skill-row{ margin-bottom: 20px; }
.skill-row .label-line{
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: .8rem;
  margin-bottom: 6px;
}
.skill-row .label-line span:last-child{ color: var(--slate); }
.skill-track{
  height: 10px;
  border-radius: 999px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}
.skill-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brass-dark), var(--brass));
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}

.soft-skill-list .chip{ margin: 0 8px 8px 0; }

/* ==========================================================================
   PENGALAMAN — kartu proyek
   ========================================================================== */
.project-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.project-card{
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.project-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -20px rgba(22,33,62,.45);
  border-color: var(--brass-dark);
}
.project-card .tag{
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: .6em;
}
.project-card h3{ font-size: 1.1rem; }
.project-card .period{
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--slate);
  margin-top: 10px;
  display: block;
}

/* ==========================================================================
   KONTAK — form & sosial
   ========================================================================== */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}
@media (max-width: 760px){ .contact-grid{ grid-template-columns: 1fr; } }

.contact-list{ margin-top: 18px; }
.contact-list li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: .88rem;
}
.contact-list li:last-child{ border-bottom: none; }
.contact-list .ico{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.copy-btn{
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: .7rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--slate);
}
.copy-btn:hover{ border-color: var(--brass-dark); color: var(--ink); }

.field{ margin-bottom: 18px; }
.field label{
  display: block;
  font-family: var(--f-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--slate);
  margin-bottom: 6px;
}
.field input,
.field textarea{
  width: 100%;
  font-family: var(--f-body);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.field input:focus,
.field textarea:focus{ border-color: var(--brass-dark); }
.field .err{
  color: var(--red);
  font-family: var(--f-mono);
  font-size: .72rem;
  margin-top: 5px;
  min-height: 1em;
}
.form-msg{
  font-family: var(--f-mono);
  font-size: .85rem;
  padding: 12px 14px;
  border-radius: 8px;
  margin-top: 10px;
  display: none;
}
.form-msg.show{ display: block; }
.form-msg.ok{ background: #E6EFE6; color: #2C6B3F; border: 1px solid #b7d6bb; }

/* reveal on scroll */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }
