/* ============================================================
   fiqhi.my.id — satu file CSS terpusat.
   Edit warna/ukuran cukup dari sini.
   ============================================================ */

/* ---------- Tema ---------- */
:root {
  --bg: #f6f5f2;
  --bg-2: #edeae4;
  --card: #ffffff;
  --text: #172333;
  --muted: #5c6a7a;
  --line: #d9d4ca;
  --accent: #3b82f6;
  --accent-deep: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --ok: #16a34a;
}

html[data-theme="dark"] {
  --bg: #12181f;
  --bg-2: #171f29;
  --card: #1a2330;
  --text: #e8ecf1;
  --muted: #9aa7b5;
  --line: #2a3542;
  --accent: #4d94ff;
  --accent-deep: #2f7bff;
  --accent-soft: rgba(77, 148, 255, 0.16);
  --ok: #34d399;
}

/* ---------- Dasar ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-top: 2.2rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--accent-deep); }

img { max-width: 100%; display: block; }

::selection { background: var(--accent-soft); }

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

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.muted { color: var(--muted); }

small, .small { font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand img { width: 30px; height: 30px; border-radius: 6px; }

.site-head nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-head nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-head nav a:hover { color: var(--text); }

.site-head nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.head-actions { display: flex; gap: 0.4rem; }

.icon-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Intro / landing ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: 2.6rem 0 1.4rem;
  align-items: start;
}

@media (min-width: 720px) {
  .intro { grid-template-columns: 2fr 1fr; }
}

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.lede { color: var(--muted); max-width: 46rem; }

.intro-photo {
  width: 100%;
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-left: auto;
}

.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }

.btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

/* ---------- Daftar "sedang dikerjakan" ---------- */
.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.now-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.now-list .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-top: 0.55rem;
}

/* ---------- Baris direktori ---------- */
.row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.9rem 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.row:first-of-type { border-top: 1px solid var(--line); }

.row strong { min-width: 6.5rem; }

.row .desc { color: var(--muted); font-size: 0.9rem; }

.row .arrow { margin-left: auto; color: var(--accent); }

.row:hover { background: var(--accent-soft); }

/* ---------- Proyek (details/summary) ---------- */
.proj {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  margin-bottom: 0.8rem;
}

.proj summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
  list-style: none;
}

.proj summary::-webkit-details-marker { display: none; }

.proj summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.15rem;
}

.proj[open] summary::before { content: "–"; }

.proj .cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
}

.proj h3 { margin: 0; font-size: 1rem; }

.proj .status {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--accent);
  white-space: nowrap;
}

.proj-body {
  padding: 0 1rem 1rem;
  border-top: 1px dashed var(--line);
}

.proj-body ul { margin: 0 0 1em; padding-left: 1.1rem; }

.proj-body li { margin-bottom: 0.35rem; }

.proj-body img {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0.4rem 0 0.8rem;
  max-height: 320px;
  width: auto;
}

.hasil {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0.8rem;
  background: var(--accent-soft);
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
}

.tools { font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; }

.opini {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Tentang ---------- */
.facts {
  border-top: 1px solid var(--line);
  margin: 1.4rem 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  border-left: 2px solid var(--line);
  padding: 0 0 1.3rem 1.1rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline .periode { font-size: 0.8rem; color: var(--muted); }

.timeline h3 { margin: 0.1rem 0 0.15rem; }

.timeline .tempat { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem; }

.timeline ul { margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 0.92rem; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.9rem;
}

.skill-grid > div {
  border: 1px solid var(--line);
  border-radius: 6px 6px 6px 2px;
  padding: 0.8rem 0.9rem;
  background: var(--card);
}

.skill-grid h3 {
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.skill-grid ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }

.skill-grid li { padding: 0.18rem 0; color: var(--muted); }

/* ---------- Kontak ---------- */
.contact-list { border-top: 1px solid var(--line); }

.contact-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list .label {
  min-width: 8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.socials { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

.socials a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
}

.socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- WA melayang ---------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #1faa53;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 170, 83, 0.35);
}

.wa-float:hover { background: #1b9648; color: #fff; }

/* ---------- Footer ---------- */
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- Animasi ---------- */

/* Elemen disembunyikan hanya kalau JS hidup,
   jadi tanpa JS situs tetap kebaca normal. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Transisi halus saat ganti tema */
body, .site-head, .proj, .skill-grid > div, .btn, .icon-btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Kartu proyek: hidup saat disentuh */
.proj { transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease; }

.proj:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.proj summary:hover { background: var(--accent-soft); }

.proj[open] .proj-body { animation: body-in 0.35s ease; }

@keyframes body-in {
  from { opacity: 0; transform: translateY(-5px); }
}

/* Tombol: angkat dikit */
.btn { transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }

.btn-primary:hover { box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35); }

/* Baris direktori: panah meluncur */
.row .arrow { transition: transform 0.25s ease; }

.row:hover .arrow { transform: translateX(5px); }

/* Logo: goyang kecil */
.brand img { transition: transform 0.25s ease; }

.brand:hover img { transform: rotate(-5deg) scale(1.08); }

/* Dot "sedang dikerjakan": denyut pelan */
.now-list .dot { animation: pulse 2.2s ease-out infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Timeline: dot membesar saat barisnya disentuh */
.timeline li::before { transition: transform 0.2s ease, background-color 0.2s ease; }

.timeline li:hover::before { transform: scale(1.6); background: var(--accent-deep); }

/* WA melayang: masuk dengan pop, lalu goyang pelan biar keliatan hidup */
.wa-float {
  animation:
    pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both,
    sway 3.2s ease-in-out 2s infinite;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.8); }
}

@keyframes sway {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

.wa-float:hover { box-shadow: 0 10px 24px rgba(31, 170, 83, 0.45); }

/* Judul besar: kata per kata naik berurutan saat halaman kebuka */
html.js .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: word-in 0.55s ease forwards;
}

@keyframes word-in {
  to { opacity: 1; transform: none; }
}

/* Garis aksen di bawah h2: menggambar sendiri saat masuk layar */
main h2 { position: relative; padding-bottom: 0.4rem; }

html.js main h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease 0.15s;
}

html.js main h2.in::after { transform: scaleX(1); }

/* Foto: miring halus saat disentuh */
.intro-photo { transition: transform 0.4s ease; }

.intro-photo:hover { transform: rotate(1.5deg) scale(1.02); }

/* ---------- Background hidup ---------- */

/* Lapisan 0: Silk — background WebGL flowy (diisi oleh main.js,
   shader diadaptasi dari reactbits.dev) */
#silk {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

/* Lapisan 2: percikan kursor (diisi oleh main.js) */
#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

html[data-theme="dark"] #bg { opacity: 0.55; }

/* ---------- Scroll progress ---------- */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 30;
}

/* ---------- Ticker keahlian ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}

.ticker-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  padding: 0.6rem 0;
  animation: tick 30s linear infinite;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track b { color: var(--accent); font-weight: 600; }

@keyframes tick {
  to { transform: translateX(-50%); }
}

/* ---------- Angka count-up ---------- */
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
  padding: 0;
}

.stats li {
  background: var(--card);
  padding: 0.9rem 1rem;
}

.stats .num {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1.1;
}

.stats li > span:last-child { font-size: 0.8rem; color: var(--muted); }

/* Kartu proyek: setelah reveal, transform jadi responsif buat efek tilt */
html.js .reveal.in {
  transition:
    opacity 0.3s ease,
    transform 0.15s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.3s ease;
}

/* ---------- Level-up: desain terasa dirancang ---------- */

/* Kursor kustom: dot presisi + ring yang menyusul */
html.custom-cursor,
html.custom-cursor a,
html.custom-cursor button,
html.custom-cursor summary { cursor: none; }

#cur-dot, #cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99;
  border-radius: 50%;
}

#cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }

#cur-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  transition: width 0.2s, height 0.2s, margin 0.2s, opacity 0.2s;
}

#cur-ring.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: 0.9; }

/* Transisi halaman: tirai biru */
#wipe {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 80;
  transform: scaleY(1);
}

#wipe.out {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1) 0.05s;
}

/* Typewriter di bawah judul */
#type-line { min-height: 1.6em; margin-top: 0.4rem; }

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Kata raksasa outline berjalan di latar beranda */
.bigword {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.bigword span {
  display: inline-block;
  white-space: nowrap;
  padding-right: 2rem;
  font-family: Georgia, serif;
  font-size: clamp(4rem, 13vw, 9rem);
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  animation: slide-word 45s linear infinite;
}

@keyframes slide-word { to { transform: translateX(-50%); } }

/* Foto "bernafas" pelan */
.intro-photo { animation: breathe 14s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* Sweep cahaya saat kartu proyek disentuh */
.proj { position: relative; overflow: hidden; }

.proj::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.proj:hover::after { left: 130%; }

/* Nav: underline menyapu saat hover */
.site-head nav a {
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}

.site-head nav a:hover { background-size: 100% 2px; }

/* ---------- React-Bits vibes, versi vanilla ---------- */

/* Spotlight: cahaya ngikutin kursor di dalam kartu */
.proj {
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 65%),
    var(--card);
}

/* ShinyText: kicker berkilau jalan */
.kicker {
  background: linear-gradient(110deg, var(--accent) 35%, #dbeafe 50%, var(--accent) 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine { to { background-position: -220% 0; } }

/* StarBorder: glow berputar di tombol utama */
.btn-primary { position: relative; isolation: isolate; }

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  z-index: -1;
  background: conic-gradient(from var(--a, 0deg), transparent 0 72%, #bfdbfe 80%, #ffffff 86%, transparent 94%);
  filter: blur(7px);
  opacity: 0.8;
  animation: spin-a 2.8s linear infinite;
}

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@keyframes spin-a { to { --a: 360deg; } }

/* BlurText: kata-kata h2 muncul dari blur */
html.js h2 .bw {
  display: inline-block;
  filter: blur(7px);
  opacity: 0.15;
  transform: translateY(8px);
  transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

html.js h2.reveal.in .bw { filter: blur(0); opacity: 1; transform: none; }

/* StackedCards: kartu kerja menumpuk saat discroll */
.stack .proj { position: sticky; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1); }

.stack .proj:nth-of-type(1) { top: 76px; }
.stack .proj:nth-of-type(2) { top: 92px; }
.stack .proj:nth-of-type(3) { top: 108px; }
.stack .proj:nth-of-type(4) { top: 124px; }
.stack .proj:nth-of-type(5) { top: 140px; }

/* Bingkai foto offset ala poster */
.photo-frame { position: relative; }

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
}

.photo-frame .intro-photo { position: relative; }

/* Nama outline di footer — cukup kecil biar muat, nggak kepotong */
.footer-big {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 5.5vw, 3.2rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.85;
  margin-bottom: 1rem;
}

/* Judul lebih besar biar hierarkinya kerasa */
h1 { font-size: clamp(1.9rem, 5.2vw, 3.2rem); text-wrap: balance; }

/* ---------- Ikon Lucide & fix foto ---------- */

.ic {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: -3px;
}

.label { display: inline-flex; align-items: center; gap: 0.45rem; }

.label .ic { color: var(--accent); }

.socials a { display: inline-flex; align-items: center; gap: 0.5rem; }

.wa-float { display: inline-flex; align-items: center; gap: 0.5rem; }

.skill-grid h3 { display: flex; align-items: center; gap: 0.5rem; }

.skill-grid h3 .ic { color: var(--accent); width: 15px; height: 15px; }

/* Foto: tinggi mengikuti rasio, BUKAN atribut height —
   ini fix bug foto menjulang 1113px */
.intro-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  margin-left: auto;
}

/* ---------- Util ---------- */
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

main { padding-bottom: 1rem; position: relative; }

/* Pengunjung yang memilih reduced-motion: semua animasi mati, konten langsung kebaca */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
