/* ── LUMEN'S STUDIO: Hero perangkat (S1) — gaya sama dengan slide pembuka blog ── */
.hd-hero {
  --hd-ghost: #66666f;
  --hd-tile: #d9d9dc;
  --hd-bezel-edge: #4a4d57;
  position: relative;
  overflow: hidden;
  padding-top: 176px;
  color: var(--ink);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

@keyframes hdLineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hdFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hdDeviceRise { from { opacity: 0; transform: translateY(140px); } to { opacity: 1; transform: none; } }
@keyframes hdTileIn { from { opacity: 0; transform: translateY(48px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hdZoomSettle { from { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes hdBreathe { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }

.hd-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
  gap: 48px;
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

/* Kolom samping: teks dua warna */
.hd-side { display: flex; flex-direction: column; gap: 22px; padding-block: 32px 40px; }
.hd-side > * { animation: hdFadeUp .9s var(--ease-out) both; animation-delay: calc(.55s + var(--i, 0) * .08s); }
.hd-side-left .hd-split { margin-top: auto; }
.hd-foot { margin-top: auto; color: var(--hd-ghost); font-size: 15px; }
.hd-foot b { color: var(--ink); font-weight: 500; }
.hd-split { margin: 0; color: var(--hd-ghost); font-family: var(--font-display); font-size: clamp(34px, 3.3vw, 50px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.hd-split > span { display: block; }
.hd-split .on { color: var(--ink); }
.hd-micro { max-width: 230px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.hd-label { margin: 0; color: var(--ink); font-size: 14px; }
.hd-label span { color: var(--hd-ghost); }
.hd-num { margin: 0; color: var(--hd-ghost); font-size: 13px; font-variant-numeric: tabular-nums; }
.hd-side-right .hd-split { margin-block: 16px; }
.hd-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 500; text-underline-offset: 4px; }
/* Angka raksasa count-up dari hero lama, versi terang */
.hd-stats { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.hd-stat { display: flex; align-items: baseline; gap: 12px; transition: transform .25s var(--ease-out); }
.hd-stat-num { display: inline-block; min-width: 1.1ch; color: var(--ink); font-family: var(--font-display); font-size: clamp(4.2rem, 6.4vw, 7rem); font-weight: 200; line-height: .92; letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: transform .22s var(--ease-out); }
.hd-stat-label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 500; line-height: 1.25; }
.hd-stat-label strong { color: var(--ink); font-size: .95rem; font-weight: 600; }
.hd-stat-label span { color: var(--hd-ghost); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* Bingkai perangkat, terpotong di bawah */
.hd-device { position: relative; display: flex; flex-direction: column; align-self: stretch; padding: 11px 11px 0; border-radius: 66px 66px 0 0; background: var(--ink); box-shadow: 0 0 0 1.5px var(--hd-bezel-edge), inset 0 0 0 1.5px #2a2c34; animation: hdDeviceRise 1.2s var(--ease-out) both; }
.hd-screen { position: relative; display: flex; flex: 1; flex-direction: column; overflow: hidden; padding: 70px 22px 14px; border-radius: 56px 56px 0 0; background: var(--canvas); }
.hd-screen::before { content: ""; position: absolute; top: 14px; left: 50%; width: 118px; height: 34px; border-radius: 999px; background: var(--ink); transform: translateX(-50%); }
.hd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hd-title { margin: 0; font-family: var(--font-display); font-size: clamp(46px, 4.5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.025em; }
.hd-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hd-line > span { display: block; animation: hdLineUp 1s var(--ease-out) both; animation-delay: calc(.35s + var(--i, 0) * .1s); }
.hd-faded { color: var(--hd-ghost); }
.hd-chevron { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 4px; flex-shrink: 0; border-radius: 50%; color: var(--ink); font-size: 18px; text-decoration: none; transition: background-color .2s ease, transform .3s var(--ease-out); }
.hd-people { display: inline-flex; align-self: flex-start; align-items: center; gap: 14px; margin-block: 18px 16px; color: var(--hd-ghost); font-size: 15px; text-decoration: none; animation: hdFadeUp .9s var(--ease-out) .6s both; }
.hd-people b { color: var(--ink); font-weight: 500; }
.hd-faces { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--hd-tile); }
.hd-faces img { width: 40px; height: 44px; border: 2px solid var(--hd-tile); border-radius: 10px; object-fit: cover; }
.hd-faces img + img { margin-left: -8px; }

/* Tile mengisi sisa tinggi layar perangkat: tidak ada ruang kosong di bawah */
.hd-bento { display: grid; flex: 1; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 400px; }
.hd-bento > * { animation: hdTileIn 1s var(--ease-out) both; animation-delay: calc(.7s + var(--i, 0) * .1s); }
.hd-media { position: relative; grid-row: span 2; overflow: hidden; border-radius: 18px; color: #fff; background: var(--ink); }
.hd-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: hdZoomSettle 1.8s var(--ease-out) .7s both; transition: transform .8s var(--ease-out); }
.hd-media::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 45%; background: linear-gradient(rgba(11, 12, 16, .55), transparent); pointer-events: none; }
.hd-media-copy { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; }
.hd-media-copy small { display: block; font-size: 12px; opacity: .85; }
.hd-media-copy strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.hd-ring { position: absolute; left: 60%; top: 66%; z-index: 2; width: 64px; height: 64px; border: 4px solid #fff; border-radius: 50%; animation: hdBreathe 2.8s ease-in-out infinite; transition: translate .6s var(--ease-out), border-color .3s ease; pointer-events: none; }

.hd-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 14px 16px 16px; overflow: hidden; border-radius: 18px; text-decoration: none; transition: transform .5s var(--ease-out); }
.hd-tile-gray { color: var(--ink); background: var(--hd-tile); }
.hd-tile-ink { color: #fff; background: var(--ink); }
.hd-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: #fff; background: #5b5c64; font-size: 12px; transition: transform .5s var(--ease-spring); }
.hd-tile-ink .hd-icon { color: var(--ink); background: var(--accent); }
.hd-tile strong { display: block; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }

/* Header di atas hero terang: teks gelap, lalu solid setelah lewat hero */
body:has(.hd-hero) .header { background: rgba(236, 236, 236, .9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); transition: background-color .3s ease, border-color .3s ease; }

/* Klik menu (Layanan, Stylist, Hasil): judul section mendarat ±44px di bawah header */
body:has(.hd-hero) { --hd-anchor: 172px; }
body:has(.hd-hero) #services { padding-top: var(--section-gap); }
body:has(.hd-hero) .section-editorial,
body:has(.hd-hero) #services { scroll-margin-top: calc(var(--hd-anchor) - var(--section-gap)); }
@media (max-width: 767px) { body:has(.hd-hero) { --hd-anchor: 144px; } }
body:has(.hd-hero) .header::before { display: none; }
body:has(.hd-hero) .header .logo-img { filter: none; }
body:has(.hd-hero) .header .nav a { color: rgba(11, 12, 16, .62); }
body:has(.hd-hero) .header .nav a.active,
body:has(.hd-hero) .header .nav a:hover { color: var(--ink); }
body:has(.hd-hero) .header .nav-toggle span { background-color: var(--ink); }
body:has(.hd-hero) #cta-header { border: 0; color: var(--canvas); background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
body:has(.hd-hero) #cta-header:hover { color: var(--ink); background: var(--accent); }
body:has(.hd-hero) .header.is-solid { background: rgba(236, 236, 236, .9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }

@media (hover: hover) {
  .hd-chevron:hover { background: var(--hd-tile); transform: translateY(3px); }
  .hd-media:hover video { transform: scale(1.05); }
  .hd-media:hover .hd-ring { border-color: var(--accent); }
  .hd-tile:hover { transform: translateY(-4px); }
  .hd-tile:hover .hd-icon { transform: rotate(90deg) scale(1.1); }
  .hd-people:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .hd-stat:hover { transform: translateY(-2px); }
}
@media (max-width: 1100px) {
  .hd-inner { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 40px; }
  .hd-side-left { display: none; }
}
@media (max-width: 760px) {
  .hd-hero { padding-top: 104px; }
  .hd-inner { grid-template-columns: minmax(0, 1fr); gap: 0; width: calc(100% - 32px); }
  .hd-side-right { order: -1; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-block: 8px 20px; }
  .hd-side-right .hide-sm { display: none; }
  .hd-side-right .hd-split { margin: 0; font-size: 36px; }
  .hd-stats { flex-direction: row; gap: 20px; width: 100%; }
  .hd-stat-num { font-size: clamp(3.4rem, 17vw, 4.6rem); }
  .hd-device { padding: 8px 8px 0; border-radius: 52px 52px 0 0; }
  .hd-screen { padding: 58px 14px 12px; border-radius: 45px 45px 0 0; }
  .hd-screen::before { top: 12px; width: 96px; height: 28px; }
  .hd-title { font-size: clamp(46px, 14vw, 64px); }
  .hd-bento { min-height: 320px; gap: 8px; }
  .hd-tile { padding: 12px; }
  .hd-tile strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-hero *, .hd-hero *::before, .hd-hero *::after { animation: none !important; transition: none !important; }
}

/* Tombol booking langsung, hanya di HP */
.hd-cta-mobile { display: none; }
@media (max-width: 760px) {
  .hd-cta-mobile { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 8px 0 22px; border-radius: 999px; color: var(--canvas); background: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; }
  .hd-cta-mobile span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--accent); }
  .hd-title { font-size: clamp(40px, 12vw, 56px); }
}

/* Dropdown "Lainnya" di nav desktop: Blog, Partnership, Admin */
.header .nav .nav-more { position: relative; z-index: 2; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; color: rgba(11, 12, 16, .62); background: transparent; font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: color .2s ease; }
.nav-more-btn i { font-size: .7em; transition: transform .35s var(--ease-out); }
.nav-more-btn:hover, .nav-more.is-open .nav-more-btn, .nav-more:hover .nav-more-btn { color: var(--ink); }
.nav-more.is-open .nav-more-btn i, .nav-more:hover .nav-more-btn i { transform: rotate(180deg); }
.nav-more-menu { position: absolute; top: calc(100% + 10px); left: 50%; display: grid; gap: 2px; width: 280px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 60px -24px rgba(11, 12, 16, .35); opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.97); transform-origin: top center; transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .35s; }
.nav-more-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-more.is-open .nav-more-menu, .nav-more:hover .nav-more-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s; }
.header .nav .nav-more-menu a.nav-more-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); font-weight: 500; text-decoration: none; opacity: 0; transform: translateY(6px); transition: background-color .2s ease, opacity .3s ease, transform .4s var(--ease-out); }
.header .nav .nav-more.is-open a.nav-more-item, .header .nav .nav-more:hover a.nav-more-item { opacity: 1; transform: none; }
.header .nav .nav-more.is-open a.nav-more-item:nth-child(2), .header .nav .nav-more:hover a.nav-more-item:nth-child(2) { transition-delay: .04s; }
.header .nav .nav-more.is-open a.nav-more-item:nth-child(3), .header .nav .nav-more:hover a.nav-more-item:nth-child(3) { transition-delay: .08s; }
.header .nav .nav-more-menu a.nav-more-item:hover, .header .nav .nav-more-menu a.nav-more-item:focus-visible { background: var(--canvas) !important; }
.header .nav .nav-more-menu a.nav-more-item::after { display: none; }
.nav-more-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; color: var(--ink); background: var(--canvas); font-size: 14px; transition: color .2s ease, background-color .2s ease; }
.nav-more-item:hover .nav-more-icon { color: var(--ink); background: var(--accent); }
.nav-more-item strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.2; }
.nav-more-item small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.3; }

/* Motion tombol booking di HP */
@keyframes hdCtaIn { 0% { opacity: 0; transform: translateY(28px) scale(.9); } 60% { opacity: 1; transform: translateY(-3px) scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes hdShine { 0%, 65% { transform: translateX(-130%) skewX(-20deg); } 100% { transform: translateX(380%) skewX(-20deg); } }
@keyframes hdNudge { 0%, 55%, 100% { translate: 0; } 70% { translate: 6px; } 80% { translate: 0; } 90% { translate: 3px; } }
@keyframes hdPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, .55); } 100% { box-shadow: 0 0 0 14px rgba(255, 90, 54, 0); } }
@media (max-width: 760px) {
  .hd-side > .hd-cta-mobile { position: relative; overflow: hidden; animation: hdCtaIn 1s var(--ease-spring) 1s both; transition: scale .15s ease; }
  .hd-cta-mobile::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent); animation: hdShine 3.4s ease-in-out 2.2s infinite; pointer-events: none; }
  .hd-cta-mobile span { animation: hdNudge 2.4s ease-in-out 2.2s infinite, hdPulse 2.4s ease-out 2.2s infinite; }
  .hd-cta-mobile:active { scale: .97; }
}

/* Bar kategori Layanan (mobile) tidak menutupi judul saat section baru masuk layar */
@media (max-width: 767px) {
  #services .category-chips-track { transition: opacity .3s ease, transform .4s var(--ease-out); }
  #services .category-chips-track.is-tucked { opacity: 0 !important; transform: translateY(16px) !important; pointer-events: none; }
}

/* Mobile: header ringkas (logo di-crop ke wordmark) supaya hero & mockup naik */
@media (max-width: 767px) {
  body:has(.hd-hero) .header { padding: 4px 12px; }
  body:has(.hd-hero) .header .container { min-height: 56px; padding: 0 12px; }
  body:has(.hd-hero) .header .logo-img { width: 88px; height: 42px; object-fit: cover; }
}
