/* =========================================================
   HERO: minimalis ala TURA, kata raksasa "C.M.N" berwarna solid (dulu "pesisir")
   warna huruf: ubah baris color di .s-hero__word (sekarang hitam); gaya C.M.N ada di bagian bawah file
   ========================================================= */

/* hero setinggi satu layar */
.s-hero { position: relative; display: block; min-height: 0; color: var(--ink); }
.s-hero__sticky {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 96px var(--pad) 72px;
}
.s-hero__center { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2.2vw, 28px); width: 100%; text-align: center; }

/* label kecil berspasi lebar di atas */
.s-hero__label {
  margin: 0; padding: 0; font-size: var(--fs-label); font-weight: 600; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(var(--hero-rgb, 21, 17, 11), .6); padding-left: .42em;  /* imbangi spasi huruf terakhir */
}

/* huruf raksasa "pesisir": mode Siang = hitam, mode Senja = hijau (warna diatur di js/main.js → updateBackground) */
.s-hero__word {
  display: flex; justify-content: center; margin: 0 0 .14em;   /* jarak bawah = ruang ekor huruf */
  font-weight: 700; letter-spacing: -0.07em; line-height: .8;
  color: rgb(var(--hero-word-rgb, 21, 17, 11));
  animation: wordIn 1.3s cubic-bezier(.2, .8, .2, 1) backwards;
}
.s-hero__word span { animation: none !important; opacity: 1 !important; transform: none !important; }
@keyframes wordIn {
  from { clip-path: inset(0 0 100% 0); transform: translateY(40px); }
  to { clip-path: inset(0 0 -10% 0); transform: none; }
}

/* subjudul kecil berspasi lebar di bawah */
.s-hero__sub {
  margin: 0; font-size: var(--fs-label); font-weight: 600; line-height: 2; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(var(--hero-rgb, 21, 17, 11), .58); padding-left: .32em;
  opacity: 0; animation: subIn 1s .8s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes subIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* pil "Baru di jurnal" di dasar layar */
.s-hero .hero-pill { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; max-width: calc(100% - 2 * var(--pad)); font-size: var(--fs-ui); }

@media (max-width: 860px) {
  .s-hero__sticky { padding: 88px var(--pad) 90px; }
  .s-hero__word { font-size: 28vw; }
  .s-hero .hero-pill { max-width: calc(100% - 2 * var(--pad) - 16px); }
  .s-hero__label { font-size: 11.5px; letter-spacing: .3em; }
  /* HP: baris dibiarkan turun sendiri & diseimbangkan, supaya huruf bisa lebih besar tanpa terpotong */
  .s-hero__sub { font-size: 11.5px; letter-spacing: .18em; line-height: 1.9; max-width: 30em; text-wrap: balance; }
  .s-hero__sub br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .s-hero__sub { opacity: 1; animation: none; }
}

/* warna awal sebelum skrip berjalan: Senja = hijau zaitun */
html:not([data-mode="siang"]) { --hero-word-rgb: 78, 91, 51; }

/* ---------- "C.M.N" (singkatan Cikal Maritim Nusantara) ----------
   Lebih kecil dari "pesisir" dulu agar ada ruang napas; titik dikecilkan & diberi jarak.
   Warna titik: Siang = hijau zaitun (huruf hitam); Senja = ikut warna teks hero
   (hitam → krem saat latar menggelap), karena di Senja hurufnya sendiri sudah hijau. */
.s-hero__word--cmn {
  font-size: clamp(80px, 19vw, 320px); align-items: baseline;
  padding-right: .07em;   /* imbangi spasi negatif setelah huruf terakhir agar benar-benar di tengah */
}
.s-hero__word--cmn .s-hero__dot { font-size: .72em; margin: 0 .045em; color: rgb(78, 91, 51); }
html:not([data-mode="siang"]) .s-hero__word--cmn .s-hero__dot { color: rgb(var(--hero-rgb, 21, 17, 11)); }

/* subjudul: dua baris berjenjang (pilihan "Versi 1")
   baris 1 = nama usaha, lebih tebal & gelap; baris 2 = desa & tahun, lebih kecil & pudar */
.s-hero__sub { line-height: 1; letter-spacing: 0; padding-left: 0; }
.s-hero__sub > span { display: block; white-space: nowrap; }
.s-hero__nama {
  font-size: 15px; font-weight: 700; letter-spacing: .4em; padding-left: .4em;   /* imbangi spasi huruf terakhir */
  color: rgba(var(--hero-rgb, 21, 17, 11), .82);
}
.s-hero__ket {
  margin-top: 16px; font-size: 12px; letter-spacing: .3em; padding-left: .3em;
  color: rgba(var(--hero-rgb, 21, 17, 11), .44);
}

@media (max-width: 860px) {
  .s-hero__word--cmn { font-size: 24vw; }
  .s-hero__sub { letter-spacing: 0; line-height: 1; max-width: none; }
  .s-hero__nama { font-size: 12px; letter-spacing: .3em; padding-left: .3em; }
  .s-hero__ket { margin-top: 12px; font-size: 10.5px; letter-spacing: .24em; padding-left: .24em; }
}
