@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070a12;
  --bg-alt: #0a0e18;
  --surface: #0d1220;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e6e8ee;
  --muted: #9aa3b5;
  --dim: #7b8598;
  --gold: #f2c66d;
  --gold-soft: rgba(242, 198, 109, 0.12);
  --ok: #6ee7a0;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* bahasa tersimpan = ID: tahan tampilan sampai teksnya ditukar, supaya gak kedip English dulu */
.lang-pending body {
  visibility: hidden;
  animation: tampil 0s 1.2s forwards;
}
@keyframes tampil {
  to {
    visibility: visible;
  }
}

::selection {
  background: rgba(242, 198, 109, 0.28);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #14110a;
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

.ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- bar atas ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 18, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid rgba(242, 198, 109, 0.4);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
}
.nav {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav a {
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--text);
}
@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.lang button {
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang button:hover {
  color: var(--text);
}
.lang button[aria-pressed="true"] {
  background: var(--gold-soft);
  color: var(--gold);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 12vw, 148px) 0 clamp(56px, 9vw, 112px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(242, 198, 109, 0.07), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(80, 120, 220, 0.06), transparent 70%);
}
.hero-in {
  position: relative;
}
.orbit {
  position: absolute;
  top: 50%;
  right: -180px;
  width: 760px;
  max-width: none;
  height: 760px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.orbit .sat {
  fill: var(--gold);
  opacity: 0.75;
}
.orbit .sat-dim {
  opacity: 0.35;
}
.orbit-spin {
  transform-origin: 400px 400px;
  animation: putar 90s linear infinite;
}
@keyframes putar {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 899px) {
  .orbit {
    top: 0;
    right: -300px;
    transform: translateY(-30%);
    opacity: 0.7;
  }
}

.eyebrow,
.label,
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.label span:first-child,
.kicker span:first-child {
  margin-right: 10px;
  color: var(--dim);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}
h1 {
  max-width: 18ch;
  margin-top: 20px;
  font-size: clamp(2.75rem, 8.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
h1 em {
  display: block;
  color: var(--gold);
}
.lead {
  max-width: 56ch;
  margin-top: 26px;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.1875rem);
  color: var(--muted);
  text-wrap: pretty;
}

.cta,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  border-color: rgba(242, 198, 109, 0.55);
  color: var(--gold);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #17130a;
  font-weight: 600;
}
.btn-primary:hover {
  background: #f7d68f;
  border-color: #f7d68f;
  color: #17130a;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
  margin-top: clamp(44px, 7vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.facts dt {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.6vw, 2.25rem);
  line-height: 1.1;
  white-space: nowrap;
}
.facts dd {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--dim);
}

/* ---------- bagian ---------- */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
}
.sub {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- proyek ---------- */
.project {
  display: grid;
  gap: 26px;
  align-items: center;
}
.project + .project {
  margin-top: clamp(64px, 9vw, 112px);
}
@media (min-width: 900px) {
  .project {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
  }
  .project:nth-of-type(even) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .project:nth-of-type(even) .shot {
    order: 2;
  }
}

.shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.shot:hover {
  border-color: rgba(242, 198, 109, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.9);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.shot-bar i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.shot-bar b {
  margin-left: 8px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

h3 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.6vw, 2.375rem);
  line-height: 1.1;
}
.hook {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.3;
  color: var(--gold);
}
.desc {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--muted);
  text-wrap: pretty;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.tags li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.links {
  margin-top: 26px;
}

.more {
  margin-top: clamp(56px, 8vw, 88px);
  text-align: center;
}
.more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
}
.more a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.more .ic {
  transition: transform 0.25s var(--ease);
}
.more a:hover .ic {
  transform: translateX(3px);
}

/* ---------- open source ---------- */
.prs {
  border-top: 1px solid var(--border);
}
.prs li {
  border-bottom: 1px solid var(--border);
}
.prs a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 20px 4px;
  transition: background 0.25s, padding 0.25s var(--ease);
}
.prs a:hover {
  background: rgba(255, 255, 255, 0.025);
}
.prs a > .ic {
  color: var(--dim);
  transition: color 0.25s, transform 0.25s var(--ease);
}
.prs a:hover > .ic {
  color: var(--gold);
  transform: translate(2px, -2px);
}
.pill {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
[data-state="merged"] .pill {
  border-color: rgba(110, 231, 160, 0.3);
  color: var(--ok);
}
[data-state="merged"] .pill::before {
  background: var(--ok);
}
.pr-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pr-repo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.pr-repo b {
  font-weight: 400;
  color: var(--dim);
}
.pr-title {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
@media (min-width: 720px) {
  .prs a {
    grid-template-columns: 116px minmax(0, 1fr) auto;
    padding: 22px 12px;
  }
  .pill {
    grid-column: auto;
  }
  .pr-main {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }
}

/* ---------- kontak ---------- */
.cards {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.card {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  border-color: rgba(242, 198, 109, 0.45);
  transform: translateY(-2px);
}
.card .ic {
  width: 20px;
  height: 20px;
  margin-bottom: 14px;
  color: var(--gold);
}
.card-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.card-value {
  font-size: 16px;
  overflow-wrap: anywhere;
}

/* ---------- kaki ---------- */
.foot {
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--dim);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 26px 0 30px;
}
.foot a {
  color: var(--muted);
  transition: color 0.2s;
}
.foot a:hover {
  color: var(--gold);
}

/* ---------- kartu pemilih bahasa ---------- */
.picker {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(360px, calc(100% - 24px));
  padding: 14px 14px 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(11, 15, 27, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.picker[hidden] {
  display: none;
}
.picker.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 900px) {
  .picker {
    left: auto;
    right: 24px;
    bottom: 24px;
    transform: translateY(18px);
  }
  .picker.show {
    transform: none;
  }
}
.picker-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
}
.picker-head p {
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.picker-alt {
  color: var(--dim);
}
.picker-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -6px -6px -6px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.picker-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.picker-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.picker-opts button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.picker-opts button:hover {
  border-color: rgba(242, 198, 109, 0.55);
}
.picker-opts button[aria-pressed="true"] {
  border-color: rgba(242, 198, 109, 0.6);
  background: var(--gold-soft);
  color: var(--gold);
}
.picker-opts .check {
  display: none;
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.picker-opts button[aria-pressed="true"] .check {
  display: block;
}
.picker-hint {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--dim);
}
.picker-time {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.picker-time i {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
}
.picker.show .picker-time i {
  animation: waktu 14s linear forwards;
}
.picker:focus-within .picker-time i {
  animation-play-state: paused;
}
@media (hover: hover) {
  .picker:hover .picker-time i {
    animation-play-state: paused;
  }
}
@keyframes waktu {
  to {
    transform: scaleX(0);
  }
}

/* ---------- Concierge: tombol dan jendela obrolan ---------- */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(242, 198, 109, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(242, 198, 109, 0.24), rgba(9, 13, 24, 0.9) 62%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 0 0 0 rgba(242, 198, 109, 0.5), 0 12px 34px rgba(0, 0, 0, 0.5);
  color: var(--text);
  text-align: left;
  animation: denyut 3s ease-out infinite;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.fab[hidden] {
  display: none;
}
.fab:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.fab[aria-expanded="true"] {
  animation: none;
  border-color: var(--gold);
}
.fab-logo,
.chat-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9dc9c, #e9b755);
  color: #17130a;
}
.fab-logo {
  width: 42px;
  height: 42px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.bell {
  width: 23px;
  height: 23px;
  fill: currentColor;
}
.spark {
  position: absolute;
  top: -5px;
  right: -6px;
  width: 17px;
  height: 17px;
  fill: #fff3d2;
  filter: drop-shadow(0 0 4px rgba(242, 198, 109, 0.9));
  animation: kilau 3s ease-in-out infinite;
}
.fab-text {
  display: grid;
  line-height: 1.2;
}
.fab-title {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fab-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes denyut {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 198, 109, 0.5), 0 12px 34px rgba(0, 0, 0, 0.5);
  }
  60%,
  100% {
    box-shadow: 0 0 0 14px rgba(242, 198, 109, 0), 0 12px 34px rgba(0, 0, 0, 0.5);
  }
}
@keyframes kilau {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.08) rotate(12deg);
  }
}

.chat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px);
  z-index: 56;
  display: flex;
  flex-direction: column;
  width: min(392px, calc(100% - 32px));
  height: min(580px, calc(100vh - 116px));
  height: min(580px, calc(100dvh - 116px));
  overflow: hidden;
  border: 1px solid rgba(242, 198, 109, 0.28);
  border-radius: 18px;
  background: rgba(10, 14, 25, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.chat[hidden] {
  display: none;
}
.chat.show {
  opacity: 1;
  transform: none;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(242, 198, 109, 0.1), transparent);
}
.chat-logo {
  width: 36px;
  height: 36px;
}
.chat-logo .bell {
  width: 20px;
  height: 20px;
}
.chat-id {
  flex: 1;
  min-width: 0;
}
.chat-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}
.chat-mode {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.chat-mode::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}
.chat-mode[data-mode="ai"]::before {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(110, 231, 160, 0.7);
}
.chat-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.chat-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.chat-log {
  position: relative; /* supaya offsetTop tiap gelembung dihitung dari sini, dipakai saat menggulir */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.msg {
  flex: none;
  max-width: 88%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  animation: masuk 0.3s var(--ease) both;
}
.msg-bot {
  align-self: flex-start;
  border-top-left-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
}
.msg-user {
  align-self: flex-end;
  border-color: rgba(242, 198, 109, 0.38);
  border-bottom-right-radius: 5px;
  background: var(--gold-soft);
  color: #f8e6bb;
  white-space: pre-wrap;
}
.msg-err {
  border-color: rgba(255, 138, 110, 0.35);
}
.msg p + p,
.msg p + ul,
.msg p + ol,
.msg ul + p,
.msg ol + p {
  margin-top: 8px;
}
.msg ul,
.msg ol {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}
.msg ul {
  list-style: disc;
}
.msg ol {
  list-style: decimal;
}
.msg li::marker {
  color: var(--gold);
}
.msg strong {
  font-weight: 600;
  color: #fff;
}
.msg a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(242, 198, 109, 0.45);
  text-underline-offset: 3px;
}
.msg a:hover {
  text-decoration-color: var(--gold);
}
.msg code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 12.5px;
}
.typing {
  display: flex;
  gap: 5px;
  padding: 14px 16px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: titik 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes titik {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@keyframes masuk {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}
.chat-chips[hidden] {
  display: none;
}
.chip {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
  text-align: left;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover {
  border-color: rgba(242, 198, 109, 0.6);
  background: var(--gold-soft);
  color: var(--gold);
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s;
}
.chat-form:focus-within {
  border-color: rgba(242, 198, 109, 0.6);
}
.chat-form textarea {
  flex: 1;
  min-width: 0;
  max-height: 112px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  resize: none;
}
.chat-form textarea::placeholder {
  color: var(--dim);
}
.chat-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: #17130a;
  transition: background 0.2s, opacity 0.2s, transform 0.2s var(--ease);
}
.chat-send .ic {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.chat-send:hover {
  background: #f7d68f;
}
.chat-send:active {
  transform: translateY(1px);
}
.chat-send:disabled {
  opacity: 0.45;
  cursor: default;
}
.chat-note {
  padding: 9px 16px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--dim);
  text-align: center;
}

/* kartu pemilih bahasa dan tombol Concierge berbagi pojok yang sama */
@media (min-width: 900px) {
  .picker {
    bottom: 96px;
  }
}
@media (max-width: 899px) {
  .picker-open .fab {
    opacity: 0;
    pointer-events: none;
  }
}
@media (max-width: 639px) {
  .fab {
    padding-right: 14px;
  }
  .fab-sub {
    display: none;
  }
  .fab-logo {
    width: 40px;
    height: 40px;
  }
  .chat {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    height: min(620px, calc(100vh - 76px));
    height: min(620px, calc(100dvh - 76px));
    transform-origin: bottom center;
  }
  .chat-open .fab {
    opacity: 0;
    pointer-events: none;
  }
}

/* ---------- muncul saat digulir ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.18s;
}
.hero .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .orbit-spin,
  .fab,
  .spark,
  .msg {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .picker,
  .chat,
  .fab,
  .shot,
  .card,
  .btn {
    transition: none;
  }
}

/* ---------- halaman 404 ---------- */
.lost {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 20px;
  text-align: center;
}
.lost h1 {
  max-width: none;
  margin: 14px 0 0;
}
.lost .lead {
  margin-inline: auto;
}
.lost .cta {
  justify-content: center;
}
