/* ============================================================
   HUMANOIRE 2 — Hero Section
   Aset dipisah jadi layer: frame + lampu kiri/kanan + cermin + gargoyle,
   masing-masing dianimasikan halus.
   ============================================================ */

/* ---- FONTS: Caslon Antique ---- */
@font-face {
  font-family: "Caslon Antique";
  src: url("fonts/CaslonAntique.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caslon Antique";
  src: url("fonts/CaslonAntique-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caslon Antique";
  src: url("fonts/CaslonAntique-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caslon Antique";
  src: url("fonts/CaslonAntique-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---- RESET ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;   /* teks tajam, no patah pas scroll */
  -moz-osx-font-smoothing: grayscale;
}

html {
  min-height: 100%;
  background: #fafafa;
  overscroll-behavior: none; /* matiin rubber-band -> rail fixed gak nyembul pas mentok */
  text-rendering: optimizeLegibility;
}

/* ===== LENIS smooth scroll (momentum) — CSS resmi ===== */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ===== TEKSTUR KANVAS PUTIH (off-white #fafafa + grain + fiber halus) =====
   CSS murni (SVG feTurbulence), fixed di belakang konten. BUKAN di ornamen border. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: multiply;   /* alas terang -> grain tampil sbg bintik gelap halus */
}
/* grain halus */
body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.58;
}
/* fiber halus (turbulence diregangin -> serat samar) */
body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  opacity: 0.16;
}
/* body TANPA min-height: tingginya = tinggi KONTEN, biar frame (absolute)
   gak ke-stretch ngikut layar pas konten lebih pendek dari viewport */

body {
  font-family: "Caslon Antique", "Times New Roman", serif;
  background: transparent; /* biar grain body::before (z-1) gak ketutup; alas #fafafa di html */
  color: #181410;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* body TANPA min-height -> tinggi = KONTEN; frame samping/bawah (absolute)
     nempel pas ke konten, gak ada ruang kosong/nyembul */
}

/* ============================================================
   HERO — kotak rasio 16:9, semua layer 100% × 100% jadi sejajar
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  max-width: calc(100vh * 16 / 9);
  margin: auto;
  background: transparent;   /* grain kanvas keliatan */
}

/* ---- LAYER DEKORATIF ---- */
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* kanvas 16:9 = kotak 16:9, jadi tidak distorsi */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.layer--frame {
  z-index: 1;
}

/* Lampu: goyang lebih lebar & terasa, ritme agak kaku (linear + stop tak rata) */
.layer--lamp-left {
  z-index: 2;
  transform-origin: 13.3% 15%;
  animation: swing-left 3.2s linear infinite;
}
.layer--lamp-right {
  z-index: 2;
  transform-origin: 85% 22%;
  animation: swing-right 3.6s linear infinite;
}

/* Cermin: naik-turun halus */
.layer--mirror {
  z-index: 2;
  animation: float-y 5.5s ease-in-out infinite alternate;
}

/* ---- KONTEN TEKS ---- */
.hero__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  width: 92%;
  text-align: center;
  z-index: 3;
}

.hero__title {
  font-weight: 400;
  font-size: clamp(2.4rem, 7.6vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: 1px;
  color: #1c1813;
  margin-bottom: 0.6em;
}

/* Huruf "o" di Studios jadi tempat dudukan gargoyle */
.title-o {
  position: relative;
  display: inline-block;
}
.gargoyle-on-o {
  position: absolute;
  left: 50%;
  top: -0.4em;
  width: 0.95em;
  height: auto;
  transform: translateX(-50%);
  transform-origin: bottom center;
  pointer-events: none;
  user-select: none;
  animation: gargoyle-move 6s ease-in-out infinite;   /* lebih lembut & pelan */
}

.hero__tagline {
  font-weight: 400;
  font-size: clamp(0.85rem, 1.7vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: #221d17;
  margin-bottom: 2.3em;
}

/* ---- TOMBOL ---- */
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(220px, 23vw, 360px);
  aspect-ratio: 469 / 104;
  font-family: inherit;
  font-size: clamp(0.85rem, 1.35vw, 1.4rem);
  letter-spacing: 1px;
  color: #f3f0e9;
  text-decoration: none;
  background: url("assets/button-cropped.png") center / 100% 100% no-repeat;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.hero__cta:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.12);
}
.hero__cta:active {
  transform: translateY(0) scale(0.99);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
/* Ayunan lebar & agak kaku: linear + titik balik tak rata = terasa "goyang" */
@keyframes swing-left {
  0% {
    transform: rotate(-6deg);
  }
  24% {
    transform: rotate(5deg);
  }
  42% {
    transform: rotate(-1.5deg);
  }
  64% {
    transform: rotate(6deg);
  }
  82% {
    transform: rotate(-3.5deg);
  }
  100% {
    transform: rotate(-6deg);
  }
}
@keyframes swing-right {
  0% {
    transform: rotate(6deg);
  }
  24% {
    transform: rotate(-5deg);
  }
  42% {
    transform: rotate(1.5deg);
  }
  64% {
    transform: rotate(-6deg);
  }
  82% {
    transform: rotate(3.5deg);
  }
  100% {
    transform: rotate(6deg);
  }
}
@keyframes float-y {
  from {
    transform: translateY(-9px);
  }
  to {
    transform: translateY(9px);
  }
}
/* Gargoyle: bobbing kaku (tetap center di huruf O via translateX -50%) */
@keyframes gargoyle-move {
  0%   { transform: translateX(-50%) translateY(0) rotate(-1.6deg); }
  50%  { transform: translateX(-50%) translateY(-5px) rotate(1.6deg); }
  100% { transform: translateX(-50%) translateY(0) rotate(-1.6deg); }
}

/* ============================================================
   SECTION 2 & 3 — vibe gotik senapas hero (hitam-putih, Caslon)
   ============================================================ */
.section {
  position: relative;
  background: transparent;   /* grain kanvas keliatan */
  min-height: 100vh;          /* tiap section pas ~1 layar */
  display: flex;
  flex-direction: column;
  justify-content: center;    /* konten ketengah vertikal */
  padding: clamp(4rem, 9vh, 7rem) 1.5rem;
  overflow: hidden;
}
/* craft = section terakhir: kecilin padding bawah, footer yg isi ruang bawah */
.craft { padding-bottom: clamp(2rem, 5vh, 3.5rem); }

.section-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

/* --- elemen umum --- */
.eyebrow {
  text-align: center;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  color: #7a7064;
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: 1px;
  color: #1c1813;
}

/* divider garis dengan ornamen tengah */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 440px;
  margin: 1.6rem auto 2.4rem;
}
.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to var(--dir, right),
    transparent,
    #1c1813 35%,
    #1c1813 65%,
    transparent
  );
}
.divider__mark {
  font-size: 1.1rem;
  line-height: 1;
  color: #1c1813;
}

/* panel berbingkai dobel (echo bingkai hero) */
.orn-panel {
  position: relative;
  border: 1.5px solid #1c1813;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4.5rem)
    clamp(3rem, 6vw, 5rem);
}
.orn-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(28, 24, 19, 0.45);
  pointer-events: none;
}

/* ---- SECTION 2: ABOUT ---- */
.about__crest {
  display: block;
  width: clamp(70px, 8vw, 110px);
  height: auto;
  margin: -1rem auto 1.4rem;
  animation: float-y 5.5s ease-in-out infinite alternate;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.prose p {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.75;
  color: #2a241d;
}
.prose p + p {
  margin-top: 1.3rem;
}
.prose em {
  font-style: italic;
}
.dropcap {
  float: left;
  font-size: 3.4em;
  line-height: 0.72;
  padding: 0.05em 0.12em 0 0;
  color: #1c1813;
}

/* lampu menggantung di pojok atas section about */
.hang-lamp {
  position: absolute;
  top: 0;
  width: clamp(40px, 5vw, 72px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}
.hang-lamp--l {
  left: 7%;
  transform-origin: top center;
  animation: swing-left 3.4s linear infinite;
}
.hang-lamp--r {
  right: 7%;
  transform-origin: top center;
  animation: swing-right 3.8s linear infinite;
}

/* ---- SECTION 3: CRAFT ---- */
.craft__title {
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.craft__gargoyle {
  position: absolute;
  top: -0.7em;
  right: -0.9em;
  width: 1.5em;
  height: auto;
  pointer-events: none;
  transform-origin: bottom center;
  animation: gargoyle-perch 4.5s linear infinite;
}

.craft__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1rem 0 0;
}
.craft__item {
  padding: 1.8rem 1.8rem;
  text-align: center;
}
.craft__item + .craft__item {
  border-left: 1px solid rgba(28, 24, 19, 0.22);
}
.craft__num {
  display: block;
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #9a8f80;
  margin-bottom: 0.5rem;
}
.craft__item h3 {
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  letter-spacing: 0.5px;
  color: #1c1813;
  margin-bottom: 0.7rem;
}
.craft__item p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: #3a342c;
}

.craft__cta {
  text-align: center;
  margin-top: 3rem;
}

/* responsive: grid jadi 1 kolom, divider vertikal jadi horizontal */
@media (max-width: 720px) {
  .craft__grid {
    grid-template-columns: 1fr;
  }
  .craft__item + .craft__item {
    border-left: none;
    border-top: 1px solid rgba(28, 24, 19, 0.22);
  }
  .hang-lamp {
    display: none;
  }
}

@keyframes gargoyle-perch {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-4px) rotate(3deg);
  }
  50% {
    transform: translateY(-1px) rotate(-1.5deg);
  }
  75% {
    transform: translateY(-5px) rotate(3.5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Hormati preferensi reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .hn-lamp,
  .hn-menu__gar img,
  .layer--mirror,
  .gargoyle-on-o,
  .about__crest,
  .craft__gargoyle {
    animation: none;
  }
}

/* ============================================================
   BINGKAI GOTIK GLOBAL  (potongan dari fullframe.png)
   - atas (2 arch) + garis atas + rail kiri/kanan = FIXED → tampil
     terus di section 1-2, BAWAH KEBUKA.
   - sudut bawah + garis bawah = di ujung dokumen → KETUTUP pas
     scroll sampai section 3.
   Semua dimensi diturunkan dari --hn-cw (1 master scale) supaya
   garis tepi & sudut presisi nyambung di tiap titik temu.
   Native: arch atas 340x520 · sudut bawah 140x140 · garis tebal 50px
   ============================================================ */
:root {
  --hn-cw:  clamp(120px, 16vw, 340px);            /* lebar 2 arch atas   */
  --hn-cbw: calc(var(--hn-cw) * 140 / 340);       /* lebar sudut bawah   */
  --hn-et:  calc(var(--hn-cw) * 50 / 340);        /* tebal semua garis   */
  --hn-chh: calc(var(--hn-cw) * 520 / 340);       /* tinggi arch atas    */
  --hn-mt:  clamp(16px, 2.4vh, 30px);             /* jarak frame dari atas (ruang tombol nav) */
}

/* FRAME ATAS+SISI = FIXED: arch+garis atas+rail nempel JADI SATU, konsisten di
   tiap section (spt SS5) & ngikut scroll. Rail 100vh (bawah kebuka).
   inset top = --hn-mt -> frame turun dikit, kasih ruang buat tombol CONTENTS di garis atas */
/* blok putih DI ATAS frame (di luar frame atas) -> konten yg discroll ketutup
   sebelum nyembul di atas garis frame. fixed, di bawah frame & nav, di atas konten. */
html::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(var(--hn-mt) + var(--hn-et) * 1.6);
  /* BLUR MURNI (tanpa tint putih) -> konten yg masuk ke area atas jadi blur halus,
     TAPI warna/tekstur grain tetap sama (gak jadi blok beda warna) */
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* fade halus ke bawah (feathered, kaya drop-shadow) -> transisi blur lembut, no garis batas */
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
  z-index: 898; pointer-events: none;
}

.hn-frame {
  position: fixed; inset: var(--hn-mt) 0 0 0;
  z-index: 900; pointer-events: none;
}

/* LAMPU GANTUNG nempel di frame fixed -> nggantung di dalam arch atas, konsisten
   tiap section. Ukuran & posisi diturunkan dari --hn-cw/--hn-chh biar nge-track arch.
   (arch = sibling SETELAH lampu di HTML -> arch nutup pangkal rantai) */
.hn-lamp {
  position: absolute;   /* relatif ke .hn-frame -> ikut turun bareng frame (--hn-mt) */
  height: auto;
  z-index: 900;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* top-center rantai disambungin ke UJUNG FINIAL ATAS arch (0.647cw, 0.446chh),
   top sedikit di atas finial -> overlap, arch nutup pangkal rantai = nyambung */
.hn-lamp--l {
  width: calc(var(--hn-cw) * 0.30);
  top: calc(var(--hn-chh) * 0.226);   /* rantai kiri mulai 33% tinggi aset -> top lebih naik */
  left: calc(var(--hn-cw) * 0.51);
  transform-origin: top center;
  animation: lamp-sway 6.6s ease-in-out infinite alternate;
}
.hn-lamp--r {
  width: calc(var(--hn-cw) * 0.255);
  top: calc(var(--hn-chh) * 0.395);   /* rantai kanan mulai 5% tinggi aset */
  right: calc(var(--hn-cw) * 0.51);
  transform-origin: top center;
  animation: lamp-sway 7.6s ease-in-out infinite alternate;
  animation-delay: -2.3s;             /* biar gak sinkron sama yg kiri */
}
/* ayunan halus & pelan (pendulum): pelan di ujung, cepat di tengah */
@keyframes lamp-sway {
  from { transform: rotate(-3.4deg); }
  to   { transform: rotate(3.4deg); }
}

/* ===== NAV: tombol CONTENTS (aset tombol-navbar.png), di TENGAH garis frame atas ===== */
.hn-nav {
  position: fixed;
  top: calc(var(--hn-mt) + var(--hn-et) / 2);   /* center pas di garis atas */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(170px, 18vw, 270px);
  aspect-ratio: 827 / 230;
  background: url("assets/tombol-navbar.png") center / 100% 100% no-repeat;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.hn-nav__txt {
  font-family: "Caslon Antique", "Times New Roman", serif;
  font-weight: 700;                              /* TEBAL */
  font-size: clamp(0.85rem, 1.05vw, 1.15rem);    /* lebih GEDE */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f3f0e9;                                /* cream (di atas tombol hitam) */
  line-height: 1;
  white-space: nowrap;
  padding-left: 0.2em;                           /* kompensasi letter-spacing */
}
.hn-nav:hover { transform: translate(-50%, -50%) translateY(-1px) scale(1.04); filter: brightness(1.12); }
.hn-nav:active { transform: translate(-50%, -50%) scale(0.98); }

/* tombol pas overlay kebuka: teks jadi CLOSE + invert (pill terang di bg hitam) */
.hn-nav__txt--close { display: none; }
body.menu-open .hn-nav__txt--menu { display: none; }
body.menu-open .hn-nav__txt--close { display: inline; }
body.menu-open .hn-nav { filter: invert(1); }

/* ============================================================
   OVERLAY MENU "CONTENTS": turun dari atas nutup semua, BG HITAM,
   frame + teks PUTIH (kebalik dari main site). Frame FULL (4 sisi).
   ============================================================ */
.hn-menu {
  position: fixed;
  inset: 0;
  z-index: 940;                         /* di bawah tombol nav (950), di atas frame utama */
  background: #14110d;                  /* hitam (kebalik bg putih) */
  transform: translateY(-100%);         /* sembunyi di atas viewport */
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);  /* buka/tutup smooth */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.menu-open .hn-menu { transform: translateY(0); pointer-events: auto; }
body.menu-open { overflow: hidden; }    /* kunci scroll di belakang overlay */

/* ===== TRANSISI ANTAR-PAGE: cover hitam ke-set SEBELUM body render (via inline
   <head> script -> html.hn-cover), lalu slide-up reveal di page baru. No flash, no jeda. */
html.hn-cover .hn-menu { transform: translateY(0); transition: none; }
html.hn-cover.hn-reveal .hn-menu {
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  transform: translateY(-100%);
}

/* frame FULL putih: invert aset gelap -> putih, di bg hitam jadi keliatan */
.hn-menu__frame {
  position: absolute;
  inset: var(--hn-mt) 0 var(--hn-mt) 0;
  filter: invert(1);
  pointer-events: none;
}
/* rail overlay: dari bawah arch sampe atas sudut bawah (nutup penuh) */
.hn-menu .hn-left,
.hn-menu .hn-right { bottom: var(--hn-cbw); }

/* daftar menu — gothic gede, di tengah */
.hn-menu__list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(0.05rem, 0.5vh, 0.45rem);
  z-index: 1;
}
.hn-menu__list a {
  font-family: "Caslon Antique", "Times New Roman", serif;
  font-size: clamp(2rem, 5.4vw, 5rem);
  line-height: 1.12;
  letter-spacing: 1px;
  color: #6f6a60;                       /* redup default (semua sama) */
  text-decoration: none;
  display: inline-block;
  /* stagger muncul pas overlay kebuka; warna instan pas hover */
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.25s ease,
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hn-menu__list a:hover { color: #f3f0e9; }   /* SOLID cuma pas cursor di atasnya */
body.menu-open .hn-menu__list a { opacity: 1; transform: translateY(0); }
/* stagger berurutan (opacity+transform delay; warna 0s biar hover responsif) */
.hn-menu__list li:nth-child(1) a { transition-delay: 0s, 0.14s, 0.14s; }
.hn-menu__list li:nth-child(2) a { transition-delay: 0s, 0.21s, 0.21s; }
.hn-menu__list li:nth-child(3) a { transition-delay: 0s, 0.28s, 0.28s; }
.hn-menu__list li:nth-child(4) a { transition-delay: 0s, 0.35s, 0.35s; }
.hn-menu__list li:nth-child(5) a { transition-delay: 0s, 0.42s, 0.42s; }
.hn-menu__list li:nth-child(6) a { transition-delay: 0s, 0.49s, 0.49s; }

/* teks visit bawah */
.hn-menu__visit {
  position: absolute;
  bottom: calc(var(--hn-mt) + var(--hn-cbw) * 0.45);
  left: 0; right: 0;
  text-align: center;
  font-size: clamp(0.6rem, 0.8vw, 0.8rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8c8678;
  z-index: 1;
}

/* GARGOYLE (iblis) kiri-kanan: PUTIH (invert), muncul slide dari sisi, ayun halus.
   wrapper = slide-in (translateX) ; img = hadap + ayun (translateY) -> no konflik transform */
.hn-menu__gar {
  position: absolute;
  top: 50%;
  width: clamp(140px, 14vw, 270px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.hn-menu__gar img { display: block; width: 100%; height: auto; filter: invert(1); }
/* geser lebih KE TENGAH (ke ruang hitam deket teks, gak nabrak tepi) */
.hn-menu__gar--l { left: clamp(70px, 19vw, 400px); transform: translate(-175%, -50%); }
.hn-menu__gar--r { right: clamp(70px, 19vw, 400px); transform: translate(175%, -50%); }
.hn-menu__gar--r img { transform: scaleX(-1); }      /* hadap kanan (mirror) */
body.menu-open .hn-menu__gar { transition-delay: 0.18s; }   /* muncul setelah panel turun */
body.menu-open .hn-menu__gar--l,
body.menu-open .hn-menu__gar--r { opacity: 1; transform: translate(0, -50%); }

/* NUTUP: gargoyle keluar ke sisi (kiri->kiri, kanan->kanan), panel tetap nutup (no jeda page lama) */
body.menu-leaving .hn-menu__gar { transition: transform 0.5s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.45s ease; transition-delay: 0s; }
body.menu-leaving .hn-menu__gar--l { opacity: 0; transform: translate(-175%, -50%); }
body.menu-leaving .hn-menu__gar--r { opacity: 0; transform: translate(175%, -50%); }
body.menu-leaving .hn-menu__list a { opacity: 0; transform: translateY(14px); transition: opacity 0.3s ease, transform 0.3s ease; transition-delay: 0s; }
/* ayun halus pas udah kebuka */
body.menu-open .hn-menu__gar--l img { animation: gar-float 5.5s ease-in-out infinite alternate; }
body.menu-open .hn-menu__gar--r img { animation: gar-float-r 6.2s ease-in-out infinite alternate; }
@keyframes gar-float   { from { transform: translateY(-9px); }            to { transform: translateY(9px); } }
@keyframes gar-float-r { from { transform: scaleX(-1) translateY(-9px); } to { transform: scaleX(-1) translateY(9px); } }

/* FOOTER (in-flow, di ujung dokumen) = cuma FRAME BAWAH (2 sudut + garis bawah).
   - z DI ATAS frame fixed -> sudut/garis bawah nutup ujung rail fixed
   - tinggi = setinggi sudut bawah doang (no ruang putih ekstra)
   - GAK ada rail sendiri & GAK ada bg putih -> rail fixed turun lurus 1 rope
     sampe ketemu sudut ini, jadi no junction / no nyembul. */
.hn-footer {
  position: relative;
  /* tinggi = sudut + margin bawah (--hn-mt). bg putih nutup rail SAMPE dasar (no nyembul),
     tapi garis+sudut bawah dinaikin --hn-mt (frame bawah naik, simetris sama atas) */
  height: calc(var(--hn-cbw) * 147 / 140 + var(--hn-mt));
  background: #fafafa;          /* opaque -> nutup rail (no nyembul) */
  z-index: 901; pointer-events: none;
}
/* grain + fiber IDENTIK sama body::before/::after -> footer nyatu sama bg, no blok */
.hn-footer::before,
.hn-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
}
.hn-footer::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='nf2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23nf2)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.58;
}
.hn-footer::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='ff2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23ff2)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.16;
}
/* frame bawah (garis + 2 sudut) dinaikin --hn-mt dari dasar; rail di bawahnya tetap ke-mask putih */
.hn-footer .hn-bottom { bottom: var(--hn-mt); z-index: 1; }
.hn-footer .hn-bl,
.hn-footer .hn-br { bottom: var(--hn-mt); }

/* --- sudut --- */
.hn-corner {
  position: absolute; height: auto; display: block;
  user-select: none; -webkit-user-drag: none;
}
.hn-tl { top: 0; left: 0;  width: var(--hn-cw); }
.hn-tr { top: 0; right: 0; width: var(--hn-cw); }
/* pojok bawah kecil (cw-scaled -> pas/align sama rail), flush di tepi bawah */
.hn-bl { bottom: 0; left: 0;  width: var(--hn-cbw); z-index: 2; }
.hn-br { bottom: 0; right: 0; width: var(--hn-cbw); z-index: 2; }

/* --- garis tepi (di-STRETCH, no-seam; skala dikunci ke --hn-et) --- */
.hn-edge { position: absolute; }

.hn-top {
  top: 0; left: var(--hn-cw); right: var(--hn-cw); height: var(--hn-et);
  background: url("assets/frame/edge-top.png?v=5") center / 100% 100% no-repeat;
}
/* garis bawah NYAMBUNG sebelahan pojok (pola tali nyambung, no patah),
   inset pas ke lebar pojok (overlap 2px biar no gap), pojok nutup ujung */
.hn-bottom {
  bottom: 0; left: calc(var(--hn-cbw) - 2px); right: calc(var(--hn-cbw) - 2px);
  height: var(--hn-et);
  background: url("assets/frame/edge-bottom.png?v=8") left bottom / 100% 100% no-repeat;
}
/* rail FIXED: nempel sama arch (jadi satu, konsisten tiap section), turun LURUS 1 rope
   ke bawah viewport (bawah kebuka di section 1-2). Pas scroll mentok, sudut bawah (footer)
   naik nutup ujung rail -> frame nutup tanpa junction/nyembul. */
.hn-left {
  top: var(--hn-chh); bottom: 0; left: 0; width: var(--hn-et);
  background: url("assets/frame/edge-left.png?v=5") center / 100% 100% no-repeat;
}
.hn-right {
  top: var(--hn-chh); bottom: 0; right: 0; width: var(--hn-et);
  background: url("assets/frame/edge-right.png?v=5") center / 100% 100% no-repeat;
}

/* layar kecil: kecilin arch biar gak makan ruang */
@media (max-width: 720px) {
  :root { --hn-cw: clamp(86px, 26vw, 150px); }
}

/* ============================================================
   KOMPONEN BARU (section homepage + page baru) — reuse gaya gotik.
   Heading = Caslon (font hero). BG transparan biar grain keliatan.
   ============================================================ */

/* layout page: footer nempel ke bawah walau konten pendek (frame bawah tetap nutup) */
body.page-flow { min-height: 100vh; display: flex; flex-direction: column; }
body.page-flow .page { flex: 1 0 auto; }

/* judul besar di atas page baru (echo gaya hero title) */
.page-head {
  position: relative;
  text-align: center;
  padding: clamp(7rem, 16vh, 12rem) 1.5rem clamp(2rem, 5vh, 3.5rem);
}
.page-head__eyebrow {
  font-style: italic; text-transform: uppercase; letter-spacing: 4px;
  font-size: clamp(0.7rem, 1.1vw, 0.95rem); color: #7a7064; margin-bottom: 1rem;
}
.page-head__title {
  font-weight: 400; letter-spacing: 1px; color: #1c1813;
  font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 0.98;
}
.page-head__lead {
  max-width: 680px; margin: 1.6rem auto 0; color: #3a342c;
  font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.7;
}

/* lead text section (intro) */
.lead {
  max-width: 760px; margin: 1.4rem auto 0; text-align: center;
  font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1.6; color: #2a241d;
}
.section-title--xl { font-size: clamp(2.2rem, 7vw, 5.5rem); }

/* ---------- WORKS GRID ---------- */
.works-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 3vw, 2.8rem); margin-top: clamp(2rem, 4vh, 3rem);
}
.work-card { display: flex; flex-direction: column; }
.work-card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: transparent;   /* grain bg tembus -> margin sekitar video nyatu, no blok putih */
}
/* video ngisi frame (di bawah layer frame), inset pas ke lubang frame */
.work-card__video {
  position: absolute; top: 5%; left: 5%; width: 90%; height: 90%;
  border: 0; z-index: 1; background: #0c0b0a;
  border-radius: clamp(14px, 2vw, 30px);   /* pojok curve nyesuain frame */
}
/* frame ornate OVERLAY di ATAS video (natural, tanpa glow) */
.work-card__frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none; z-index: 2;
  user-select: none; -webkit-user-drag: none;
}
.work-card__meta {
  display: flex; align-items: baseline; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap;
}
.work-card__num { font-style: italic; color: #9a8f80; font-size: clamp(1rem,1.4vw,1.3rem); }
.work-card__title {
  font-weight: 400; color: #1c1813; letter-spacing: 0.5px;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.05; margin-right: auto;
}
.work-card__genre {
  display: block; width: 100%; margin-top: 0.2rem;
  text-transform: uppercase; letter-spacing: 2px; color: #7a7064;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
}

/* tombol kecil engraving (VIEW / SELECT) */
.btn-sm {
  display: inline-flex; align-items: center; gap: 0.5em;
  text-decoration: none; cursor: pointer; background: none; border: none;
  font-family: inherit; text-transform: uppercase; letter-spacing: 2px;
  font-size: clamp(0.72rem, 1vw, 0.85rem); color: #1c1813;
  border-bottom: 1px solid #1c1813; padding-bottom: 2px;
  transition: gap 0.2s ease, opacity 0.2s ease;
}
.btn-sm:hover { gap: 0.9em; opacity: 0.7; }

/* ---------- CAPABILITIES (THE CRAFT) ---------- */
.caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2rem, 4vh, 3rem);
}
.caps-col { padding: 0 clamp(1rem, 2.5vw, 2.2rem); }
.caps-col + .caps-col { border-left: 1px solid rgba(28,24,19,0.22); }
.caps-col h3 {
  text-align: center; font-weight: 400; letter-spacing: 1px; color: #1c1813;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem); margin-bottom: 1.3rem;
}
.caps-col ul { list-style: none; }
.caps-col li {
  text-align: center; color: #3a342c; line-height: 1.5;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem); padding: 0.42rem 0;
}
.caps-col li + li { border-top: 1px solid rgba(28,24,19,0.1); }

/* ---------- AESTHETICS CARDS ---------- */
.aes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(2rem, 4vh, 3rem);
}
.aes-card {
  position: relative; border: 1.5px solid #1c1813; padding: clamp(1.6rem, 2.5vw, 2.2rem);
  text-align: center;
}
.aes-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(28,24,19,0.35); pointer-events: none; }
.aes-card__num { display: block; font-style: italic; color: #9a8f80; font-size: clamp(1.2rem,2vw,1.7rem); margin-bottom: 0.4rem; }
.aes-card h3 {
  font-weight: 400; letter-spacing: 0.5px; color: #1c1813;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem); margin-bottom: 0.6rem;
}
.aes-card p { color: #3a342c; line-height: 1.55; font-size: clamp(0.9rem, 1.15vw, 1.05rem); }

/* ---------- CONSULT CTA ---------- */
.consult { text-align: center; }
.consult .lead { margin-bottom: 2.2rem; }

/* ---------- PRODUCTS ---------- */
.prod-list { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem,4vh,3rem); }
/* CARD = frame+lampu+sword+graveyard (layer 16:9 spt hero) + teks di atasnya.
   Ukuran teks diturunkan dari lebar card (cqw) biar selalu pas di tiap ukuran. */
.prod-card {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1920 / 1080;
  width: 100%; max-width: 1000px; margin: 0 auto;
}
.prod-card__layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.prod-card__title {
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
  width: 70%; text-align: center; margin: 0;
  font-family: "Caslon Antique", "Times New Roman", serif; font-weight: 400; color: #1c1813;
  font-size: 4.8cqw; line-height: 1.02; letter-spacing: 0.5px;
}
.prod-card__desc {
  position: absolute; top: 35.5%; left: 50%; transform: translateX(-50%);
  width: 55%; text-align: center; margin: 0;
  font-family: "Caslon Antique", "Times New Roman", serif; color: #2a241d;
  font-size: 2.3cqw; line-height: 1.35;
}
.prod-card__price {
  position: absolute; top: 61%; left: 50%; transform: translateX(-50%);
  text-align: center; margin: 0; color: #1c1813;
  font-family: "Caslon Antique", "Times New Roman", serif; font-size: 4.6cqw; line-height: 1;
}
.prod-card__order {
  position: absolute; top: 80%; left: 50%; transform: translateX(-50%);
  width: 34%; height: 10%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer; transition: filter 0.18s ease, transform 0.18s ease;
}
.prod-card__order span {
  font-family: "Caslon Antique", "Times New Roman", serif; color: #1c1813;
  font-size: 1.7cqw; letter-spacing: 0.5px; white-space: nowrap;
}
.prod-card__order:hover { transform: translateX(-50%) scale(1.04); filter: brightness(0.25); }

.prod-note {
  position: relative; border: 1px solid rgba(28,24,19,0.4); margin-top: clamp(2.4rem, 5vw, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem); max-width: 760px; margin-left: auto; margin-right: auto;
}
.prod-note h3 { text-align: center; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; font-size: clamp(1rem,1.5vw,1.25rem); color:#1c1813; margin-bottom: 1rem; }
.prod-note ul { list-style: none; }
.prod-note li { text-align: center; color: #3a342c; line-height: 1.55; padding: 0.3rem 0; font-size: clamp(0.95rem,1.2vw,1.05rem); }

/* ---------- SUGGESTION (detail produk) ---------- */
.sug-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); margin-top: clamp(2rem, 4vh, 3rem); }
.sug-card {
  position: relative; aspect-ratio: 16 / 9; container-type: inline-size;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform 0.25s ease;
}
.sug-card:hover { transform: translateY(-5px); }
.sug-card__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.sug-card__inner { position: relative; z-index: 1; text-align: center; padding: 0 13%; display: flex; flex-direction: column; gap: 0.12rem; max-height: 78%; }
.sug-card__num { font-style: italic; color: #9a8f80; font-size: 3.4cqw; }
.sug-card__title {
  font-family: "Caslon Antique", "Times New Roman", serif; color: #1c1813;
  font-size: 5.4cqw; line-height: 1.05; letter-spacing: 0.3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sug-card__desc {
  color: #3a342c; font-size: 3.1cqw; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.sug-card__price { font-style: italic; color: #1c1813; font-size: 3.7cqw; margin-top: 0.15rem; }
@media (max-width: 760px) {
  .sug-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---------- STUDIO ---------- */
.bigwords { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 2rem; margin: clamp(2.5rem,6vh,4.5rem) auto; max-width: 1000px; text-align: center; }
.bigwords span {
  font-weight: 400; letter-spacing: 1px; line-height: 0.95;
  font-size: clamp(2.4rem, 7vw, 6rem); color: #1c1813;
}
.bigwords span.dim { color: #b9b2a6; }
.clients { margin-top: clamp(2rem,4vh,3rem); }
.clients__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(28,24,19,0.18); border: 1px solid rgba(28,24,19,0.18);
}
@media (max-width: 600px) { .clients__grid { grid-template-columns: repeat(2, 1fr); } }
.clients__grid li {
  list-style: none; background: #fafafa; text-align: center; padding: 1.4rem 1rem;
  text-transform: uppercase; letter-spacing: 2px; color: #6f6a60; font-size: clamp(0.8rem,1.1vw,0.95rem);
}

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem,4vh,3rem); align-items: start; }
.field { margin-bottom: 1.6rem; }
.field label {
  display: block; text-transform: uppercase; letter-spacing: 2px;
  font-size: clamp(0.7rem,0.95vw,0.82rem); color: #7a7064; margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid #1c1813;
  font-family: inherit; font-size: clamp(1rem,1.3vw,1.15rem); color: #1c1813;
  padding: 0.5rem 0.2rem; outline: none; transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: #7a3030; }
.field textarea { resize: vertical; min-height: 110px; }
.contact-info { list-style: none; }
.contact-info li { margin-bottom: 1.6rem; }
.contact-info .lbl { display: block; text-transform: uppercase; letter-spacing: 2px; font-size: clamp(0.7rem,0.95vw,0.82rem); color: #7a7064; margin-bottom: 0.35rem; }
.contact-info a, .contact-info span { color: #1c1813; font-size: clamp(1rem,1.4vw,1.2rem); text-decoration: none; word-break: break-word; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- WORK DETAIL ---------- */
.work-detail { max-width: 960px; margin: 0 auto; }
.work-detail__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  margin: clamp(1.5rem,3vh,2.5rem) 0; background: transparent;
}
.work-detail__video {
  position: absolute; top: 5%; left: 5%; width: 90%; height: 90%; border: 0; z-index: 1; background: #0c0b0a;
  border-radius: clamp(16px, 2vw, 34px);
}
.work-detail__frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none; z-index: 2;
  user-select: none; -webkit-user-drag: none;
}
.work-detail__genre { text-align:center; text-transform: uppercase; letter-spacing: 3px; color: #7a7064; font-size: clamp(0.78rem,1.1vw,0.95rem); margin-top: 0.6rem; }

/* ---------- FOOTER COPYRIGHT (semua page) ---------- */
/* margin-bottom negatif -> tarik frame bawah naik, copy duduk DEKAT garis frame bawah */
.site-foot {
  position: relative; z-index: 902;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  margin-bottom: calc(-0.6 * var(--hn-cbw));
}
.site-foot__copy {
  text-align: center; padding: 0 1.5rem;
  text-transform: uppercase; letter-spacing: 2px; color: #7a7064;
  font-size: clamp(0.62rem, 0.85vw, 0.8rem);
}

/* responsive */
@media (max-width: 860px) {
  .caps-grid { grid-template-columns: 1fr; }
  .caps-col + .caps-col { border-left: none; border-top: 1px solid rgba(28,24,19,0.22); padding-top: 1.6rem; margin-top: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .bigwords { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; }
}
