/* ============ Token ============ */
:root {
  --bg: #03060C;
  --ink: #EAF4FF;
  --muted: rgba(220, 236, 255, 0.62);
  --faint: rgba(220, 236, 255, 0.38);
  --line: rgba(150, 200, 255, 0.16);
  --glow: #56B7EC;
  --glow-2: #449CE4;
  --glass: rgba(8, 20, 44, 0.55);
  --glass-strong: rgba(10, 24, 52, 0.82);
  --gutter: clamp(16px, 3.2vw, 44px);
  --head-top: clamp(16px, 3.5vw, 50px);   /* lusion: 50 px dari atas pada 1440 */
  --head-side: clamp(16px, 5vw, 72px);    /* lusion: 72 px dari sisi pada 1440 */
  --display: "Krona One", "Arial Black", sans-serif;
  --text: "Geist", system-ui, sans-serif;
  --focus-x: 51%;
  --focus-y: 27%;
  color-scheme: dark;
}

/* ============ Font (dipilih 20 Nov 2026: B = Krona One + Geist + Geist Mono) ============ */
/* Pasangan lain tetap bisa dipratinjau lewat ?font=a|c|d|e (lihat font-pilihan.html) */
:root {
  --dw: 400; --ds: normal; --dtrack: -0.03em;
  --label: "Geist Mono", ui-monospace, monospace;
  --hero-size: clamp(75px, 19.9vw, 369px);
  --hero-size-m: 19.8vw;
}
:root[data-font="a"] {
  --display: "Archivo", "Arial Black", sans-serif; --dw: 900; --ds: 125%; --dtrack: -0.02em;
  --text: "Inter", system-ui, sans-serif; --label: var(--text);
  --hero-size: clamp(56px, 14.6vw, 270px); --hero-size-m: 17.5vw;
}
:root[data-font="c"] {
  --display: "Syne", sans-serif; --dw: 800; --ds: normal; --dtrack: -0.01em;
  --text: "DM Sans", system-ui, sans-serif; --label: "IBM Plex Mono", monospace;
  --hero-size: clamp(43px, 11.3vw, 210px); --hero-size-m: 13.6vw;
}
:root[data-font="d"] {
  --display: "Unbounded", sans-serif; --dw: 900; --ds: normal; --dtrack: -0.02em;
  --text: "Manrope", system-ui, sans-serif; --label: "JetBrains Mono", monospace;
  --hero-size: clamp(57px, 15.1vw, 279px); --hero-size-m: 18.1vw;
}
:root[data-font="e"] {
  --display: "Fraunces", Georgia, serif; --dw: 900; --ds: normal; --dtrack: -0.03em;
  --text: "Inter", system-ui, sans-serif; --label: "Geist Mono", monospace;
  --hero-size: clamp(77px, 20.3vw, 375px); --hero-size-m: 24.3vw;
}
.label, .eyebrow, .hud, .hud-depth, .step-num, .pill, .arrow-link, .dots a span, .tag, .stats span, .project dt, .loader p { font-family: var(--label); }
.embed .loader { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font: 500 11px/1.4 var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.muted { color: var(--muted); }
.tag {
  display: inline-block; vertical-align: middle;
  font: 500 10px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
}
.tag-dummy { border-color: rgba(255, 190, 120, 0.4); color: #FFC98F; }

/* ============ Pemuat ============ */
.loader { position: fixed; inset: 0; z-index: 60; background: var(--bg); transition: opacity 0.9s ease, visibility 0.9s; }
.loader-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.loader-label { position: absolute; left: 0; right: 0; top: calc(50% + 40px); margin: 0; text-align: center; transition: opacity 0.3s; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* ============ Panggung ============ */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene { position: absolute; inset: 0; will-change: transform, opacity; }
.scene-a { transform-origin: var(--focus-x) var(--focus-y); transform: scale(1.3); }
.scene-b {
  opacity: 0; transform-origin: 51% 40%;
  /* tepi gambar B memudar supaya batasnya tak terlihat saat diperkecil */
  -webkit-mask-image: radial-gradient(closest-side at 51% 40%, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side at 51% 40%, #000 45%, transparent 100%);
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-x) var(--focus-y); }
.scene-b .layer { object-position: 51% 40%; }

.hero-word {
  position: absolute; left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--display);
  font-weight: var(--dw);
  font-stretch: var(--ds);
  font-size: var(--hero-size);
  line-height: 0.85;
  letter-spacing: var(--dtrack);
  color: #F4FAFF;
  white-space: nowrap;
  will-change: opacity;
}
/* INTENT "di dalam air" (acuan: efek "text in water" After Effects):
   badan huruf berwarna air dan sedikit tembus, cahaya dari atas yang hanyut pelan,
   jaring caustic yang bergerak di dalam huruf, riak tenang + glow tipis dari filter #underwater. */
.hero-word span {
  position: relative;
  display: inline-block; will-change: transform;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image:
    radial-gradient(ellipse 14% 95% at 50% 25%, rgba(255, 255, 255, 0.7), rgba(236, 248, 255, 0.4) 30%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(214, 234, 252, 0.72) 0%, rgba(178, 210, 240, 0.64) 55%, rgba(132, 176, 222, 0.56) 100%);
  background-size: 320% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  filter: url(#underwater) drop-shadow(0 0 16px rgba(120, 200, 255, 0.3)) drop-shadow(0 0 46px rgba(68, 156, 228, 0.22));
  animation: light-drift 22s ease-in-out infinite alternate;
}
/* jaring caustic: dua tekstur yang bisa diulang, bergeser ke arah berbeda dengan kecepatan berbeda */
.hero-word span::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: url("../gambar/web/caustic.webp"), url("../gambar/web/caustic-2.webp");
  background-size: 460px 460px, 640px 640px;
  -webkit-background-clip: text; background-clip: text;
  opacity: 0.24;
  animation: caustic-drift 48s linear infinite;
}
/* cahaya pointer: bagian huruf di dekat pointer sedikit menerang (posisi --lx/--ly dan kekuatan --lo dari js) */
.hero-word span::before { /* intent-light */
  content: attr(data-text);
  position: absolute; inset: 0; pointer-events: none;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: radial-gradient(circle 240px at var(--lx, -999px) var(--ly, -999px),
    rgba(242, 251, 255, 0.78), rgba(205, 236, 255, 0.34) 42%, rgba(205, 236, 255, 0) 75%);
  -webkit-background-clip: text; background-clip: text;
  opacity: var(--lo, 0);
}
@keyframes light-drift {
  from { background-position: 0% 0, 0 0; }
  to { background-position: 100% 0, 0 0; }
}
@keyframes caustic-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 460px 230px, -640px 320px; }
}
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.veil {
  position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 12, 0.92) 0%, rgba(3, 6, 12, 0.55) 45%, rgba(3, 6, 12, 0.2) 100%),
    linear-gradient(0deg, rgba(3, 6, 12, 0.6), rgba(3, 6, 12, 0) 40%);
}

/* ============ Header & menu (pola lusion) ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--head-top) var(--head-side);
  transition: opacity 0.6s ease;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1 var(--text); letter-spacing: 0.02em; }
.brand img { width: 26px; height: 26px; }
.site-header .brand { transform-origin: 0 0; will-change: transform; }
.brand-lg img { width: 40px; height: 40px; }
.brand-lg { font: var(--dw) 24px/1 var(--display); font-stretch: var(--ds); text-transform: uppercase; }
.brand-stack { flex-direction: column; align-items: flex-start; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .sound-btn { margin-right: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 45px; padding: 0 22px; border-radius: 99px;
  font: 500 11px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.pill-dark { background: rgba(4, 10, 22, 0.75); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.pill-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill-light { background: rgba(234, 244, 255, 0.92); color: #06101F; }

.pill-ghost { border: 1px solid var(--line); text-transform: none; letter-spacing: 0.01em; font-size: 14px; height: 48px; padding: 0 20px; }
.pill-ghost:hover { border-color: var(--glow); }

.menu-label { display: grid; height: 1em; overflow: hidden; }
.menu-label span { grid-area: 1 / 1; transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1); }
.menu-label span:last-child { transform: translateY(110%); }
.menu-toggle[aria-expanded="true"] .menu-label span:first-child { transform: translateY(-110%); }
.menu-toggle[aria-expanded="true"] .menu-label span:last-child { transform: translateY(0); }
.menu-dots { display: inline-flex; gap: 3px; transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1); }
.menu-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.menu-toggle[aria-expanded="true"] .menu-dots { transform: rotate(90deg); }

.menu {
  position: absolute; top: calc(var(--head-top) + 53px); right: var(--head-side);
  width: min(340px, calc(100vw - 2 * var(--gutter)));
  display: grid; gap: 8px;
}
.menu[hidden] { display: none; }
.menu-card {
  display: block;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: drop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.menu-card:nth-child(2) { animation-delay: 0.05s; }
.menu-card:nth-child(3) { animation-delay: 0.1s; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.menu-card nav, nav.menu-card { display: grid; }
nav.menu-card a {
  display: flex; justify-content: space-between; align-items: center;
  font: 500 19px/2 var(--text); text-transform: uppercase; letter-spacing: 0.01em;
}
nav.menu-card a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background 0.3s; }
nav.menu-card a.is-active::after { background: var(--glow); box-shadow: 0 0 10px var(--glow); }
nav.menu-card a:hover { color: var(--glow); }
.menu-avail p { margin: 0 0 10px; font: 500 20px/1.25 var(--text); }
.menu-lab { display: flex; align-items: center; gap: 12px; background: #000; }
.menu-lab span:first-child { font: 600 18px/1 var(--text); text-transform: uppercase; }
.menu-lab .label { flex: 1; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s;
}
.arrow-link:hover { color: var(--glow); border-color: var(--glow); }

/* ============ UI tetap (pola SNAKE) ============ */
.ico { width: 18px; height: 18px; flex: none; }

.dots {
  position: fixed; right: var(--gutter); top: 50%; z-index: 10;
  transform: translateY(-50%);
  display: grid; gap: 16px; justify-items: end;
  transition: opacity 0.5s;
}
.dots a { position: relative; display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(234, 244, 255, 0.35); transition: background 0.3s, transform 0.3s; }
.dots a span {
  position: absolute; right: 20px; top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; opacity: 0; pointer-events: none;
  font: 500 11px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase;
  transition: opacity 0.3s, transform 0.3s;
}
.dots a:hover span, .dots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.dots a.is-active { background: var(--glow); box-shadow: 0 0 12px var(--glow); transform: scale(1.25); }
.dots a:hover { background: var(--ink); }

/* Tombol musik: pola lusion.co (lingkaran 45 px, garis datar saat mati, gelombang saat hidup) */
.sound-btn {
  width: 45px; height: 45px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(228, 230, 239, 0.92); color: #06101F;
  transition: background 0.3s, transform 0.3s;
}
.sound-btn:hover { transform: scale(1.05); }
.sound-btn canvas { width: 45px; height: 45px; }

.hud {
  position: fixed; left: 50%; bottom: 24px; z-index: 10;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  font: 500 11px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.5s;
}
.hud-cue { color: var(--ink); transition: opacity 0.4s; }
.hud-depth {
  position: fixed; right: var(--gutter); top: calc(50% + 86px); z-index: 10; margin: 0;
  font: 500 11px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg) translateX(-2px);
  transition: opacity 0.5s; pointer-events: none;
}
.hud-depth b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
body.past-intro .hud-cue { opacity: 0; }
body.at-floor .dots, body.at-floor .hud, body.at-floor .hud-depth { opacity: 0; pointer-events: none; }

/* ============ Segmen ============ */
main { position: relative; z-index: 1; }
.sec { position: relative; min-height: 100vh; min-height: 100svh; }
.wrap { padding: 140px calc(var(--gutter) + 56px) 140px; max-width: 1440px; margin: 0 auto; }
.eyebrow { font: 500 11px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--glow); margin: 0 0 22px; }
.display {
  margin: 0;
  font-family: var(--display); font-weight: var(--dw); font-stretch: var(--ds);
  font-size: clamp(38px, 6.4vw, 104px); line-height: 0.92; letter-spacing: var(--dtrack);
  text-transform: uppercase;
  max-width: 14ch;
  text-wrap: balance;
}
.display-xl { font-size: clamp(48px, 10vw, 180px); max-width: none; }
.lede { max-width: 54ch; color: var(--muted); font-size: 18px; margin: 26px 0 0; }

/* Hero */
.sec-intro { height: 100vh; height: 100svh; }
/* tetap di layar dan memudar bersama INTENT saat digulir (--fade dari js), tidak ikut tergulir ke atas */
.intro-bottom {
  position: fixed; z-index: 2; opacity: var(--fade, 1);
  left: var(--head-side); right: var(--gutter); bottom: 30px; /* sejajar kiri dengan logo */
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
/* lebar wadah mengikuti paragraf pertama (satu baris); paragraf kedua membungkus di dalam lebar itu */
.intro-text { margin: 0; width: max-content; max-width: 100%; font-size: 13px; line-height: 1.55; color: var(--muted); display: grid; gap: 0.9em; }
.intro-text > span { display: block; }
.it-lead { white-space: nowrap; }
.it-me { width: 0; min-width: 100%; text-wrap: pretty; } /* tidak ikut menentukan lebar wadah */
@media (max-width: 760px) { .intro-text { width: auto; } .it-lead { white-space: normal; } }
.dive {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 34px 0 26px;
  background: rgba(4, 10, 22, 0.72); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  font: 500 14px/1 var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dive::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 8px; background: var(--glow); box-shadow: 0 0 18px var(--glow); }
.dive:hover { background: rgba(68, 156, 228, 0.25); }

/* About */
/* About dipin (ditahan) saat teksnya menyala per kata, jadi tingginya pas satu layar */
.sec-about .wrap { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(104px, 14vh, 140px); padding-bottom: clamp(36px, 7vh, 120px); }
.sec-about .about-body { margin-top: clamp(18px, 3vh, 30px); }
.sec-about .stats { margin: clamp(22px, 4vh, 40px) 0 clamp(22px, 4.5vh, 44px); }
.about-body { display: grid; gap: 0.7em; max-width: 30ch; margin: 30px 0 0; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.35; letter-spacing: -0.01em; }
.about-body p { margin: 0; }
.about-body p + p { color: var(--muted); }
.stats { list-style: none; padding: 0; margin: 40px 0 44px; display: flex; flex-wrap: wrap; gap: 36px; }
.stats b { display: block; font: var(--dw) 32px/1 var(--display); font-stretch: var(--ds); }
.stats span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Work */
.projects {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px;
}

/* ===== Kartu Liquid Glass (acuan: material Liquid Glass Apple) =====
   Ciri: kaca jernih (blur tipis), latar membias di tepi seperti lensa (Chromium, lihat js/main.js),
   kilau tepi di dua sisi berlawanan yang mengikuti kursor, sudut sangat membulat, bayangan lembut. */
@property --gb { syntax: "<length>"; inherits: true; initial-value: 12px; }
.project {
  position: relative; isolation: isolate;
  min-height: 430px; border-radius: 34px; overflow: hidden;
  padding: 22px 24px 26px;
  display: flex; flex-direction: column;
  outline: none; cursor: pointer;
  --gb: 12px;
  box-shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: --gb 0.6s ease;
}
/* lapisan kaca */
.project-glass {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.05));
  /* cadangan (Safari, Firefox): kaca buram ringan */
  -webkit-backdrop-filter: blur(var(--gb)) saturate(170%) brightness(1.05);
  backdrop-filter: blur(var(--gb)) saturate(170%) brightness(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.28),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.12),
    inset 0 0 30px rgba(255, 255, 255, 0.05),
    inset 0 -20px 44px -26px rgba(170, 215, 255, 0.2);
}
/* kilau tepi: terang di dua sisi berlawanan */
.project-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from 105deg,
    rgba(255, 255, 255, 0.26) 0deg, rgba(255, 255, 255, 0.2) 30deg, rgba(255, 255, 255, 0.05) 75deg,
    rgba(255, 255, 255, 0.02) 120deg, rgba(255, 255, 255, 0.12) 180deg, rgba(255, 255, 255, 0.13) 210deg,
    rgba(255, 255, 255, 0.03) 255deg, rgba(255, 255, 255, 0.02) 300deg, rgba(255, 255, 255, 0.26) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.project-face { position: relative; flex: 1; display: flex; flex-direction: column; transition: opacity 0.45s ease; }
/* jenis + klien: teks saja, tanpa bingkai */
.project-pill {
  align-self: flex-end; max-width: 78%;
  display: grid; gap: 4px; text-align: right;
  padding-top: 4px;
}
.project-cat { font: 600 clamp(17px, 1.4vw, 21px)/1.1 var(--text); letter-spacing: -0.01em; }
.project-client { font: 400 12px/1.3 var(--text); color: var(--muted); }
.project-num {
  margin: auto 0 0; align-self: flex-end;
  font: 200 clamp(84px, 8vw, 128px)/0.9 var(--text); letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
}
.project-num sup { font-size: 0.22em; font-weight: 400; letter-spacing: 0; vertical-align: top; position: relative; top: 0.35em; margin-left: 4px; color: var(--muted); }
.project-title { margin: 14px 0 0; align-self: flex-end; text-align: right; font: var(--dw) clamp(20px, 1.7vw, 26px)/1.1 var(--display); font-stretch: var(--ds); text-transform: uppercase; }

/* rincian lengkap: kaca yang lebih pekat, muncul saat kartu disorot atau difokus (tap di ponsel) */
.project-detail {
  position: absolute; inset: 0; z-index: 1;
  padding: 26px 26px 26px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.project-meta { margin: 0; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.project-sum { margin: 0; font-size: 15px; line-height: 1.5; }
.project dl { margin: 0; display: grid; gap: 7px; font-size: 13px; }
.project dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.project dt { color: var(--faint); text-transform: uppercase; font-size: 10px; letter-spacing: 0.1em; padding-top: 3px; }
.project dd { margin: 0; color: var(--muted); }
.project dd.ai { color: var(--glow); }
.project-detail .arrow-link { margin-top: auto; align-self: flex-start; }

.project:hover, .project:focus-within { --gb: 22px; }
html.lg-lens .project:hover, html.lg-lens .project:focus-within { --gb: 14px; }
.project:hover .project-face, .project:focus-within .project-face { opacity: 0; }
.project:hover .project-detail, .project:focus-within .project-detail { opacity: 1; visibility: visible; }
.project:focus-visible { box-shadow: 0 0 0 2px var(--glow), 0 30px 60px -28px rgba(0, 0, 0, 0.75); }

.clients { margin: 88px 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.clients-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.clients-note { margin: 0; font-size: 13px; color: var(--faint); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: drift 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 72px; list-style: none; margin: 0; padding: 0 36px; }
.client {
  display: flex; align-items: center; height: 28px; opacity: 0.5; white-space: nowrap;
  font: 600 15px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase;
  transition: opacity 0.3s, filter 0.3s;
}
.client:nth-child(3n) { font: var(--dw) 17px/1 var(--display); font-stretch: var(--ds); letter-spacing: 0; }
.client:nth-child(4n) { font: 500 18px/1 var(--text); letter-spacing: 0; text-transform: none; }
.client img { height: 28px; width: auto; }
.client:hover { opacity: 1; filter: drop-shadow(0 0 8px var(--glow)); }
@keyframes drift { to { transform: translateX(-50%); } }

/* Process: kiri menempel (judul + pengukur kedalaman), kanan baris langkah yang lega */
.process-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0 clamp(48px, 7vw, 140px); align-items: start; }
.process-side { position: sticky; top: calc(var(--head-top) + 45px + clamp(32px, 6vh, 64px)); display: grid; justify-items: start; }
.process-side .lede { max-width: 40ch; }
.sec-process .display { font-size: clamp(34px, 3.8vw, 60px); max-width: none; }

.gauge { --gp: 0; position: relative; list-style: none; margin: clamp(24px, 4.5vh, 48px) 0 clamp(24px, 4.5vh, 40px); padding: 0 0 0 26px; display: grid; gap: clamp(6px, 1.3vh, 12px); }
.gauge::before, .gauge::after { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; }
.gauge::before { background: var(--line); }
.gauge::after { background: linear-gradient(var(--glow), rgba(86, 183, 236, 0.35)); transform-origin: top; transform: scaleY(var(--gp)); box-shadow: 0 0 10px var(--glow); }
.gauge li { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; min-width: 260px;
  font: 500 12px/1.4 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); transition: color 0.4s; }
.gauge li::before { content: ""; position: absolute; left: -26px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.gauge li.is-done { color: var(--muted); }
.gauge li.is-done::before { border-color: rgba(86, 183, 236, 0.6); }
.gauge li.is-active { color: var(--ink); }
.gauge li.is-active::before { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 12px var(--glow); }
.gauge .g-m { font-variant-numeric: tabular-nums; }

.steps { list-style: none; margin: 0; padding: 18vh 0 30vh; display: grid; gap: clamp(56px, 14vh, 160px); }
.step { position: relative; }
.step-card {
  position: relative; isolation: isolate; border-radius: 28px;
  padding: clamp(22px, 3vh, 32px) clamp(24px, 2.6vw, 36px);
  --gb: 10px; transition: --gb 0.6s ease;
}
html.lg-lens .step-card { --gb: 2px; }
.step-card .project-glass { opacity: 0; transition: opacity 0.6s ease; }
.step-head { display: flex; align-items: baseline; gap: 18px; }
.step-num { font: 500 12px/1 var(--label); letter-spacing: 0.1em; color: var(--faint); transition: color 0.4s; }
.step h3 { margin: 0; font: var(--dw) clamp(32px, 3.6vw, 56px)/1 var(--display); font-stretch: var(--ds); text-transform: uppercase; color: var(--faint); transition: color 0.5s; }
.step-depth { margin-left: auto; font: 500 11px/1 var(--label); letter-spacing: 0.1em; color: var(--faint); font-variant-numeric: tabular-nums; }
/* isi selalu memakan tempat (tidak ada lompatan tata letak), hanya tampak saat baris terbuka */
.step-body { display: grid; gap: 14px; margin-top: 18px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.step-body p { margin: 0; color: var(--muted); max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; }
.step-body .label { color: var(--faint); }

/* terbuka: baris di tengah layar, atau baris yang disorot / disentuh (yang disorot menang) */
.step.is-active .step-body, .step:hover .step-body { opacity: 1; transform: none; }
.steps:hover .step.is-active:not(:hover) .step-body { opacity: 0; transform: translateY(8px); }
.step.is-active h3, .step:hover h3 { color: var(--ink); }
.steps:hover .step.is-active:not(:hover) h3 { color: var(--faint); }
.step.is-active .step-num, .step:hover .step-num { color: var(--glow); }
.steps:hover .step.is-active:not(:hover) .step-num { color: var(--faint); }
.steps:not(:hover) .step.is-active .project-glass, .step:hover .project-glass { opacity: 1; }

/* Contact */
.sec-contact .wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
/* paragraf Contact bergaya paragraf About: lebih besar, terang, menyala per kata saat segmen ditahan */
.sec-contact .lede { margin: clamp(22px, 4vh, 36px) auto 0; max-width: 34ch; color: var(--ink);
  font-size: clamp(19px, 1.6vw, 25px); line-height: 1.35; letter-spacing: -0.01em; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 28px; margin-top: 44px; }
.roll { display: inline-flex; align-items: center; gap: 14px; font: 500 clamp(22px, 2.6vw, 34px)/1.1 var(--text); }
.roll-text { display: inline-flex; overflow: hidden; }
.roll-text .ch { display: inline-grid; }
.roll-text .ch > span { grid-area: 1 / 1; transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1); transition-delay: calc(var(--i) * 18ms); }
.roll-text .ch > span + span { transform: translateY(110%); color: var(--glow); }
.roll:hover .roll-text .ch > span:first-child { transform: translateY(-110%); }
.roll:hover .roll-text .ch > span + span { transform: translateY(0); }

/* ============ Footer · dasar laut (tata letak footer lusion.co) ============ */
.site-footer {
  position: relative; z-index: 2; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  /* jarak atas = tinggi header + ruang napas, supaya sejajar dengan ritme header */
  padding: calc(var(--head-top) + 45px + clamp(56px, 9vh, 110px)) var(--head-side) 32px;
  background: transparent; /* dasar laut ada di panggung (lapisan paling belakang) */
  font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5;
}
/* dasar laut: di panggung (paling belakang), dipotong mulai tepi atas footer dengan peralihan lembut (--ft dari js) */
.seabed {
  position: absolute; inset: 0; opacity: 0;
  background: url("../gambar/web/seabed-poster.webp?v=2") 72% 100% / cover no-repeat; /* cadangan sebelum video diputar */
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent var(--ft, 100vh), #000 calc(var(--ft, 100vh) + 45vh));
  mask-image: linear-gradient(180deg, transparent var(--ft, 100vh), #000 calc(var(--ft, 100vh) + 45vh));
}
/* video dasar laut (ubur-ubur berdenyut di atas pasir), menempati tempat gambar yang sama */
.seabed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 100%; display: block; }
.seabed::after { /* kiri lebih gelap supaya teks footer terbaca */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3, 6, 12, 0.75) 0%, rgba(3, 6, 12, 0) 50%);
}
.footer-main, .footer-bottom { position: relative; z-index: 1; }
/* dua kolom sama lebar: kiri identitas + info, kanan ajakan + kolom pesan + sosial */
/* tiga lajur: kiri & kanan maksimal 560 px menempel ke tepi, ruang sisa di tengah, supaya seimbang di layar lebar */
.footer-main { display: grid; grid-template-columns: minmax(0, 560px) 1fr minmax(0, 560px); gap: 56px 48px; align-items: start; }
.footer-left { grid-column: 1; }
.footer-right { grid-column: 3; }
.footer-right { display: grid; gap: 28px; align-content: start; }
/* kiri: identitas, lalu sitemap mendatar, lalu baris info (kota + jam, email, sosial) */
.footer-left { display: flex; flex-direction: column; gap: clamp(28px, 4.5vh, 48px); }
.footer-left p { margin: 0; }
/* geser sedikit supaya tepi kiri logo sejajar dengan tinta huruf H (Krona One punya jarak sisi ±0,09em) */
.logo-slot { display: block; width: 40px; height: 40px; margin: 0 0 18px calc(clamp(20px, 1.7vw, 26px) * 0.09); }
.footer-name { font: var(--dw) clamp(20px, 1.7vw, 26px)/1.1 var(--display); font-stretch: var(--ds); text-transform: uppercase; letter-spacing: -0.01em; }
.footer-tag { margin-top: 14px !important; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 2.4vw, 36px); padding-bottom: clamp(20px, 3vh, 32px); border-bottom: 1px solid var(--line); }
.footer-nav a, .footer-info a { transition: color 0.3s; }
.footer-nav a:hover, .footer-info a:hover { color: var(--glow); }
/* info bertumpuk: alamat, lalu email, lalu ikon sosial */
.footer-info { display: grid; justify-items: start; gap: clamp(18px, 2.6vh, 26px); }
.footer-info .footer-social { padding-top: 4px; }
.footer-mail { white-space: nowrap; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.footer-social a { display: inline-flex; opacity: 0.75; transition: opacity 0.3s, color 0.3s; }
.footer-social a:hover { opacity: 1; color: var(--glow); }
.footer-social .ico { width: 28px; height: 28px; }

.connect { display: grid; gap: 12px; }
.connect-title { margin: -0.12em 0 0; font: 500 clamp(34px, 3.4vw, 54px)/1.04 var(--text); letter-spacing: -0.025em; }
.connect-sub { margin: 4px 0 14px; max-width: 40ch; color: var(--muted); }
.field {
  display: flex; align-items: flex-start;
  /* kaca: sama dengan tombol kapsul (blur + sorot tepi atas-kiri, tanpa garis bawah) */
  background: rgba(234, 244, 255, 0.05); border: 1px solid rgba(234, 244, 255, 0.1); border-radius: 16px;
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.5), inset 0 0 16px rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.4s;
}
.field:focus-within { border-color: rgba(86, 183, 236, 0.55); background: rgba(234, 244, 255, 0.08);
  box-shadow: inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.8), inset 0 0 18px rgba(255, 255, 255, 0.1); }
.field textarea, .field input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--ink);
  font: 400 clamp(16px, 1.25vw, 19px)/1.45 var(--text); padding: 19px 22px; resize: none;
}
.field textarea { max-height: 180px; overflow-y: auto; }
.field textarea::placeholder, .field input::placeholder { color: var(--faint); }
.field textarea:focus, .field input:focus { outline: none; }
.field-go { width: 62px; height: 64px; flex: none; font-size: 22px; transition: color 0.3s, transform 0.3s; }
.field-go:hover { color: var(--glow); transform: translateX(3px); }
/* Kolom email baru muncul setelah pesan mulai diketik; tombol kirim pindah ke kolom terakhir */
.field-email { max-height: 0; opacity: 0; overflow: hidden; border-width: 0; margin-top: -12px; transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease, border-color 0.3s; }
.connect.has-msg .field-email { max-height: 80px; opacity: 1; border-width: 1px; margin-top: 0; }
.connect.has-msg .field-msg .field-go { display: none; }
.connect-state { margin: 0; font-size: 14px; }
.connect-state:empty { display: none; }

.footer-bottom {
  /* lajur sama dengan .footer-main: grup kiri sejajar kolom kiri, grup kanan sejajar kolom "Let's connect" */
  display: grid; grid-template-columns: minmax(0, 560px) 1fr minmax(0, 560px); align-items: center; gap: 12px 48px;
  font-size: 14px; color: var(--muted);
}
.fb-group { grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fb-group p { margin: 0; }
.fb-group.fb-right { grid-column: 3; justify-content: flex-end; }
.fb-start { display: flex; align-items: center; gap: 16px; }
.footer-bottom p { margin: 0; }
.footer-bottom .label { color: var(--ink); }
.credit { position: relative; display: inline-flex; }
.credit-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color 0.3s, border-color 0.3s; }
.credit-btn .ico { width: 16px; height: 16px; }
.credit:hover .credit-btn, .credit-btn:focus-visible { color: var(--glow); border-color: var(--glow); }
.credit-tip {
  position: absolute; bottom: calc(100% + 12px); left: -4px; transform: translate(0, 6px);
  white-space: nowrap; padding: 10px 16px; border-radius: 14px;
  background: rgba(234, 244, 255, 0.06); border: 1px solid rgba(234, 244, 255, 0.1); color: var(--ink);
  font-size: 13px; opacity: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.55), inset 0 0 14px rgba(255, 255, 255, 0.06);
  transition: opacity 0.3s, transform 0.3s;
}
.credit:hover .credit-tip, .credit:focus-within .credit-tip { opacity: 1; transform: translate(0, 0); }

/* ============ Ponsel ============ */
@media (max-width: 760px) {
  .dots { display: none; }
  .site-header { --head-top: 16px; --head-side: 16px; }
  .header-actions { gap: 8px; }
  .pill { height: 40px; padding: 0 14px; }
  .sound-btn, .sound-btn canvas { width: 40px; height: 40px; }
  /* Ponsel: gambar 16:9 dipasang selebar 200vw dan dipusatkan di kubah, tepinya dipudarkan */
  .stage { --focus-x: 50%; --focus-y: 24%; }
  .scene-a .layer {
    width: 200vw; height: 112.5vw; left: 50%; top: 10vh; transform: translateX(-51%);
    object-fit: fill;
    -webkit-mask-image: linear-gradient(transparent 0, #000 10%, #000 70%, transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 10%, #000 70%, transparent 100%);
  }
  .scene-b .layer { width: 200vw; height: 112.5vw; left: 50%; top: calc(40% - 45vw); transform: translateX(-51%); object-fit: fill; }
  .scene-b { transform-origin: 50% 40%; }
  .hero-word { font-size: var(--hero-size-m); top: 50%; }
  .intro-text { text-shadow: 0 1px 12px rgba(3, 6, 12, 0.9); color: var(--ink); }
  .intro-bottom { left: var(--gutter); bottom: 96px; flex-direction: column; align-items: stretch; gap: 18px; }
  .intro-text { font-size: 13px; max-width: none; padding-right: 8px; }
  .dive { height: 54px; justify-content: space-between; }
  .hud { display: none; }
  .hud-depth { top: auto; bottom: 34px; writing-mode: horizontal-tb; transform: none; }
  .wrap { padding: 110px var(--gutter) 110px; }
  .lede { font-size: 16px; }
  .about-body, .sec-contact .lede { font-size: 18px; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee ul { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 0; }
  .marquee ul + ul { display: none; }
  .process-wrap { grid-template-columns: 1fr; }
  .process-side { position: static; }
  .gauge { display: none; }
  .steps { padding: 32px 0 12vh; gap: 40px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-left, .footer-right { grid-column: auto; }

  .seabed { background-size: auto 46%; background-position: 78% 100%; }
  .seabed-video { top: auto; height: 46%; object-position: 78% 100%; }
  .footer-bottom { grid-template-columns: 1fr; row-gap: 16px; }
  .fb-group, .fb-group.fb-right { grid-column: auto; }
  .credit-tip { left: 0; transform: translate(0, 6px); white-space: normal; width: 220px; }
  .credit:hover .credit-tip, .credit:focus-within .credit-tip { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero-word span, .hero-word span::after { animation: none !important; }
  .hero-word span::before { display: none; }
  .marquee-track { width: auto; }
  .marquee ul + ul { display: none; }
  .marquee ul { flex-wrap: wrap; }
}

/* ============ UI tersembunyi saat pembukaan & idle di hero ============ */
/* Tetap tampil: kata INTENT, "Scroll to descend", lima titik kanan. */
.intro-bottom, .hud-depth { transition: opacity 0.6s ease; }
body.ui-hidden .site-header,
body.ui-hidden .intro-bottom,
body.ui-hidden .hud-depth { opacity: 0; pointer-events: none; }
body.ui-hidden .dots a span { opacity: 0 !important; }

/* ============ Smooth scroll (Lenis) ============ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============ Teks menyala per kata saat digulir ============ */
.w { transition: opacity 0.4s ease, filter 0.4s ease; opacity: 0.16; }
.w.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .w { opacity: 1; transition: none; } }

/* Chromium: lensa tepi (peta dari js/main.js lewat --lens) + blur yang bisa berubah */
html.lg-lens .project-glass {
  -webkit-backdrop-filter: var(--lens) blur(var(--gb)) brightness(1.06);
  backdrop-filter: var(--lens) blur(var(--gb)) brightness(1.06);
}
html.lg-lens .project { --gb: 0px; }

/* ============ Partikel laut (plankton & marine snow) ============ */
.particles { position: fixed; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

/* ============ Hero: video ubur-ubur di atas laut buatan ============ */
.stage { background: #03060C; }
/* latar: hitam di tepi, sedikit lebih terang dan kebiruan di tengah atas (cahaya samar dari permukaan) */
.sea {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 28%, rgba(10, 26, 58, 0.85) 0%, rgba(5, 12, 28, 0.6) 45%, rgba(3, 6, 12, 0) 75%),
    linear-gradient(180deg, #050B18 0%, #03060C 55%, #020409 100%);
}
/* kabut biru tengah malam di belakang ubur-ubur (posisi & ukuran diatur js) */
.haze {
  position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; border-radius: 50%;
  transform-origin: 0 0; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(52, 116, 200, 0.42) 0%, rgba(30, 72, 150, 0.24) 30%, rgba(10, 30, 70, 0.1) 52%, rgba(6, 15, 40, 0) 70%);
}
.jelly { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity, filter; }
.jelly video { display: block; width: 100%; height: 100%; }

/* kawanan ubur-ubur di belakang (js/swarm.js) */
.jellies { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.jelly { width: 0; height: 0; }

/* ============ Process: jarak atas seperti Work, semua baris berwadah kaca tipis ============ */
/* jarak atas disamakan dengan judul Work saat segmennya mulai (Work turun ±60 px karena parallax) */
.sec-process .wrap { padding-top: clamp(140px, 22vh, 210px); }
.process-side { top: clamp(140px, 22vh, 210px); }
.steps { padding-top: 0; }
.step-card .project-glass { opacity: 0; } /* hanya baris aktif yang berwadah kaca (versi pertama) */

/* ============ Tombol kapsul: kaca (warna tetap) + terisi air saat disorot ============ */
.pill, .sound-btn, .dive-orb {
  position: relative; overflow: hidden; isolation: isolate;
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  /* hanya sorot di tepi atas-kiri; tanpa garis/bayangan di bawah tombol */
  box-shadow: inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.06);
}
/* air: dua permukaan bergelombang dengan panjang, arah, dan kecepatan berbeda (acak per tombol dari js),
   ditambah ayunan naik-turun pelan, supaya terlihat alami dan tidak berulang rapi */
.pill::before, .sound-btn::before, .dive-orb::before,
.pill::after, .sound-btn::after, .dive-orb::after {
  content: ""; position: absolute; z-index: -1; left: -30%; right: -30%; top: 0; height: 170%; /* lebih tinggi dari tombol: tidak ada celah di bawah saat penuh */
  transform: translateY(66%);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* lapisan utama: air bening */
.pill::before, .sound-btn::before, .dive-orb::before {
  background:
    radial-gradient(120% 70% at 30% 8%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(150, 215, 255, 0.62) 0%, rgba(70, 150, 225, 0.82) 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='10' viewBox='0 0 52 10'%3E%3Cpath d='M0 5 C9 1 17 1 26 5 S43 9 52 5 V10 H0Z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 52px 10px, linear-gradient(#000 0 0) 0 9px / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='10' viewBox='0 0 52 10'%3E%3Cpath d='M0 5 C9 1 17 1 26 5 S43 9 52 5 V10 H0Z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 52px 10px, linear-gradient(#000 0 0) 0 9px / 100% 100% no-repeat;
  animation: water-a var(--wa, 2s) linear var(--wd, 0s) infinite, slosh var(--ws, 3.2s) ease-in-out var(--wd, 0s) infinite;
}
/* lapisan kedua: permukaan lebih panjang, lebih tipis, bergerak ke arah sebaliknya */
.pill::after, .sound-btn::after, .dive-orb::after {
  background: linear-gradient(180deg, rgba(200, 236, 255, 0.4) 0%, rgba(120, 190, 245, 0.22) 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='13' viewBox='0 0 78 13'%3E%3Cpath d='M0 7 C13 1 26 2 39 7 S65 12 78 7 V13 H0Z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 78px 13px, linear-gradient(#000 0 0) 0 12px / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='13' viewBox='0 0 78 13'%3E%3Cpath d='M0 7 C13 1 26 2 39 7 S65 12 78 7 V13 H0Z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 78px 13px, linear-gradient(#000 0 0) 0 12px / 100% 100% no-repeat;
  animation: water-b var(--wb, 3s) linear var(--wd, 0s) infinite, slosh var(--ws2, 4.1s) ease-in-out infinite reverse;
}
.pill:hover::before, .pill:focus-visible::before, .sound-btn:hover::before, .sound-btn:focus-visible::before,
.dive:hover .dive-orb::before, .dive:focus-visible .dive-orb::before { transform: translateY(-17%); } /* penuh rata: gelombang hanya tampak saat mengisi */
.pill:hover::after, .pill:focus-visible::after, .sound-btn:hover::after, .sound-btn:focus-visible::after,
.dive:hover .dive-orb::after, .dive:focus-visible .dive-orb::after { transform: translateY(-21%); transition-delay: 0.06s; }
.pill:hover, .pill:focus-visible, .sound-btn:hover, .dive:hover .dive-orb {
  box-shadow: inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.85), inset 0 0 14px rgba(255, 255, 255, 0.18);
}
/* lengket: tombol tertarik ke arah pointer lalu memantul kembali (--mx/--my dari js) */
.pill, .sound-btn, .dive-orb { translate: var(--mx, 0px) var(--my, 0px); transition: translate 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.45), background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.4s; }
.pill.is-pulled, .sound-btn.is-pulled, .dive-orb.is-pulled { transition: translate 0.18s ease-out, background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.4s; }
@keyframes water-a { to { -webkit-mask-position: 52px 0, 0 9px; mask-position: 52px 0, 0 9px; } }
@keyframes water-b { to { -webkit-mask-position: -78px 0, 0 12px; mask-position: -78px 0, 0 12px; } }
@keyframes slosh { 0%, 100% { translate: 0 0; } 30% { translate: 0 1.5px; } 65% { translate: 0 -2px; } }

/* ============ Dive in: label kecil + bola kaca berpanah, menyatu dengan latar ============ */
.dive {
  height: auto; padding: 0; gap: 14px; background: none; border: 0; border-radius: 0; overflow: visible;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font: 500 11px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: color 0.4s;
}
.dive::after { display: none; }
.dive:hover { background: none; color: var(--ink); }
.dive-orb {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(4, 10, 22, 0.45); color: var(--ink); font: 400 16px/1 var(--text); letter-spacing: 0;
}
.dive-orb span { display: inline-block; animation: dive-bob 2.6s ease-in-out infinite; }
@keyframes dive-bob { 50% { transform: translateY(3px); } }
@media (max-width: 760px) {
  .dive { height: auto; justify-content: flex-end; align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .pill::before, .sound-btn::before, .dive-orb::before, .pill::after, .sound-btn::after, .dive-orb::after, .dive-orb span { animation: none; }
}

/* distorsi air di sekitar pointer (js/main.js) */
.water-distort { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; border-radius: 50%; will-change: transform; }

/* cipratan saat kapsul diklik (js/main.js) */
/* riak di dalam tombol: terang dengan tepi biru supaya tetap tampak di tombol putih maupun yang terisi air */
.splash-ring {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(40, 130, 210, 0.22);
  background: radial-gradient(closest-side, rgba(170, 220, 255, 0.22), rgba(170, 220, 255, 0.06) 60%, rgba(170, 220, 255, 0) 100%);
  transform: scale(0.08); opacity: 0.8;
  animation: splash-ring 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes splash-ring { to { transform: scale(1); opacity: 0; } }
/* riak di luar tombol */
.splash-out {
  position: fixed; z-index: 60; pointer-events: none; box-sizing: border-box;
  border: 1px solid rgba(190, 230, 255, 0.4); box-shadow: 0 0 8px rgba(86, 183, 236, 0.18);
  opacity: 0; animation: splash-out 0.85s cubic-bezier(0.15, 0.7, 0.3, 1) both;
}
@keyframes splash-out {
  0% { opacity: 0.7; transform: scale(1, 1); }
  100% { opacity: 0; transform: scale(var(--sx), var(--sy)); }
}

/* riak distorsi saat klik di area kosong (js/main.js) */
.tap-ripple { position: fixed; z-index: 4; pointer-events: none; border-radius: 50%; transform: scale(0.12); will-change: transform; }

/* titik pusat perbesaran saat masuk dari pemuat: tengah layar (halaman masih di posisi paling atas) */
main { transform-origin: 50% 50vh; }
