:root {
  /* dinding galeri + warna matcha khas Finix */
  --wall: #eef1ec;
  --mat: #fbfcfa;
  --ink: #1c211d;
  --muted: #5b655d;
  --matcha: #c2d8c4;
  --matcha-dark: #8aaf8e;
  --forest: #1f2a22;
  --line: rgba(28, 33, 29, 0.16);

  --serif: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(5rem, 16vw, 12rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.4rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { padding: 0; margin: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

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

#beranda, #project, #about, #showcase, #contact { scroll-margin-top: 70px; }

a:focus-visible, .btn:focus-visible, .hamburger:focus-visible {
  outline: 3px solid var(--matcha-dark);
  outline-offset: 3px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 241, 236, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
}

.logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  text-decoration: none;
  z-index: 4;
}

.menu-toggle { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
  cursor: pointer;
  z-index: 4;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease-out;
}

.nav-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 var(--gutter);
  list-style: none;
  background: var(--wall);
  z-index: 3;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.4s ease, visibility 0.4s;
}

.nav-item a {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--ink);
  text-decoration: none;
}

.menu-toggle:checked ~ .nav-menu { transform: none; visibility: visible; }
.menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle:checked ~ .hamburger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ===== FRAME + PLAQUE (inti tema galeri) ===== */
.art { margin: 0; }

.frame {
  background: var(--mat);
  padding: clamp(10px, 1.6vw, 20px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(28, 33, 29, 0.45);
}

.frame img { aspect-ratio: 16/9; object-fit: cover; }

.frame.empty {
  aspect-ratio: 16/9;
  background: transparent;
  border: 1px dashed var(--matcha-dark);
  box-shadow: none;
}

.plaque {
  margin-top: 1.1rem;
  max-width: 34ch;
  padding-left: 0.9rem;
  border-left: 2px solid var(--matcha-dark);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.plaque strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.plaque span { display: block; margin-top: 0.4rem; }

/* ===== HERO (poster imersif) ===== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  min-height: calc(100svh - 62px);
  padding: 2.5rem var(--gutter) 3rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 24px rgba(40, 70, 120, 0.45);
}

.sky { position: absolute; inset: 0; z-index: -2; background: linear-gradient(#d99a5b 0%, #f2cf98 20%, #a9c0d9 52%, #6f93c2 100%); }
.sky svg { width: 100%; height: 100%; display: block; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 25%, rgba(255, 240, 200, 0.4), transparent 60%);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(6rem, 26vw, 20rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: #2b1c14;
  text-shadow: none;
  animation: naik 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-sub { font-size: 0.9rem; color: #1d2a44; text-shadow: none; }

@keyframes melayang { from { transform: translateY(0); } to { transform: translateY(-14px); } }

.angel { position: relative; width: min(78%, 360px); animation: melayang 6s ease-in-out infinite alternate; }
.a-2 { width: min(52%, 220px); animation-duration: 8s; }

.halo {
  position: absolute;
  top: 19%; left: 58%;
  width: 11%; height: 5%;
  margin-left: -5.5%;
  border: 4px solid #ffd978;
  border-radius: 50%;
  box-shadow: 0 0 18px 4px rgba(255, 217, 120, 0.85);
}

.hero-cutout {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  animation: naik 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}

.hero-big {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 11vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-note { color: #1d2a44; text-shadow: 0 0 14px rgba(255, 255, 255, 0.6); max-width: 30ch; font-size: 0.88rem; line-height: 1.5; }
.hero-note strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }

@keyframes naik {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.btn {
  display: inline-block;
  font: 500 1rem var(--sans);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  text-shadow: none;
  transition: background 0.25s ease-out, color 0.25s ease-out;
}

.hero .btn { color: #fff; border-color: #fff; }
.hero .btn:hover { background: rgba(255, 255, 255, 0.2); }
.hero .btn-solid { background: #fff; color: var(--forest); }
.hero .btn-solid:hover { background: var(--matcha); }

/* ===== RUANGAN (Pameran & Koleksi) ===== */
.room {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) 0;
}

.room-head {
  display: grid;
  gap: 0.6rem;
  padding-top: 1.5rem;
  margin-bottom: 3rem;
  border-top: 1px solid var(--line);
}

.room-head h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.room-head p { color: var(--muted); max-width: 44ch; }

.wall { display: grid; gap: 3.5rem 2rem; }

/* ===== TENTANG ===== */
.statement {
  display: grid;
  gap: 3rem;
  max-width: 1280px;
  margin: clamp(4rem, 9vw, 8rem) auto 0;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  border-top: 1px solid var(--line);
}

.statement-art .frame img { aspect-ratio: 1/1; }

.statement-text h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.statement-text > p { max-width: 52ch; margin-bottom: 1rem; font-size: 1.08rem; }

.statement-text h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 800; letter-spacing: -0.03em;
  margin: 2.5rem 0 0.5rem;
}

.skills > div {
  display: grid;
  gap: 0.2rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.skills > div:last-child { border-bottom: 1px solid var(--line); }
.skills dt { font-weight: 700; }
.skills dd { color: var(--muted); max-width: 46ch; }

/* ===== FOOTER / KONTAK ===== */
.footer {
  background: var(--forest);
  color: var(--matcha);
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 1.5rem;
}

.foot-container {
  display: grid;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.foot-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1;
  color: var(--mat);
  margin-bottom: 1rem;
}

.foot-intro p { max-width: 40ch; }

.foot-links { display: flex; flex-direction: column; gap: 0.3rem; }

.foot-links a {
  width: fit-content;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--matcha);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease-out, color 0.25s ease-out;
}

.foot-links a:hover { color: var(--mat); border-color: var(--matcha-dark); }

.foot-bottom {
  max-width: 1280px;
  margin: 4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(194, 216, 196, 0.2);
  font-size: 0.85rem;
  color: rgba(194, 216, 196, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .hamburger { display: none; }

  .nav-menu {
    position: static;
    flex-direction: row;
    gap: 2.2rem;
    padding: 0;
    background: transparent;
    transform: none;
    visibility: visible;
  }

  .nav-item a { font-family: var(--sans); font-size: 0.98rem; font-weight: 500; }
  .nav-item a:hover { text-decoration: underline; text-decoration-color: var(--matcha-dark); text-underline-offset: 6px; }

  /* desktop: elemen ditumpuk dan berserakan kayak poster */
  .hero { display: block; padding: 0; text-align: left; }
  .hero h1 { position: absolute; top: 1%; left: 0; width: 100%; text-align: center; }
  .hero-sub { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); }
  .angel { position: absolute; z-index: 2; }
  .a-1 { top: 28%; left: 50%; width: clamp(300px, 36vw, 560px); margin-left: calc(clamp(300px, 36vw, 560px) / -2); }
  .a-2 { top: 8%; right: 9%; width: clamp(160px, 18vw, 280px); }
  .hero-big { position: absolute; bottom: 12%; left: 0; width: 100%; text-align: center; }
  .hero-note { position: absolute; }
  .note-l { left: 5%; bottom: 14%; }
  .note-r { right: 5%; top: 44%; text-align: right; }
  .hero-actions { position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); }

  /* lukisan digantung dengan ukuran dan posisi berbeda, kayak dinding galeri beneran */
  .wall { grid-template-columns: repeat(12, 1fr); }
  .work-1 { grid-column: 1 / 8; }
  .work-2 { grid-column: 8 / 13; margin-top: 7rem; }
  .work-3 { grid-column: 3 / 8; }

  .wall-two > .art:first-child { grid-column: 1 / 7; }
  .wall-two > .art:last-child { grid-column: 7 / 13; margin-top: 5rem; }

  .statement { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
  .statement-art { position: sticky; top: 100px; }

  .skills > div { grid-template-columns: 12rem 1fr; }

  .foot-container { grid-template-columns: 1.4fr 1fr; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero-cutout, .angel { animation: none; }
  * { transition: none !important; }
}
