/* ============================================================
   Restu Rosenda — Portfolio
   Struktur:
   01. Design tokens & theme
   02. Reset & base
   03. Utilities (container, buttons, section, reveal)
   04. Header & navigasi
   05. Hero
   06. Marquee
   07. Tentang
   08. Keahlian
   09. Perjalanan
   10. Tujuan
   11. Kontak
   12. Footer, back-to-top, toast
   13. Responsive & reduced motion
   ============================================================ */

/* ============ 01. Design tokens ============ */
:root {
  --bg: #070a10;
  --bg-soft: #0b0f17;
  --surface: #0f141e;
  --surface-2: #131a26;

  --text: #eef2f8;
  --muted: #94a1b4;

  --accent: #74c7b0;
  --accent-strong: #b6ecd9;
  --accent-deep: #3c9483;
  --accent-soft: rgba(116, 199, 176, 0.12);
  --on-accent: #04120e;

  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.15);
  --input-bg: rgba(255, 255, 255, 0.03);
  --glass: rgba(10, 14, 21, 0.72);
  --header-bg: rgba(7, 10, 16, 0.74);

  --line: rgba(255, 255, 255, 0.06);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);

  --grad: linear-gradient(135deg, #b6ecd9, #74c7b0 55%, #3c9483);
  --hero-glow-1: rgba(116, 199, 176, 0.16);
  --hero-glow-2: rgba(88, 116, 168, 0.14);

  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f8f5ef;
  --bg-soft: #f2eee5;
  --surface: #ffffff;
  --surface-2: #fbf8f2;

  --text: #151b25;
  --muted: #5c6879;

  --accent: #1f7f70;
  --accent-strong: #2c9c8a;
  --accent-deep: #14655a;
  --accent-soft: rgba(31, 127, 112, 0.1);
  --on-accent: #ffffff;

  --border: rgba(22, 28, 38, 0.1);
  --border-strong: rgba(22, 28, 38, 0.18);
  --input-bg: #fdfbf7;
  --glass: rgba(255, 255, 255, 0.8);
  --header-bg: rgba(248, 245, 239, 0.78);

  --line: rgba(22, 28, 38, 0.06);
  --shadow: 0 30px 80px rgba(16, 44, 40, 0.12);
  --shadow-soft: 0 18px 50px rgba(16, 44, 40, 0.08);

  --grad: linear-gradient(135deg, #2c9c8a, #1f7f70 58%, #14655a);
  --hero-glow-1: rgba(44, 156, 138, 0.18);
  --hero-glow-2: rgba(80, 120, 160, 0.13);
}

/* ============ 02. Reset & base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-deep);
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.is-loaded .loader {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.loader-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loader-line {
  display: block;
  width: 132px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.loader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: translateX(-100%);
  animation: loaderSweep 1.25s ease-in-out infinite;
}

.loader-text {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes loaderSweep {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  mix-blend-mode: screen;
  transition: opacity 0.6s ease;
  will-change: transform;
}

body.has-pointer .cursor-glow {
  opacity: 0.9;
}

[data-theme="light"] .cursor-glow {
  mix-blend-mode: normal;
  opacity: 0;
}

[data-theme="light"] body.has-pointer .cursor-glow {
  opacity: 0.55;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(165, 124, 54, 0.09) 0%, transparent 62%);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============ 03. Utilities ============ */
.container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
  scroll-margin-top: var(--header-h);
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 860px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.section-eyebrow > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.section-desc {
  margin-top: 1.15rem;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 14px 34px -12px rgba(169, 127, 60, 0.65);
}

.btn-primary:hover {
  box-shadow: 0 20px 40px -14px rgba(169, 127, 60, 0.8);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm {
  padding: 0.68rem 1.2rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.6;
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.7; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

/* ============ 04. Header & navigasi ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  height: 72px;
  background: var(--header-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--accent);
  background: var(--accent-soft);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.brand:hover .brand-mark {
  border-color: var(--accent);
  transform: rotate(-4deg);
}

.brand-text {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
  padding-block: 0.4rem;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease, transform 0.25s var(--ease);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.25s ease;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease),
    opacity 0.2s ease;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 22px;
}

.menu-toggle[aria-expanded="true"] {
  border-color: var(--accent);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ============ 05. Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 60px) 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
}

.blob-1 {
  top: -18%;
  right: -8%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--hero-glow-1) 0%, transparent 66%);
  animation: blobFloat 18s ease-in-out infinite alternate;
}

.blob-2 {
  bottom: -30%;
  left: -14%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--hero-glow-2) 0%, transparent 66%);
  animation: blobFloat 24s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-34px, 30px, 0) scale(1.07); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.75;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem 0.42rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-title {
  margin-top: 1.7rem;
  font-family: var(--font-head);
  font-size: clamp(3.1rem, 6.2vw, 5.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-title em {
  display: block;
  padding-top: 0.12em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.98em;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
  font-family: var(--font-head);
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  color: var(--muted);
  min-height: 1.9em;
}

.role-prefix {
  color: var(--muted);
}

.type-text {
  color: var(--accent);
  font-weight: 500;
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--accent);
  animation: caretBlink 1s step-end infinite;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-lead {
  margin-top: 1.3rem;
  max-width: 530px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-lead strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.79rem;
  color: var(--muted);
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2.75rem;
  max-width: 480px;
}

.stat {
  padding-inline: 1.35rem;
  border-left: 1px solid var(--border);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat dt {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat dd {
  margin-top: 0.3rem;
  font-family: var(--font-head);
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.stat dd span {
  display: block;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* Hero visual */
.hero-visual {
  justify-self: end;
  width: 100%;
  max-width: 450px;
  perspective: 1000px;
}

.portrait-wrap {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orbit-1 {
  width: 300px;
  height: 300px;
  top: -64px;
  right: -58px;
  border: 1px dashed var(--border-strong);
  animation: spin 48s linear infinite;
}

.orbit-1::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 34px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.orbit-2 {
  width: 420px;
  height: 420px;
  bottom: -150px;
  left: -170px;
  border: 1px solid var(--line);
  animation: spin 70s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.portrait-card {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(155deg, rgba(116, 199, 176, 0.26), rgba(255, 255, 255, 0.04) 38%, transparent 68%),
    var(--surface);
  box-shadow: var(--shadow);
}

[data-theme="light"] .portrait-card {
  background:
    linear-gradient(155deg, rgba(165, 124, 54, 0.24), rgba(255, 255, 255, 0.3) 42%, transparent 70%),
    var(--surface);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 11px);
  border: 1px solid var(--border);
  background: #080b12;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-frame-photo {
  aspect-ratio: 520 / 620;
  background: #0b101a;
}

.net-node {
  animation: nodeTwinkle 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes nodeTwinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.portrait-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  animation: chipFloat 6s ease-in-out infinite;
}

.portrait-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.portrait-chip span {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
}

.chip-top {
  top: 34px;
  left: -30px;
}

.chip-top .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

.chip-bottom {
  right: -28px;
  bottom: 38px;
  animation-delay: -3s;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.chip-icon svg {
  width: 17px;
  height: 17px;
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--accent);
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--border);
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* ============ 06. Marquee ============ */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: 1.05rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeMove 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  margin-right: 2.4rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track .sep {
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0;
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

/* ============ 07. Tentang ============ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.about-copy > p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.about-copy .about-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.8;
  color: var(--text);
  font-weight: 300;
}

.about-copy strong {
  color: var(--text);
  font-weight: 600;
}

.about-lead strong {
  font-weight: 500;
  box-shadow: inset 0 -0.4em 0 var(--accent-soft);
}

.about-signature {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.signature-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.75rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.signature-meta {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-card {
  position: relative;
  margin-top: 2rem;
  padding: 1.6rem 1.75rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
}

.quote-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 0.7rem;
}

.quote-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  font-weight: 300;
}

.quote-card cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.about-side {
  display: grid;
  gap: 1.25rem;
}

.fact-card,
.why-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.fact-card::after,
.why-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.fact-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.35rem;
}

.fact-title::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.fact {
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.fact dt {
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin-top: 0.25rem;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}

.why-item {
  display: flex;
  gap: 1rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--border);
}

.why-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.why-item:last-of-type {
  padding-bottom: 0;
}

.why-num {
  flex: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--accent);
  opacity: 0.8;
}

.why-item h4 {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ============ 08. Keahlian ============ */
.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.skills-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.skills-badge svg {
  width: 15px;
  height: 15px;
}

.skills-intro h3 {
  margin-top: 1.35rem;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.skills-intro > p {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 430px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chip {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease, transform 0.25s var(--ease);
}

.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.skills-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--muted);
}

.skills-bars {
  display: grid;
  gap: 1.35rem;
}

.skill-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text);
}

.skill-pct {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.skill-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.skill-bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 18px -2px rgba(116, 199, 176, 0.5);
  transition: width 1.5s var(--ease);
}

/* ============ 09. Perjalanan (galeri foto) ============ */
.journey-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.journey-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.journey-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.journey-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.journey-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.journey-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}

.journey-card:hover .journey-media img {
  transform: scale(1.05);
  filter: saturate(1);
}

.journey-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.journey-tag {
  justify-self: start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.journey-body h3 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.journey-body p {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--muted);
}

/* Kartu ajakan kontak */
.journey-cta {
  position: relative;
  grid-column: span 2;
  align-content: center;
  gap: 0.65rem;
  padding: 1.9rem 1.8rem;
  overflow: hidden;
  background: radial-gradient(120% 130% at 15% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  color: var(--text);
  text-decoration: none;
}

.journey-cta-glow {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.journey-cta h3 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
}

.journey-cta p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

.journey-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.journey-cta-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.35s var(--ease);
}

.journey-cta:hover .journey-cta-link svg {
  transform: translateX(4px);
}

/* ============ 09b. Timeline lama (dipertahankan untuk kompatibilitas) ============ */
.timeline {
  position: relative;
  max-width: 880px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 31.5px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 55%, transparent);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.35rem;
  margin-bottom: 1.35rem;
}

.tl-item:last-child {
  margin-bottom: 0;
}

.tl-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.tl-item:hover .tl-marker {
  border-color: var(--accent);
  transform: scale(1.05);
}

.tl-marker.is-now {
  background: var(--grad);
  border-color: transparent;
  color: var(--on-accent);
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--accent-soft), 0 0 35px -6px rgba(116, 199, 176, 0.6);
}

.tl-card {
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.35s var(--ease),
    box-shadow 0.35s ease;
}

.tl-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.tl-card-now {
  border-color: var(--border-strong);
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 55%),
    var(--surface);
}

.tl-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-tag-now {
  color: var(--accent);
}

.tl-tag .pulse-dot {
  width: 5px;
  height: 5px;
}

.tl-card h3 {
  margin-top: 0.7rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tl-card p {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 640px;
}

/* ============ 10. Tujuan ============ */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.goal-card {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.goal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.goal-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.goal-card:hover::before {
  opacity: 1;
}

.goal-index {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  transition: opacity 0.35s ease;
}

.goal-card:hover .goal-index {
  opacity: 0.4;
}

.goal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.goal-icon svg {
  width: 22px;
  height: 22px;
}

.goal-card h3 {
  margin-top: 1.35rem;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.goal-sub {
  margin-top: 0.2rem;
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.goal-card > p:last-child {
  margin-top: 0.9rem;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ============ 11. Kontak ============ */
.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, var(--accent-soft), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel::after {
  content: "";
  position: absolute;
  bottom: -160px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  pointer-events: none;
}

.contact-info {
  position: relative;
  z-index: 1;
}

.contact-info .section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.contact-desc {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 430px;
}

.contact-list {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-head);
  font-size: 0.87rem;
  color: var(--text);
  transition: color 0.25s ease;
  word-break: break-word;
}

a.contact-value:hover {
  color: var(--accent);
}

.contact-form-wrap {
  position: relative;
  z-index: 1;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

[data-theme="light"] .contact-form {
  background: var(--surface-2);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-family: var(--font-head);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--input-bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--border-strong);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 0.25rem;
}

.form-hint {
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ============ 12. Footer, back-to-top, toast ============ */
.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.75rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 360px;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 0.72rem;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.6rem;
}

.footer-nav a {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.74rem;
  color: var(--muted);
}

.footer-made {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, visibility 0.3s ease,
    transform 0.3s var(--ease), border-color 0.25s ease, color 0.25s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.to-top svg {
  width: 17px;
  height: 17px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: calc(100vw - 2.5rem);
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  color: var(--text);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ============ 13. Responsive ============ */
@media (max-width: 1080px) {
  .nav {
    gap: 1.35rem;
  }

  .chip-top {
    left: -14px;
  }

  .chip-bottom {
    right: -12px;
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 76px;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 1.25rem;
    right: 1.25rem;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.99);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.35s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-link {
    padding: 0.8rem 0.85rem;
    border-radius: 10px;
    font-size: 0.92rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .hero {
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 88px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    justify-self: center;
    max-width: 410px;
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .about-grid,
  .skills-grid,
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .skills-intro > p {
    max-width: 620px;
  }

  .contact-desc {
    max-width: 620px;
  }

  .contact-panel::after {
    display: none;
  }

  .goals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 2.5rem);
  }

  .hero-title {
    font-size: clamp(2.85rem, 12vw, 4.2rem);
  }

  .hero-stats {
    width: 100%;
    max-width: 100%;
  }

  .stat {
    flex: 1;
    padding-inline: 0.9rem;
  }

  .stat dd span {
    font-size: 1.45rem;
  }

  .stat dd {
    font-size: 0.76rem;
    white-space: normal;
  }

  .about-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .goals-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
  }

  .tl-marker {
    width: 48px;
    height: 48px;
    font-size: 0.88rem;
  }

  .timeline::before {
    left: 23.5px;
  }

  .tl-card {
    padding: 1.2rem 1.25rem;
  }

  .footer-grid {
    flex-direction: column;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 540px) {
  .brand-text {
    display: none;
  }

  .eyebrow {
    font-size: 0.61rem;
    letter-spacing: 0.1em;
  }

  .hero {
    padding-top: calc(var(--header-h) + 34px);
  }

  .hero-role {
    font-size: 0.85rem;
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-note {
    align-items: flex-start;
    font-size: 0.73rem;
    line-height: 1.6;
  }

  .hero-note .pulse-dot {
    margin-top: 0.45rem;
  }

  .hero-stats {
    margin-top: 2.2rem;
  }

  .stat {
    padding-inline: 0.7rem;
  }

  .stat dd span {
    font-size: 1.25rem;
  }

  .hero-visual {
    max-width: 345px;
  }

  .portrait-photo {
    object-position: center 16%;
  }

  .portrait-frame-photo {
    aspect-ratio: 340 / 400;
  }

  .chip-icon {
    width: 27px;
    height: 27px;
  }

  .orbit-2 {
    display: none;
  }

  .orbit-1 {
    width: 240px;
    height: 240px;
    top: -40px;
    right: -34px;
  }

  .section-eyebrow {
    font-size: 0.65rem;
  }

  .fact-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .signature-meta {
    font-size: 0.6rem;
  }

  .contact-panel {
    padding: 1.25rem;
    border-radius: var(--radius);
  }

  .contact-form {
    padding: 1rem;
  }

  .tl-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl-marker {
    width: 42px;
    height: 42px;
    font-size: 0.8rem;
  }

  .timeline::before {
    left: 20.5px;
    top: 12px;
    bottom: 12px;
  }

  .tl-card {
    margin-top: -0.4rem;
  }

  .journey-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Kartu lebar & CTA pada layar kecil */
@media (max-width: 940px) {
  .journey-cta {
    grid-column: span 1;
    padding: 1.6rem 1.5rem;
  }
}

@media (max-width: 720px) {
  .journey-cta {
    grid-column: span 1;
  }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .skill-bar > span {
    width: var(--level, 0%);
  }

  .cursor-glow {
    display: none;
  }
}
