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

:root {
  --page-bg: #ececeb;
  --page-fg: #161616;
  --accent: #708c8a;
  --muted: rgba(22, 22, 22, 0.54);
  --page-top-glow: rgba(255, 255, 255, 0.72);
  --glass-tint: #bbbabc;
  --glass-light: #ffffff;
  --glass-dark: #000000;
  --glass-reflex-dark: 1;
  --glass-reflex-light: 1;
  --dock-size: 54px;
  --dock-gap: 8px;
  --dock-radius: 23.5%;
  --pill-border: color-mix(in srgb, var(--page-fg) 16%, transparent);
  --hairline: color-mix(in srgb, var(--page-fg) 10%, transparent);
  --dim-50: color-mix(in srgb, var(--page-fg) 50%, transparent);
}

body[data-theme="dark"] {
  --pill-border: color-mix(in srgb, var(--page-fg) 24%, transparent);
  --hairline: color-mix(in srgb, var(--page-fg) 18%, transparent);
  --page-bg: #000000;
  --page-fg: #f5f5f2;
  --accent: #84b6a8;
  --muted: rgba(245, 245, 242, 0.56);
  --page-top-glow: transparent;
  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.3;
}

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 8%, var(--page-top-glow), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #f4f4f3 0%, #efefee 36%, var(--page-bg) 100%);
  color: var(--page-fg);
  font-family: "DM Sans", "Helvetica Neue", "Arial Nova", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 420ms cubic-bezier(0.22, 1, 0.36, 1), color 320ms ease;
  overflow-x: hidden;
}

body[data-theme="dark"] { background: #000; }

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

button { font-family: inherit; }

/* ── Custom cursor dot ───────────────────────────── */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #161616;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  z-index: 100;
  transition: opacity 160ms ease, width 180ms ease, height 180ms ease;
  will-change: transform;
}

body[data-theme="dark"] .cursor-dot { background: #fff; }
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hot { width: 18px; height: 18px; opacity: 0.28; }
.cursor-dot { will-change: transform; backface-visibility: hidden; }

@media (hover: hover) and (pointer: fine) {
  body.cursor-native-off,
  body.cursor-native-off * { cursor: none !important; }
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
}

/* ── Page transition overlay ─────────────────────── */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
}

.page-transition.is-active {
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
}

.page-transition__svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
}

.page-transition__path {
  transform-origin: center bottom;
  shape-rendering: geometricPrecision;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ── Header pill ─────────────────────────────────── */

.page-header {
  display: flex;
  justify-content: center;
  position: fixed;
  top: max(46px, calc(env(safe-area-inset-top, 0px) + 20px));
  left: 0;
  right: 0;
  z-index: 6;
  pointer-events: none;
  transition: filter 320ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 240ms ease,
              visibility 240ms ease;
}

body:has(.page-transition.is-active) .page-header {
  filter: blur(6px);
}

.site-switcher {
  --switch-height: 28px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 24%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.site-switcher__button {
  appearance: none;
  border: none;
  background: transparent;
  min-height: var(--switch-height);
  height: var(--switch-height);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: color-mix(in srgb, var(--page-fg) 72%, transparent);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.site-switcher__button::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 220ms ease;
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .site-switcher__button:hover { color: color-mix(in srgb, var(--page-fg) 92%, transparent); }
  .site-switcher__button:hover::after { background: color-mix(in srgb, var(--page-bg) 88%, transparent); }
}

.site-switcher__button:focus-visible { color: color-mix(in srgb, var(--page-fg) 92%, transparent); outline: none; }
.site-switcher__button:focus-visible::after { background: color-mix(in srgb, var(--page-bg) 88%, transparent); }
.site-switcher__button:active { transform: scale(0.97); }

.site-switcher__theme { width: 32px; min-width: 32px; padding: 0; position: relative; z-index: 1; }
.site-switcher__theme::after { inset: 4px; }

.site-switcher__icon {
  width: 15px;
  height: 15px;
  position: absolute;
  color: currentColor;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-switcher__label { position: relative; z-index: 1; }

.site-switcher__icon--sun { opacity: 1; transform: scale(1) rotate(0deg); }
.site-switcher__icon--moon { opacity: 0; transform: scale(0.72) rotate(-18deg); }
.site-switcher[data-theme="dark"] .site-switcher__icon--sun { opacity: 0; transform: scale(0.72) rotate(18deg); }
.site-switcher[data-theme="dark"] .site-switcher__icon--moon { opacity: 1; transform: scale(1) rotate(0deg); }

.site-switcher__about {
  padding-inline: 12px;
  text-transform: lowercase;
  position: relative;
  z-index: 1;
  gap: 5px;
  display: inline-flex;
  align-items: center;
}

.site-switcher__about-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  opacity: 0;
  width: 0;
  margin-left: -5px;
  transition: opacity 220ms ease, width 220ms ease, margin 220ms ease;
}

body[data-view="about"] .site-switcher__about-icon {
  opacity: 1;
  width: 11px;
  margin-left: 0;
}
.site-switcher__about::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: color-mix(in srgb, var(--page-fg) 14%, transparent);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.site-switcher__about[aria-current="page"] { color: color-mix(in srgb, var(--page-fg) 96%, transparent); }
.site-switcher__about[aria-current="page"]::after { background: color-mix(in srgb, var(--page-bg) 92%, transparent); }

.site-switcher__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  position: relative;
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  gap: clamp(28px, 4vh + 10px, 44px);
  transform: translateY(clamp(-92px, -9.5vh, -56px));
  transition: opacity 280ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__identity { display: grid; justify-items: center; gap: 16px; }

.hero__avatar-stack {
  position: relative;
  width: 140px;
  height: 140px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  border-radius: 50%;
  outline: none;
}

.hero__avatar-stack:focus-visible { box-shadow: 0 0 0 2px var(--page-fg); }

.hero__avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--page-fg) 14%, transparent);
  filter: grayscale(1) contrast(1.06);
  transition: opacity 220ms ease, filter 320ms ease;
}

body:not([data-theme="dark"]) .hero__avatar--dark,
body[data-theme="dark"] .hero__avatar--light { opacity: 0; }

/* avatar bubble */
.avatar-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
}

.avatar-bubble.is-active { visibility: visible; }

.avatar-bubble__content {
  --bubble-bg: #f0f0f0;
  --bubble-fg: #1a1a1a;
  position: relative;
  background: var(--bubble-bg);
  color: var(--bubble-fg);
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

body[data-theme="dark"] .avatar-bubble__content { --bubble-bg: #2a2a2a; --bubble-fg: #fff; }

.avatar-bubble__tail {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 9px;
  height: 9px;
  background: var(--bubble-bg);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}

.hero__name {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.1;
  font-weight: 400;
}

.hero__title {
  margin: 0;
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  font-size: clamp(3.15rem, 1.0125vw + 2.4375rem, 3.975rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: center;
}

.hero__line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.hero__line--copy {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.14em);
  animation: line-in 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes line-in {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.words-stagger__word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(0.4em);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.words-stagger__word + .words-stagger__word { margin-left: 0.26em; }
.words-stagger__word.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

/* mobile app grid — hidden on desktop, replaces dock on <=640px */
.hero__mobile-apps { display: none; }

/* ── Book card above dock ────────────────────────── */

.hero__content > .book-card {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: clamp(16px, 2.5vh, 28px);
  transform: translateX(-50%);
  z-index: 3;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.book-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px 9px 9px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--page-fg) 12%, transparent);
  background: color-mix(in srgb, var(--page-bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #ffffff 26%, transparent),
    0 10px 26px -12px color-mix(in srgb, #000000 22%, transparent);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
}

.book-card__cover {
  width: 30px;
  height: 41px;
  border-radius: 4px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.book-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.book-card__copy { display: grid; gap: 3px; text-align: left; }

.book-card__title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.book-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  line-height: 1;
  color: color-mix(in srgb, var(--page-fg) 60%, transparent);
}

.book-card__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ea580c;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.book-card__arrow {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: color-mix(in srgb, var(--page-fg) 46%, transparent);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), color 260ms ease;
}

.book-card__arrow svg { width: 100%; height: 100%; }

@media (hover: hover) and (pointer: fine) {
  .book-card:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, #ffffff 40%, transparent),
      0 16px 32px -14px color-mix(in srgb, #000000 28%, transparent);
  }
  .book-card:hover .book-card__arrow {
    transform: translateX(3px);
    color: color-mix(in srgb, var(--page-fg) 82%, transparent);
  }
}

.book-card:focus-visible { outline: 2px solid var(--page-fg); outline-offset: 3px; }
.book-card:active { transform: scale(0.985); }

.hero__content > .book-card:hover { transform: translateX(-50%) translateY(-3px); }
.hero__content > .book-card:active { transform: translateX(-50%) scale(0.985); }

/* ── Dock glass ──────────────────────────────────── */

.dock__glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 22px;
  background-color: color-mix(in srgb, var(--glass-tint) 15%, rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow:
    inset 0 1px 1px 0 color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 62%), transparent),
    inset 0 -1px 2px 0 color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 12%), transparent),
    0 12px 28px 0 color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 10%), transparent);
}

.dock__glass::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 54%), transparent),
    inset 0 -1px 0 color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 6%), transparent);
  opacity: 0.62;
}

.dock__separator {
  width: 1px;
  height: 42px;
  margin: 0 7px;
  background: var(--pill-border);
  align-self: center;
  transition: background 320ms ease;
}

.dock__track {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--dock-gap);
  margin: 0;
  padding: 0;
}

.dock__item { position: relative; display: flex; }

.dock__link { display: grid; justify-items: center; outline: none; }

.dock__tile {
  width: var(--dock-size);
  height: var(--dock-size);
  border-radius: var(--dock-radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.dock__tile svg { width: 55%; height: 55%; display: block; color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .dock__link:hover .dock__tile {
    transform: translateY(-9px) scale(1.1);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.34);
  }
}

.dock__link:focus-visible .dock__tile {
  box-shadow: 0 0 0 2px var(--page-bg), 0 0 0 4px var(--page-fg);
}

.dock__link:active .dock__tile { transform: scale(0.95); }

.dock__label {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.92);
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-fg) 88%, transparent);
  color: color-mix(in srgb, var(--page-bg) 96%, white);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
  will-change: opacity, transform;
  transition:
    opacity 150ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 150ms;
}

@media (hover: hover) and (pointer: fine) {
  .dock__link:hover .dock__label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px) scale(1);
  }
}

.dock__link:focus-visible .dock__label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px) scale(1);
}

/* ── Project screens ─────────────────────────────── */

.project-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 24px;
  z-index: 3;
  pointer-events: none;
}

body:not([data-view="home"]) .project-screen {
  overflow-x: clip;
  overflow-y: auto;
}

.project-screen__inner {
  width: min(880px, calc(100vw - 48px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(-28px) scale(0.98);
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-screen__panel { width: 100%; }
.project-screen__panel[hidden] { display: none !important; }
.project-screen__panel.about-screen { width: min(516px, 100%); margin-inline: auto; }

.project-screen__back {
  appearance: none;
  border: 1px solid var(--pill-border);
  background: transparent;
  padding: 0 12px 0 10px;
  min-width: 74px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--page-fg) 72%, transparent);
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 26%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 220ms ease, border-color 220ms ease, opacity 220ms ease, transform 120ms ease-out;
}

.project-screen__back:active { transform: scale(0.97); }
.project-screen__back--fixed:active { transform: translateX(-50%) scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .project-screen__back:hover {
    color: color-mix(in srgb, var(--page-fg) 92%, transparent);
    border-color: color-mix(in srgb, var(--page-fg) 24%, transparent);
  }
}

.project-screen__back:focus-visible { outline: 2px solid var(--page-fg); outline-offset: 3px; }

.project-screen__back-icon { width: 11px; height: 11px; flex: 0 0 auto; }

.project-screen__back--fixed {
  position: fixed;
  top: 56px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
}

/* ── About screen ────────────────────────────────── */

/* language toggle + spans */
.about-screen__lead-text { flex: 1 1 auto; }

.lang-toggle {
  appearance: none;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: transparent;
  color: color-mix(in srgb, var(--page-fg) 70%, transparent);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 24%, transparent);
  transition: color 220ms ease, border-color 220ms ease, transform 120ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .lang-toggle:hover {
    color: color-mix(in srgb, var(--page-fg) 92%, transparent);
    border-color: color-mix(in srgb, var(--page-fg) 26%, transparent);
  }
}

.lang-toggle:focus-visible { outline: 2px solid var(--page-fg); outline-offset: 3px; }
.lang-toggle:active { transform: scale(0.97); }

.lang { display: none; }
body[data-lang="en"] .lang--en { display: inline; }
body[data-lang="en"] .lang--id { display: none; }
body:not([data-lang="en"]) .lang--id { display: inline; }

.about-screen__inner { position: relative; display: grid; gap: 32px; }

.about-screen__copy { display: grid; gap: 18px; text-align: left; }

.about-screen__paragraph {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--page-fg) 82%, transparent);
}

.about-screen__paragraph--lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--page-fg);
}

.about-screen__paragraph a {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
  color: var(--page-fg);
}

.about-section { display: grid; gap: 8px; }

.about-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.about-section__title {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--page-fg) 46%, transparent);
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.about-list__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}

.about-list__item:last-child { border-bottom: none; }

.about-list__name {
  font-size: 0.95rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--page-fg) 90%, transparent);
}

.about-list__item--link .about-list__name {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--page-fg) 30%, transparent);
  transition: text-decoration-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-list__item--link:hover .about-list__name {
    text-decoration-color: var(--page-fg);
  }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 4px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-fg) 12%, transparent);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
}

.timeline__logo {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.timeline__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.timeline__content {
  display: grid;
  gap: 2px;
  padding-top: 1px;
}

.timeline__org-name {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 650;
  color: color-mix(in srgb, var(--page-fg) 94%, transparent);
}

.timeline__total {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--page-fg) 52%, transparent);
}

.timeline__roles {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.timeline__role-item {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--page-fg) 10%, transparent);
}

.timeline__role {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 500;
  color: color-mix(in srgb, var(--page-fg) 86%, transparent);
}

.timeline__meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: color-mix(in srgb, var(--page-fg) 54%, transparent);
}

.timeline__desc {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--page-fg) 62%, transparent);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

span.skill-chip--lang .lang--en { display: none !important; }
body[data-lang="en"] span.skill-chip--lang .lang--en { display: inline !important; }
body[data-lang="en"] span.skill-chip--lang .lang--id { display: none !important; }

.skill-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--page-fg) 14%, transparent);
  font-size: 0.78rem;
  line-height: 1;
  color: color-mix(in srgb, var(--page-fg) 78%, transparent);
}

.about-list__meta {
  font-size: 0.75rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--page-fg) 52%, transparent);
}

.about-screen__cta-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.about-screen__cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--page-fg) 14%, transparent);
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--page-fg) 78%, transparent);
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-screen__cta-badge:hover {
    color: var(--page-fg);
    border-color: color-mix(in srgb, var(--page-fg) 30%, transparent);
    background: color-mix(in srgb, var(--page-fg) 5%, transparent);
  }
}

.about-screen__cta-badge:focus-visible { outline: 2px solid var(--page-fg); outline-offset: 3px; }

.about-screen__cta-badge-icon { width: 15px; height: 15px; flex: 0 0 auto; }
/* ── FANA screen ─────────────────────────────────── */

.screen-panel {
  display: grid;
  justify-items: center;
  gap: 40px;
  padding-bottom: 120px;
}

.screen-panel__hero {
  width: min(560px, 100%);
  margin: 152px auto 0;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.fana-screen__cover {
  width: 150px;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.5);
}

.fana-screen__title {
  margin: 8px 0 0;
  font-size: clamp(2.6rem, 2vw + 2rem, 3.6rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.fana-screen__badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  color: color-mix(in srgb, #ea580c 88%, var(--page-fg));
  border: 1px solid color-mix(in srgb, #ea580c 34%, transparent);
  background: color-mix(in srgb, #ea580c 10%, transparent);
}

.fana-screen__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ea580c;
  animation: dot-pulse 2s ease-in-out infinite;
}

.fana-screen__summary {
  margin: 4px 0 0;
  width: min(34rem, 100%);
  font-size: clamp(1.02rem, 0.28vw + 0.96rem, 1.24rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--page-fg) 74%, transparent);
  text-wrap: pretty;
}

.fana-screen__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--page-fg);
  color: var(--page-bg);
  font-size: 0.86rem;
  font-weight: 500;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.fana-screen__cta svg { width: 13px; height: 13px; }

@media (hover: hover) and (pointer: fine) {
  .fana-screen__cta:hover { transform: translateY(-2px); opacity: 0.92; }
}

.fana-screen__cta:focus-visible { outline: 2px solid var(--page-fg); outline-offset: 3px; }
.fana-screen__cta:active { transform: scale(0.98); }

.fana-screen__facts {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.fana-screen__fact { display: grid; gap: 8px; }

.fana-screen__label {
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--page-fg) 42%, transparent);
}

.fana-screen__value {
  font-size: 0.95rem;
  line-height: 1.2;
  color: color-mix(in srgb, var(--page-fg) 84%, transparent);
}

.fana-screen__footer { display: grid; justify-items: center; }

.work-screen { gap: 36px; }

.work-screen__title {
  margin: 0;
  font-size: clamp(2.2rem, 2vw + 1.6rem, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-screen__lede {
  margin: 0;
  width: min(34rem, 100%);
  font-size: 1rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--page-fg) 70%, transparent);
}

.work-screen__body {
  width: min(620px, 100%);
  display: grid;
  gap: 40px;
  text-align: left;
}

/* ── View state ──────────────────────────────────── */

body:not([data-view="home"]) .hero { pointer-events: none; visibility: hidden; }
body:not([data-view="home"]) .hero__content { opacity: 0; transform: translateY(-4px) scale(0.995); }

body:not([data-view="home"]) .project-screen { pointer-events: auto; }

body:not([data-view="home"]) #project-screen .project-screen__inner {
  opacity: 1;
  transform: translateY(clamp(-52px, -4.5vh, -20px)) scale(1);
}

body:not([data-view="home"]):not([data-view="about"]) .page-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:not([data-view="home"]) .dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* about: hanya teks + badge, tanpa back button (kembali via tombol about) */
body[data-view="about"] .project-screen__back { display: none; }

/* ── Responsive: tablet ──────────────────────────── */

@media (max-width: 900px) {
  .page-header { top: 28px; }
  .site-switcher { --switch-height: 26px; }
  .site-switcher__button { font-size: 0.76rem; }
  .hero { padding: 22px; }
  .hero__content { gap: 38px; transform: translateY(-44px); }
  .hero__avatar-stack { width: 102px; height: 102px; }
  .hero__name { font-size: 1rem; }
  .hero__title { font-size: clamp(2.475rem, 1.2vw + 1.575rem, 3.15rem); line-height: 0.94; }
  .project-screen__inner { width: min(700px, calc(100vw - 44px)); gap: 16px; }
  :root { --dock-size: 46px; --dock-gap: 7px; }
}

/* ── Responsive: mobile ──────────────────────────── */

@media (max-width: 640px) {
  :root { --dock-size: 28px; --dock-gap: 5px; }

  .page-header { top: 24px; }
  .site-switcher { --switch-height: 24px; }

  .hero {
    min-height: 100svh;
    place-items: start center;
    grid-template-columns: minmax(0, 1fr);
    padding: 88px 20px 30px;
  }

  .hero__content {
    width: 100%;
    max-width: 344px;
    justify-self: center;
    gap: 14px;
    transform: none;
  }

  .hero__identity { gap: 10px; }
  .hero__avatar-stack { width: 100px; height: 100px; }
  .hero__name { font-size: 1rem; color: color-mix(in srgb, var(--page-fg) 74%, transparent); }

  .hero__title {
    margin-top: 16px;
    width: 100%;
    max-width: 22ch;
    justify-self: center;
    font-size: clamp(2.15rem, 2.1vw + 1.62rem, 2.75rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }

  /* book card sedikit lebih besar di mobile */
  .hero__content > .book-card {
    padding: 10px 17px 10px 10px;
    gap: 13px;
  }

  .book-card__cover { width: 34px; height: 46px; }
  .book-card__title { font-size: 0.92rem; }
  .book-card__meta { font-size: 0.77rem; }
  .book-card__arrow { width: 16px; height: 16px; }

  .hero__line {
    width: 100%;
    white-space: normal;
    text-wrap: balance;
  }

  .hero__line--copy { letter-spacing: -0.025em; white-space: normal; }

  .avatar-bubble { bottom: auto; top: 100%; margin-bottom: 0; margin-top: 10px; }
  .avatar-bubble .avatar-bubble__tail { bottom: auto; top: -4px; }

  .hero__mobile-apps {
    width: 100%;
    max-width: 330px;
    justify-self: center;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 26px 12px;
    margin-top: 20px;
  }

  .hero__mobile-app {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 7px;
    outline: none;
  }

  .hero__mobile-app-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 23.5%;
    overflow: hidden;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero__mobile-app-icon svg { width: 55%; height: 55%; color: #fff; }
  .hero__mobile-app-icon img { width: 100%; height: 100%; object-fit: cover; }
  .hero__mobile-app:active .hero__mobile-app-icon { transform: scale(0.94); }
  .hero__mobile-app:focus-visible .hero__mobile-app-icon { box-shadow: 0 0 0 2px var(--page-bg), 0 0 0 4px var(--page-fg); }

  .hero__mobile-app-label {
    font-size: 0.76rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: color-mix(in srgb, var(--page-fg) 66%, transparent);
    text-align: center;
  }

  .dock__glass { display: none; }

  .hero__content > .book-card,
  .hero__content > .book-card:hover,
  .hero__content > .book-card:active {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 14px 0 0;
    align-self: center;
  }

  .dock { display: none; }

  .book-card { padding: 8px 13px 8px 8px; gap: 10px; }
  .book-card__cover { width: 22px; height: 31px; }
  .book-card__title { font-size: 0.74rem; }
  .book-card__meta { font-size: 0.64rem; }

  .project-screen { padding: 16px; }
  .project-screen__inner { width: min(100%, calc(100vw - 32px)); gap: 14px; }
  .project-screen__back--fixed { top: 60px; }
  .about-screen__paragraph--lead { font-size: 1.35rem; }

  .screen-panel { gap: 32px; padding-bottom: 72px; }
  .screen-panel__hero { margin-top: 132px; }
  .work-screen { gap: 28px; }
  .timeline::before { left: 19px; }
  .timeline__item { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .timeline__logo { width: 38px; height: 38px; border-radius: 9px; }
  .timeline__desc { font-size: 0.79rem; }
  .timeline__roles { gap: 12px; }
  .timeline__role-item { padding-left: 11px; }
  .work-screen__body { width: 100%; }
  .fana-screen__cover { width: 112px; }
  .fana-screen__facts { grid-template-columns: minmax(0, 1fr); gap: 16px; text-align: left; }
  .fana-screen__fact { gap: 5px; }
}

@media (max-width: 380px) {
  .hero { padding: 92px 16px 26px; }
  .hero__title { width: 100%; font-size: clamp(1.95rem, 2.2vw + 1.45rem, 2.4rem); }
  .hero__line--copy { white-space: normal; text-wrap: balance; }
  .hero__name { font-size: 0.94rem; }
  .hero__mobile-apps { gap: 22px 8px; margin-top: 20px; max-width: 300px; }
  .hero__mobile-app-icon { width: 62px; height: 62px; }
  .hero__mobile-app-label { font-size: 0.7rem; }
  .site-switcher__about { padding-inline: 9px; }
}

/* ── Short viewports (landscape phone / laptop pendek) ── */

@media (min-width: 641px) and (max-height: 540px) {
  .hero {
    place-items: center;
    padding-top: 76px;
    padding-bottom: 150px;
  }

  .hero__content {
    gap: 22px;
    transform: none;
  }

  .hero__avatar-stack { width: 72px; height: 72px; }
  .hero__name { font-size: 0.9rem; }

  .hero__title {
    font-size: clamp(1.85rem, 3vw + 0.9rem, 2.6rem);
    line-height: 1;
  }

  .dock { bottom: 22px; gap: 10px; }
  .book-card { padding: 7px 12px 7px 7px; gap: 10px; }
  .book-card__cover { width: 22px; height: 31px; }
  :root { --dock-size: 42px; --dock-gap: 6px; }
  .dock__glass { padding: 9px; border-radius: 18px; }
}

/* layar pendek: panel about/work tidak digeser naik agar tidak menabrak pill header */
@media (min-width: 641px) and (max-height: 700px) {
  body:not([data-view="home"]) #project-screen .project-screen__inner {
    transform: scale(1);
  }
}

@media (max-height: 700px) {
  .screen-panel__hero { margin-top: 108px; }
  .fana-screen__cover { width: 112px; }
  .fana-screen { gap: 28px; padding-bottom: 64px; }
}

@media (max-width: 640px) and (max-height: 660px) {
  .hero {
    padding: 72px 16px 16px;
    align-content: start;
  }

  .hero__content { gap: 10px; }
  .hero__avatar-stack { width: 74px; height: 74px; }
  .hero__name { font-size: 0.9rem; }
  .hero__title { margin-top: 8px; font-size: clamp(1.65rem, 2.8vw + 1.05rem, 1.95rem); }

  .hero__mobile-apps {
    gap: 12px 10px;
    margin-top: 16px;
    max-width: 290px;
  }

  .hero__mobile-app-icon { width: 50px; height: 50px; }
  .hero__mobile-app-label { font-size: 0.64rem; }
}

@media (max-width: 380px) and (max-height: 700px) {
  .hero__mobile-app-icon { width: 56px; height: 56px; }
}

/* ── Reduced motion ──────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero__line--copy { animation: none; opacity: 1; filter: none; transform: none; }
  .words-stagger__word { filter: none; transform: none; transition: opacity 200ms ease; }
  .hero__content { transition: opacity 200ms ease; }
  .project-screen__inner { transition: opacity 200ms ease; }
  .dock__tile,
  .book-card,
  .fana-screen__cta { transition: none; }
  .book-card__dot,
  .fana-screen__dot { animation: none; opacity: 1; }
}
