/* ============ TOKENS ============ */
/* font judul: versi demo hanya punya huruf; angka dan tanda baca diganti stempel DEMO,
   jadi unicode-range membatasinya ke huruf saja dan sisanya memakai font situs */
@font-face {
  font-family: "Seaword Galaxy";
  src: url("SeawordGalaxyDemo-2vYnW.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00D6, U+00D8-00F6, U+00F8-00FF;
}

:root {
  --display: "Seaword Galaxy", var(--font);
  --bg: #191722;
  --bg-2: #221f2e;
  --panel: rgba(248, 244, 255, 0.05);
  --line: rgba(248, 244, 255, 0.17);
  --line-2: rgba(248, 244, 255, 0.09);
  --txt: #f5f0fa;
  --muted: #bdb5cb;
  --primary: #a9e5cf;
  --accent: #cbb8f7;
  --glow: 4px 4px 0 rgba(203, 184, 247, 0.22);
  --pastel-mint: #a9e5cf;
  --pastel-lilac: #cbb8f7;
  --pastel-peach: #ffc9b5;
  --pastel-butter: #f8e3a3;
  --on-pastel: #241f30;
  --sky-line: #dbe3ff;
  --sky-star: #ffffff;
  --sky-warm: #ffd9a8;
  --sky-cool: #d8e8ff;
  --font: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 18px;
  --pad: clamp(20px, 5vw, 80px);
}
[data-theme="light"] {
  --bg: #fbf7f2;
  --bg-2: #f3ede6;
  --panel: rgba(42, 36, 51, 0.035);
  --line: rgba(42, 36, 51, 0.17);
  --line-2: rgba(42, 36, 51, 0.09);
  --txt: #2a2433;
  --muted: #6b6478;
  --primary: #2f7d66;
  --accent: #6a4bc0;
  --glow: 4px 4px 0 rgba(106, 75, 192, 0.14);
  --pastel-mint: #bfebd9;
  --pastel-lilac: #dccdfa;
  --pastel-peach: #ffd6c5;
  --pastel-butter: #fae9b8;
  --on-pastel: #241f30;
  --sky-line: #4a5680;
  --sky-star: #33406b;
  --sky-warm: #7a4a1e;
  --sky-cool: #2c3f6b;
}

/* ============ BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}
img,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
}
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
::selection {
  background: var(--pastel-mint);
  color: var(--on-pastel);
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--pastel-mint);
  color: var(--on-pastel);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ CANVAS / DECOR ============ */

/* content sits above the fixed sky layers: a positioned z-index:0 layer paints
   over static in-flow content, which is why stars were crossing every text */
#main,
.foot {
  position: relative;
  z-index: 1;
}
/* foto langit: lapisan tetap yang bergeser pelan saat scroll (parallax) */
#sky {
  position: fixed;
  left: -3%;
  right: -3%;
  top: 0;
  height: 118%;
  z-index: 0;
  pointer-events: none;
  background: var(--bg) url("bg-langit.jpg") center / cover no-repeat;
  will-change: transform;
}
#sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(3, 5, 16, 0.3), rgba(3, 5, 16, 0.5));
}
[data-theme="light"] #sky::after {
  background: linear-gradient(rgba(251, 247, 242, 0.82), rgba(251, 247, 242, 0.9));
}
/* konstelasi nyata + bintang + bintang jatuh (digambar di canvas) */
#cons {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
#glow {
  position: fixed;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  left: 0;
  top: 0;
  translate: -50% -50%;
  background: transparent;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.5s ease;
}
[data-theme="light"] #glow {
  background: transparent;
}
[data-theme="light"] .hl {
  color: var(--accent);
}
#scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: var(--pastel-mint);
}

/* ============ LOADER ============ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
}
#loader.done {
  opacity: 0;
  visibility: hidden;
}
.loader-box {
  text-align: center;
}
.loader-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 1;
}
.loader-lbl {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--muted);
}

/* ============ TOMBOL: celestial glass ============ */
.btn {
  position: relative;
  isolation: isolate;
  min-height: 56px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  color: var(--btn-ink, #eef2ff);
  font: 600 14px "Space Grotesk", system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.25s, translate 0.28s, box-shadow 0.28s, border-color 0.28s, background 0.28s, color 0.28s;
}
.btn:focus-visible { outline: 2px solid var(--btn-ring, #fff); outline-offset: 5px; }
.btn-cta {
  border: 1px solid rgba(208, 218, 255, 0.9);
  background: linear-gradient(115deg, rgba(108, 132, 255, 0.32), rgba(143, 112, 255, 0.23) 55%, rgba(80, 108, 220, 0.26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(130, 151, 255, 0.13), 0 0 22px rgba(111, 132, 255, 0.2);
}
.btn-cta::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 38%, rgba(173, 159, 255, 0.12));
}
.btn-cta::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -35%;
  width: 30%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: rotate(25deg);
  transition: left 0.65s;
  z-index: -1;
}
.btn-cta:hover {
  translate: 0 -3px;
  border-color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 0 12px rgba(178, 193, 255, 0.32), 0 0 34px rgba(123, 117, 255, 0.35);
}
.btn-cta:hover::after { left: 120%; }
.btn-ghost {
  border: 1px solid rgba(151, 174, 245, 0.55);
  background: rgba(8, 16, 43, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(124, 146, 220, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  translate: 0 -3px;
  border-color: #beb8ff;
  background: rgba(72, 75, 143, 0.2);
  box-shadow: 0 0 22px rgba(132, 133, 255, 0.2), inset 0 0 18px rgba(138, 143, 255, 0.08);
}
.btn .icon-star { font-size: 17px; line-height: 1; color: #f1eaff; text-shadow: 0 0 8px #b9aaff, 0 0 15px #8daaff; }
.btn .arrow { font-size: 17px; line-height: 1; transition: transform 0.25s; }
.btn-cta:hover .arrow { transform: translate(3px, -2px); }
.orbit-icon { flex: none; width: 17px; height: 17px; border: 1px solid #b9c8ff; border-radius: 50%; position: relative; box-shadow: 0 0 8px rgba(130, 156, 255, 0.4); }
.orbit-icon::after { content: ""; position: absolute; width: 21px; height: 8px; border: 1px solid #b8a5ff; border-radius: 50%; left: -3px; top: 3px; transform: rotate(-35deg); }
@media (max-width: 520px) { .btn { min-height: 52px; padding: 0 21px; font-size: 13px; } }

[data-theme="light"] .btn { --btn-ink: #1b2150; --btn-ring: #1b2150; }
[data-theme="light"] .btn-cta { border-color: rgba(70, 90, 210, 0.65); background: linear-gradient(115deg, rgba(108, 132, 255, 0.28), rgba(143, 112, 255, 0.2) 55%, rgba(80, 108, 220, 0.22)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px -12px rgba(70, 80, 200, 0.5); }
[data-theme="light"] .btn-cta:hover { border-color: #4a5ed0; box-shadow: inset 0 1px 0 #fff, 0 10px 28px -10px rgba(70, 80, 220, 0.6); }
[data-theme="light"] .btn-cta::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); }
[data-theme="light"] .btn-ghost { border-color: rgba(70, 90, 200, 0.4); background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 #fff; }
[data-theme="light"] .btn-ghost:hover { border-color: #6a55e0; background: rgba(255, 255, 255, 0.8); box-shadow: 0 8px 22px -12px rgba(70, 80, 200, 0.4); }
[data-theme="light"] .btn .icon-star { color: #5a3fd6; text-shadow: 0 0 8px rgba(120, 100, 230, 0.5); }
[data-theme="light"] .orbit-icon { border-color: #5a6fd0; box-shadow: none; }
[data-theme="light"] .orbit-icon::after { border-color: #7a5fe0; }

/* ============ NAV: kapsul langit berbintang ============ */
.nav {
  position: fixed;
  z-index: 100;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.nv {
  --ml: 42px;
  --mr: 52px;
  --nt: #e4e9ff;
  --cream: #f4efe4;
  --gold: #ffffff;
  pointer-events: auto;
  position: relative;
  width: min(1320px, 100%);
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 22px 0 12px;
  border: 1.5px solid rgba(88, 108, 238, 0.9);
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(60, 80, 220, 0.2);
  font-family: "Figtree", var(--font);
}
.nv::before,
.nv::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(190, 205, 255, 0.95), transparent);
}
.nv::before { top: -2px; opacity: 0.75; }
.nv::after { bottom: -2px; box-shadow: 0 0 14px 2px rgba(120, 150, 255, 0.6); }

.glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background-color: rgba(5, 8, 34, 0.18);
  background-image:
    radial-gradient(circle 64px at var(--ml) 50%, rgba(110, 130, 255, 0.26), transparent),
    radial-gradient(circle 70px at calc(100% - var(--mr)) 50%, rgba(110, 130, 255, 0.28), transparent),
    radial-gradient(ellipse 55% 110% at 50% 135%, rgba(66, 92, 240, 0.42), transparent 70%),
    radial-gradient(ellipse 28% 90% at 76% -15%, rgba(100, 70, 210, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(12, 19, 78, 0.5), rgba(5, 9, 44, 0.6));
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  backdrop-filter: blur(10px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(190, 205, 255, 0.22), inset 0 0 22px rgba(80, 100, 240, 0.18);
  transition: background-color 0.35s ease;
}
.nav.stuck .glass { background-color: rgba(5, 8, 34, 0.5); }
#nvStars { position: absolute; inset: 0; width: 100%; height: 100%; }
.nvtw { fill: #d5e2ff; opacity: 0.3; animation: nvtw 4s ease-in-out infinite; }
@keyframes nvtw { 50% { opacity: 0.95; } }
.rings { position: absolute; top: 0; height: 100%; width: 140px; }
.rr { right: calc(var(--mr) - 70px); }
.rl { left: calc(var(--ml) - 70px); }

.nv .sp { width: 1em; height: 1em; fill: var(--gold); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.85)); flex: none; }
.glass .g1 { position: absolute; left: 98px; top: 9px; font-size: 10px; }
.nv .edge { position: absolute; top: 50%; font-size: 14px; transform: translateY(-50%); }
.nv .edge.l { left: -9px; }
.nv .edge.r { right: -9px; }
.nvcons { position: absolute; left: 330px; top: 0; height: 100%; width: auto; pointer-events: none; display: none; }
@media (min-width: 1500px) { .nvcons { display: block; } }
.nvcons path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nvdraw 2.4s 0.5s ease forwards; }
@keyframes nvdraw { to { stroke-dashoffset: 0; } }

.nv .brand { display: flex; align-items: center; gap: 8px; justify-self: start; position: relative; border-radius: 999px; }
.nv .brand svg.logo { width: 60px; height: 60px; flex: none; overflow: visible; }
.nv .brand .wordmark { display: block; height: 56px; width: auto; flex: none; filter: drop-shadow(0 0 7px rgba(170, 190, 255, 0.5)); }
@media (min-width: 1041px) {
  .nv .brand::after { content: ""; position: absolute; right: -8px; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(transparent, rgba(160, 180, 255, 0.32), transparent); }
}

.links { list-style: none; display: flex; align-items: center; gap: 2px; position: relative; justify-self: center; }
.links a { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px;
  border-radius: 999px; color: var(--nt); font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: color 0.2s, background-color 0.25s, box-shadow 0.25s; }
/* hover: kapsul tipis yang menyala, ikon berubah warna */
.links a:not(.on):hover,
.links a:not(.on):focus-visible {
  color: #fff;
  background-color: rgba(120, 140, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(170, 190, 255, 0.32), 0 0 16px rgba(110, 130, 255, 0.28);
}
.links a:not(.on):hover .ic,
.links a:not(.on):focus-visible .ic { color: #a9e5cf; transform: translateY(-1px) scale(1.08); }
.links .ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  max-width: 24px; transition: max-width 0.35s, opacity 0.25s, margin 0.35s, transform 0.2s; }
.links a.on { color: #fff; }
.links > .ind { position: absolute; left: 0; top: 50%; height: 46px; width: 0; border-radius: 999px; pointer-events: none;
  border: 1.5px solid rgba(235, 240, 255, 0.9); background: linear-gradient(180deg, #2c3dab, #19236a);
  box-shadow: 0 0 14px rgba(200, 215, 255, 0.45), inset 0 0 12px rgba(120, 140, 255, 0.35);
  transform: translate(0, -50%); transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.2, 1), width 0.45s cubic-bezier(0.3, 0.8, 0.2, 1); }
.links > .ind::before,
.links > .ind::after { content: ""; position: absolute; left: 22%; right: 22%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.links > .ind::before { top: -2px; }
.links > .ind::after { bottom: -2px; }
.links > .ind .sp { position: absolute; right: -3px; top: -7px; font-size: 13px; }

.moonbtn { justify-self: end; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.moonbtn svg { width: 60px; height: 60px; overflow: visible; transition: transform 0.4s cubic-bezier(0.3, 0.8, 0.2, 1), filter 0.3s; }
.moonbtn:hover svg { transform: rotate(-14deg) scale(1.06); filter: brightness(1.15); }
.nv :focus-visible { outline: 2px solid #cfe0ff; outline-offset: 3px; border-radius: 999px; }

@media (max-width: 1380px) { .links a { padding: 0 15px; } }
@media (max-width: 1280px) { .links a { padding: 0 12px; font-size: 15px; } .nv .brand .wordmark { height: 48px; } }
@media (max-width: 1040px) {
  .nv { padding: 0 10px; gap: 4px; --ml: 40px; --mr: 40px; }
  .links { justify-self: center; gap: 0; }
  .links a { padding: 0 11px; }
  .links a:not(.on) .t { display: none; }
  .links a.on { padding: 0 16px; }
}
@media (max-width: 560px) {
  .nv { --ml: 32px; --mr: 32px; padding: 0 8px; gap: 2px; }
  .nv .brand .wordmark { display: none; }
  .nv .brand svg.logo { width: 46px; height: 46px; }
  .moonbtn, .moonbtn svg { width: 46px; height: 46px; }
  .links a { padding: 0 7px; }
  .links a.on { padding: 0 11px; }
  .links a.on .t { display: none; }
  .glass .g1 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .links > .ind, .links .ic, .moonbtn svg { transition: none; }
  .nvtw, .nvcons path { animation: none; }
  .nvcons path { stroke-dashoffset: 0; }
}

/* mode terang: kapsul kaca putih */
[data-theme="light"] .nv { --nt: #2a3354; --cream: #2a2433; border-color: rgba(70, 90, 200, 0.55); box-shadow: 0 12px 30px -16px rgba(28, 38, 78, 0.45); }
[data-theme="light"] .glass { background-color: transparent; background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 246, 255, 0.88)); box-shadow: inset 0 1px 0 #fff; }
[data-theme="light"] .nav.stuck .glass { background-color: rgba(255, 255, 255, 0.4); }
[data-theme="light"] #nvStars, [data-theme="light"] .nv .rings, [data-theme="light"] .nvcons { display: none; }
[data-theme="light"] .nv::before, [data-theme="light"] .nv::after { opacity: 0.35; box-shadow: none; }
[data-theme="light"] .links a:not(.on):hover,
[data-theme="light"] .links a:not(.on):focus-visible { color: #141a36; background-color: rgba(70, 90, 200, 0.1); box-shadow: inset 0 0 0 1px rgba(70, 90, 200, 0.3); }
[data-theme="light"] .links a:not(.on):hover .ic { color: #3f57c9; }
[data-theme="light"] .nv .brand .wordmark { filter: invert(1) brightness(0.25); }

/* ============ HERO ============ */
main {
  position: relative;
  z-index: 2;
}
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px var(--pad) 80px;
}.hero-inner {
  max-width: 1000px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: none;
}
.hero-title {
  margin: 20px 0 18px;
  font-size: clamp(1.95rem, 5.5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero-title .w,
.big .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.hero-title .w > span {
  display: inline-block;
}
.hero-title .hl {
  color: var(--primary);
}
.hero-sub {
  max-width: 52ch;
  color: color-mix(in srgb, var(--txt) 60%, var(--muted));
  font-size: clamp(0.92rem, 1.3vw, 1rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}
@keyframes float {
  50% {
    transform: translateY(8px);
    opacity: 0.72;
  }
  100% {
    opacity: 0.92;
  }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid var(--line-2);
  background: var(--panel);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
}
.marquee-track span {
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.marquee-track i {
  color: var(--primary);
  font-style: normal;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ============ SECTIONS ============ */
.sec {
  padding: clamp(88px, 13vw, 170px) var(--pad);
  max-width: 1400px;
  margin-inline: auto;
}
.kicker::before {
  content: "✦ ";
  color: var(--primary);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: var(--primary);
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 6.4vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-synthesis: none;
  margin-bottom: 22px;
}
.sec-title .chw,
.big .chw {
  padding-bottom: 0.36em;
  margin-bottom: -0.36em;
}
.sec-lead {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 44px;
}

/* catalog (roman) */
.catalog {
  margin-top: 44px;
  border-top: 1px solid var(--line-2);
}
.catalog li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
  transition:
    padding-left 0.35s ease,
    background 0.35s ease;
}
.catalog li:hover {
  padding-left: 14px;
}
.catalog li b {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.catalog li p {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  letter-spacing: -0.015em;
  color: var(--muted);
  transition: color 0.3s;
}
.catalog li:hover p {
  color: var(--txt);
}

.quote {
  margin-top: 64px;
  padding: 32px;
  border-left: 2px solid var(--primary);
  background: var(--panel);
  border-radius: 0 var(--r) var(--r) 0;
}
.quote p {
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.quote span {
  color: var(--muted);
}

/* cards grid */
.grid3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  perspective: 1200px;
}
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  transform-style: preserve-3d;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.18s ease-out;
  will-change: transform;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: color-mix(in srgb, var(--pastel-mint) 9%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 4px 4px 0 rgba(203, 184, 247, 0.2);
}
.card:hover::after {
  opacity: 1;
}
.card-i {
  color: var(--primary);
  letter-spacing: 0.2em;
}
.card h3 {
  margin: 14px 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  transform: translateZ(28px);
}
.card p {
  color: var(--muted);
  font-size: 0.94rem;
  transform: translateZ(14px);
}
.bar {
  margin-top: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--pastel-mint);
  transition: width 1.1s cubic-bezier(0.22, 0.8, 0.24, 1) 0.15s;
}
.card.in .bar i {
  width: calc(var(--v, 0) * 1%);
}

/* ============ RAIL (horizontal scroll) ============ */
.rail-sec {
  position: relative;
  height: 340vh;
}
.rail-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.rail-head {
  padding: 0 var(--pad);
}
.rail-head .sec-title {
  margin-bottom: 6px;
}
.rail-hint {
  color: var(--muted);
  letter-spacing: 0.2em;
}
.rail {
  display: flex;
  gap: 20px;
  padding: 0 var(--pad);
  will-change: transform;
}
.pcard {
  flex: 0 0 min(78vw, 430px);
  padding: 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--pastel-lilac) 12%, var(--panel));
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
  min-height: min(52vh, 420px);
  transition:
    border-color 0.3s,
    transform 0.4s;
}
.pcard > span {
  color: var(--primary);
  letter-spacing: 0.2em;
}
.pcard::before {
  content: "";
  flex: 1 1 auto;
  min-height: 60px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background-color: color-mix(in srgb, var(--pastel-lilac) 7%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cg fill='none' stroke='%23cbb8f7' stroke-opacity='.45' stroke-width='1'%3E%3Cpath d='M24 110L64 78L104 92L140 54L182 62L214 30'/%3E%3Cpath d='M104 92L64 78'/%3E%3C/g%3E%3Cg fill='%23a9e5cf'%3E%3Ccircle cx='24' cy='110' r='2.6'/%3E%3Ccircle cx='64' cy='78' r='1.9'/%3E%3Ccircle cx='104' cy='92' r='3.1'/%3E%3Ccircle cx='140' cy='54' r='2.1'/%3E%3Ccircle cx='182' cy='62' r='2.6'/%3E%3Ccircle cx='214' cy='30' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 160px;
}
.pcard h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.025em;
}
.pcard p {
  color: var(--muted);
  font-size: 0.95rem;
}
.pcard:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  transform: translateY(-6px);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tags li {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ============ CAREER TIMELINE (ref: max-height scrub + travelling dot) ============ */
.tl {
  position: relative;
  margin-top: 44px;
  padding-left: 36px;
}
.tl-line {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 26px;
  width: 3px;
  border-radius: 2px;
  background: var(--line-2);
}
.tl-line i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: var(--pastel-mint);
  transform: scaleY(0);
  transform-origin: 50% 0;
  will-change: transform;
}
.tl-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 2px;
  background: var(--pastel-lilac);
  transform: rotate(45deg);
  translate: 0 -50%;
}
html.motion .tl-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.tl-year {
  display: block;
  color: var(--primary);
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.tl-item h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.tl-item p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ============ TECH STACK (1:1 with redoyanulhaque.me) ============ */
.ts {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 1060px;
  padding: 80px 0;
  overflow: hidden;
}
.ts-bg { position: absolute; inset: 0; z-index: 0; }
.ts-bg canvas { display: block; width: 100%; height: 100%; }
/* no veil: the skills section sits straight on the starfield */
.ts-veil { display: none; }
.ts-content { position: relative; z-index: 2; width: min(1040px, calc(100% - 2 * var(--pad))); margin: 0 auto; }
.ts-head { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto 56px; padding: 0 var(--pad); text-align: left; }
.ts-head .sec-title { margin-bottom: 0; }
.ts-pyramid { display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 1000px; margin: 0 auto; }
.ts-row { display: flex; gap: 10px; justify-content: center; width: max-content; max-width: 100%; }
.ts-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 73px; height: 86px; padding: 8px; border-radius: 10px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 88%, var(--bg));
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.ts-item img { width: 30px; height: 30px; object-fit: contain; filter: grayscale(1) contrast(1.2) brightness(1.5); }
[data-theme="light"] .ts-item img { filter: grayscale(1) contrast(1.15) brightness(0.85); }
.ts-item span {
  font-family: var(--font); font-size: 9px; line-height: 1.1; color: var(--muted);
  text-align: center; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ts-mono { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--pastel-lilac); color: var(--on-pastel); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.ts-item img + .ts-mono { display: none; }
.ts-item:hover { transform: translateY(-4px); border-color: var(--primary); background: color-mix(in srgb, var(--pastel-mint) 16%, transparent); }
.ts-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 1100px) {
  .ts-item { width: 62px; height: 78px; }
  .ts-item img, .ts-mono { width: 26px; height: 26px; }
}
@media (max-width: 1100px) {
  .ts {
    min-height: 0;
    padding: 96px 0;
  }
  .ts-title {
    margin-bottom: 56px;
  }
}
@media (max-width: 640px) {
  .ts { padding: 64px 0; }
  .ts-pyramid { overflow-x: auto; padding-bottom: 12px; }
  .ts-row { width: max-content; min-width: 100%; }
  .ts-item { width: 54px; height: 70px; padding: 6px; }
  .ts-item img, .ts-mono { width: 22px; height: 22px; }
  .ts-item span { font-size: 8px; max-width: 48px; }
}

/* ============ RAIL PROGRESS ============ */
.rail-bar {
  position: relative;
  height: 2px;
  width: min(320px, 46vw);
  margin-top: 16px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.rail-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--pastel-mint);
}

@media (max-width: 640px) {
  .rail-bar {
    width: 70vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ch {
    transform: none !important;
  }
  .sw {
    opacity: 1 !important;
  }
  #curtain {
    display: none;
  }
}


/* ============ REVEAL ============ */
html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
}
html.motion [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.8s cubic-bezier(0.22, 0.8, 0.24, 1) var(--d, 0ms),
    transform 0.8s cubic-bezier(0.22, 0.8, 0.24, 1) var(--d, 0ms),
    filter 0.8s ease var(--d, 0ms);
}

/* ============ CHAR REVEAL ============ */
.chw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
html.motion .ch {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 16ms);
}
[data-chars].in .ch {
  transform: none;
}

/* ============ WORD SCRUB ============ */
html.motion .sw {
  opacity: 0.46;
  transition: opacity 0.2s linear;
}

/* ============ CURSOR: bintang celestial + jejak partikel ============ */
:root {
  --sc-a: #ffffff; --sc-b: #b9d0ff; --sc-c: #8b70ff; --sc-g1: #a7baff; --sc-g2: #9274ff;
  --tp-0: #ffffff; --tp-1: #cbd8ff; --tp-2: #9b83ff; --tp-glow: rgba(156, 154, 255, 0.67);
  --ts-fill: #eaf0ff; --ts-glow: #a5baff; --orbit-c: rgba(179, 154, 255, 0.72);
}
[data-theme="light"] {
  --sc-a: #f3f0ff; --sc-b: #8da4ff; --sc-c: #5a3fd6; --sc-g1: rgba(70, 60, 200, 0.55); --sc-g2: rgba(90, 60, 210, 0.45);
  --tp-0: #ffffff; --tp-1: #8da4ff; --tp-2: #5a3fd6; --tp-glow: rgba(90, 70, 210, 0.5);
  --ts-fill: #6b55e0; --ts-glow: rgba(90, 70, 210, 0.6); --orbit-c: rgba(90, 70, 210, 0.6);
}
body.has-cur,
body.has-cur * { cursor: none !important; }
#cur {
  position: fixed;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  z-index: 190;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 5px var(--sc-g1)) drop-shadow(0 0 13px var(--sc-g2));
  transition: opacity 0.4s ease, scale 0.3s cubic-bezier(0.22, 0.8, 0.24, 1);
  will-change: translate;
}
#cur.hot { scale: 1.3; }
body.has-cur.cur-on #cur { opacity: 1; }
.star-shape {
  position: absolute;
  inset: 2px;
  background: linear-gradient(145deg, var(--sc-a) 4%, var(--sc-b) 40%, var(--sc-c) 100%);
  clip-path: polygon(50% 0%, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0% 50%, 39% 37%);
  animation: starBreathe 2.4s ease-in-out infinite;
}
.star-shape::after { content: ""; position: absolute; inset: 7px; background: #fff; clip-path: inherit; opacity: 0.55; }
.star-core { position: absolute; width: 5px; height: 5px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 8px 3px rgba(217, 229, 255, 0.9); }
.cursor-orbit { position: absolute; width: 38px; height: 15px; border: 1px solid var(--orbit-c); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-35deg); box-shadow: 0 0 8px rgba(154, 131, 255, 0.4); }
.cursor-orbit::after { content: ""; position: absolute; width: 4px; height: 4px; right: 1px; top: 1px; border-radius: 50%; background: #fff; box-shadow: 0 0 7px 2px #9ab5ff; }
.trail-particle {
  position: fixed; left: 0; top: 0; z-index: 188; width: var(--s); height: var(--s); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--tp-0) 0 12%, var(--tp-1) 30%, var(--tp-2) 65%, transparent 75%);
  box-shadow: 0 0 8px 2px var(--tp-glow);
  animation: tpFade var(--life) ease-out forwards;
}
.trail-spark {
  position: fixed; left: 0; top: 0; z-index: 189; width: var(--s); height: var(--s); pointer-events: none; background: var(--ts-fill);
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
  filter: drop-shadow(0 0 4px var(--ts-glow));
  animation: tsFade 0.7s ease-out forwards;
}
@keyframes tpFade { 0% { opacity: 0.95; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.08); } }
@keyframes tsFade { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(0.15); } }
@keyframes starBreathe { 0%, 100% { transform: scale(0.92) rotate(0); opacity: 0.9; } 50% { transform: scale(1.12) rotate(12deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .star-shape { animation: none; } }

/* ============ CURTAIN PAGE TRANSITION ============ */
#curtain {
  position: fixed;
  inset: 0;
  z-index: 185;
  pointer-events: none;
  background: var(--bg);
  border-block: 1px solid var(--line);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.52s cubic-bezier(0.76, 0, 0.24, 1);
}
#curtain.on {
  transform: scaleY(1);
}

/* ============ FAQ ============ */
.faq {
  margin-top: 36px;
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line-2);
}
.faq summary {
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  letter-spacing: -0.015em;
  transition: padding-left 0.3s ease, color 0.3s ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary b {
  color: var(--primary);
  letter-spacing: 0.1em;
}
.faq summary::after {
  content: "✦";
  margin-left: auto;
  color: var(--primary);
  font-size: 1rem;
  transition: transform 0.35s ease;
}
.faq details[open] summary {
  color: var(--primary);
}
.faq details[open] summary::after {
  transform: rotate(135deg);
}
.faq summary:hover {
  padding-left: 12px;
}
.faq p {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 70ch;
  animation: faqIn 0.35s ease;
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ============ CONTACT ============ */
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 14vw, 180px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line-2);
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pastel-peach) 26%, transparent);
  pointer-events: none;
}
.big {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7.4vw, 5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-synthesis: none;
  max-width: 16ch;
  margin: 0 auto 34px;
}
.contact-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.socials {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--muted);
}
.socials a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ============ FOOTER ============ */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line-2);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
}
@media (max-width: 1024px) {
  .tl {
    padding-left: 28px;
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: 104px;
  }
  .rail-sec {
    height: auto;
  }
  .rail-sticky {
    position: static;
    height: auto;
    padding: 88px 0;
  }
  .rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }
  .pcard {
    scroll-snap-align: center;
    transform: none !important;
  }
  .rail-hint {
    display: none;
  }
  .catalog li {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }
  .foot {
    flex-direction: column;
  }
}

/* ============ HERO ROLE LINE ============ */
.hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: -4px 0 14px;
  font-family: var(--mono);
  font-size: clamp(0.76rem, 1.3vw, 0.87rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-role i {
  color: var(--primary);
  font-style: normal;
  font-size: 0.7em;
}
@media (max-width: 640px) {
  .hero-role {
    gap: 8px;
    letter-spacing: 0.14em;
  }
}

/* ============ CONSTELLATION LABEL ============ */

/* anchor offset so fixed nav never clips a section heading */
section[id] {
  scroll-margin-top: 104px;
}



/* ============ ABOUT: editorial bio + portrait slot ============ */
.bio-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
  margin-top: 30px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}

.bio-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  min-width: 0;
}
.bio-prose p {
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.78;
  color: color-mix(in srgb, var(--txt) 88%, transparent);
}
.bio-prose p + p { margin-top: 20px; }

.about-status {
  width: 100%;
  margin-top: auto;
  padding: clamp(20px, 2.6vw, 30px);
  background: color-mix(in srgb, var(--panel) 88%, var(--bg));
  backdrop-filter: blur(10px);
}
.about-status-label {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.68rem;
}
.about-status h3 {
  max-width: 24ch;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.about-status-copy {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.about-status .btn { min-height: 44px; }

.bio {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-width: 0;
  margin: 0;
}
.bio > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--txt) 14%, transparent);
}
.bio > div:last-child { border-bottom: 0; }

.bio dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--txt) 76%, transparent);
}

.bio dd {
  color: var(--txt);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .bio-wrap { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr); }
}

@media (max-width: 640px) {
  .bio-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 22px; }
  .bio-left { gap: 24px; }
  .bio { grid-template-rows: none; }
  .bio > div { padding: 16px 0; }
}

/* =======================================================================
   TechText — vanilla port of the React Bits component (was techtext.css)
   ======================================================================= */
/* TechText (vanilla port) — component CSS + hero wordmark sizing */
.tech-text {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  user-select: none;
}

.tech-text-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* the hero slot that hosts the canvas wordmark */
.hero-wordmark {
  position: relative;
  width: 100%;
  max-width: 940px;
  height: clamp(96px, 13vw, 186px);
  margin: 2px 0 0;
  color: var(--txt);
  z-index: 2;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.6vw, 1.06rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--txt) 72%, transparent);
  margin-bottom: 14px;
}

/* visually hidden, still read by screen readers and crawlers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .hero-kicker {
    font-size: clamp(0.88rem, 3.6vw, 1rem);
    letter-spacing: 0.16em;
  }
  .hero-wordmark {
    height: clamp(84px, 22vw, 132px);
  }
}

/* =======================================================================
   OrbitImages — vanilla port of the React Bits component (was orbitimages.css)
   ======================================================================= */
/* OrbitImages (vanilla port) — component CSS + skills-section slot styling */
.orbit-container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.orbit-container[data-draggable] {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.orbit-container[data-dragging],
.orbit-container[data-dragging] * {
  cursor: grabbing;
}

.orbit-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.orbit-item {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
}

.orbit-container[data-intro] .orbit-item {
  opacity: 0;
}

.orbit-item[data-clickable] {
  cursor: pointer;
}

.orbit-item-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--orbit-radius, 0px);
  box-shadow: 0 calc(var(--orbit-shadow, 0) * 16px) calc(var(--orbit-shadow, 0) * 36px)
    rgba(0, 0, 0, calc(var(--orbit-shadow, 0) * 0.45));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.orbit-item:hover .orbit-item-inner,
.orbit-item:focus-visible .orbit-item-inner {
  transform: scale(var(--orbit-hover-scale, 1));
}

.orbit-item:focus-visible {
  outline: none;
}

.orbit-item:focus-visible .orbit-item-inner {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.orbit-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.orbit-center-content {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.orbit-center-content > * {
  pointer-events: auto;
}

/* ------- skills section integration ------- */
.orbit-slot {
  margin: 4px auto 72px;
  width: 100%;
}

/* each orbiting tile uses the same chip language as the skills pyramid */
.orbit-slot .orbit-item-inner {
  display: grid;
  place-items: center;
  padding: 22%;
  background: var(--panel);
  border: 1px solid var(--line);
}

.orbit-slot .orbit-image {
  object-fit: contain;
  filter: grayscale(1) contrast(1.3) brightness(1.2);
}

[data-theme="light"] .orbit-slot .orbit-image {
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}

.orbit-slot .orbit-path-svg {
  color: var(--primary);
}

.orbit-label {
  text-align: center;
  line-height: 1.1;
}

.orbit-label b {
  display: block;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.orbit-label span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .orbit-slot {
    margin-bottom: 48px;
  }
  .orbit-label b {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-item-inner {
    transition: none;
  }
}


/* =======================================================================
   HERO: Bumi 3D, pil ketersediaan, signature, sosial, scroll indicator
   ======================================================================= */
#earth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#earth.on { opacity: 1; }
[data-theme="light"] #earth.on { filter: drop-shadow(0 10px 34px rgba(40, 50, 130, 0.38)); }
@media (max-width: 760px) { #earth.on { opacity: 0.6; } }

.hero-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 20px;
  padding: 7px 17px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 60%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--txt) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-pill::after {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 65%, transparent), transparent);
}
.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pillPulse 2.2s ease-in-out infinite;
}
@keyframes pillPulse { 50% { box-shadow: 0 0 2px var(--primary); opacity: 0.7; } }

.hero-kicker::after {
  content: "✦";
  margin-left: 0.8em;
  font-size: 0.8em;
  color: var(--primary);
}
.hero-role { color: color-mix(in srgb, var(--txt) 80%, transparent); }
.hero-role::after {
  content: "";
  flex: 0 1 140px;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--txt) 38%, transparent), transparent);
}

.hero-sign {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 26px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--primary);
}
.hero-sign .sg-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero-sign p {
  margin: 0;
  font: italic 500 clamp(1.3rem, 2.2vw, 1.75rem) / 1.2 "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--txt);
}
.hero-sign .sg-line {
  flex: none;
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.hero-cta { margin: 26px 0 22px; }
.hero-social { display: flex; align-items: center; gap: 12px; }
.hero-social a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--txt) 24%, transparent);
  background: rgba(8, 16, 43, 0.38);
  color: color-mix(in srgb, var(--txt) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: translate 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s, background 0.25s;
}
.hero-social a:hover {
  translate: 0 -3px;
  color: #fff;
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, rgba(8, 16, 43, 0.5));
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 38%, transparent);
}
.hero-social svg { width: 22px; height: 22px; fill: currentColor; }
.hero-social svg.ln { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-social svg.ln .fl { fill: currentColor; stroke: none; }
.hero-social .sc-sep {
  flex: 0 1 150px;
  height: 1px;
  margin-left: 6px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--txt) 30%, transparent), transparent);
}
[data-theme="light"] .hero-social a { background: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .hero-pill { background: color-mix(in srgb, var(--primary) 18%, #fff); }

/* ---- scroll indicator ---- */
.scroll-cue {
  position: fixed;   /* menempel di dasar layar selama masih di atas halaman */
  z-index: 6;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  width: min(480px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #aab6ff;
  transition: opacity 0.5s ease, translate 0.5s ease;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  inset: -24px -40px -12px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 65%, rgba(3, 5, 16, 0.6), transparent 72%);
}
[data-theme="light"] .scroll-cue::before { background: radial-gradient(ellipse at 50% 65%, rgba(251, 247, 242, 0.75), transparent 72%); }
.scroll-cue.gone { opacity: 0; translate: -50% 14px; pointer-events: none; }
.cue-art { width: 100%; height: auto; overflow: visible; }
.cue-mini { display: none; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.cue-label { font: 500 12px var(--mono); letter-spacing: 0.5em; fill: #e2e8ff; }
.cue-c1 { animation: cueCh 1.9s ease-in-out infinite; }
.cue-c2 { animation: cueCh 1.9s ease-in-out 0.25s infinite; }
.cue-art .cue-wheel, .cue-art .cue-twinkle, .cue-art .cue-c1, .cue-art .cue-c2 { transform-box: fill-box; transform-origin: center; }
.cue-wheel { animation: cueWheel 1.9s ease-in-out infinite; }
@keyframes cueWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.cue-twinkle { animation: cueTw 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes cueTw { 50% { opacity: 0.45; transform: scale(0.8); } }
.cue-text {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  white-space: nowrap;
  color: #e2e8ff;
}
.cue-text i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #6f7dff); }
.cue-text i:last-child { background: linear-gradient(90deg, #6f7dff, transparent); }
.cue-text b { font-weight: 400; font-size: 0.8rem; color: #8ea6ff; filter: drop-shadow(0 0 4px #6f7dff); }
.cue-chev { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: #8f9bff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px #6f7dff); }
.cue-chev .c1 { animation: cueCh 1.9s ease-in-out infinite; }
.cue-chev .c2 { animation: cueCh 1.9s ease-in-out 0.25s infinite; }
@keyframes cueCh { 0%, 100% { opacity: 0.25; transform: translateY(-2px); } 50% { opacity: 1; transform: translateY(2px); } }
.scroll-cue:hover .cue-text { color: #fff; }
[data-theme="light"] .scroll-cue { color: #3f4fa8; }
[data-theme="light"] .cue-text { color: #2a3466; }
[data-theme="light"] .cue-label { fill: #2a3466; }

@media (max-width: 700px) {
  .hero-sign .sg-line, .hero-social .sc-sep, .hero-pill::after { display: none; }
  .hero-social a { width: 46px; height: 46px; }
  .scroll-cue { width: min(250px, 70vw); bottom: 14px; }
  .cue-art { display: none; }
  .cue-mini { display: flex; }
}
@media (max-height: 840px) and (min-width: 701px) { .scroll-cue { width: 400px; } }
@media (max-height: 720px) and (min-width: 701px) { .scroll-cue { width: 330px; } }
@media (prefers-reduced-motion: reduce) {
  .cue-wheel, .cue-twinkle, .cue-chev path, .cue-c1, .cue-c2, .pill-dot { animation: none; }
}
