/* =========================================================
   Andhika — Portfolio
   Monochrome Space Engineering — Black, White & Industrial
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #080808;
  --bg-alt: #171717;
  --surface: #171717;
  --surface-2: #202020;
  --text: #ffffff;
  --text-soft: #a3a3a3;
  --muted: #737373;
  --border: #333333;
  --border-soft: #262626;
  --border-strong: #4a4a4a;
  --accent: #d97736;
  --accent-soft: rgba(217, 119, 54, 0.10);
  --accent-line: rgba(217, 119, 54, 0.42);
  --success: #a3a3a3;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);

  /* Kursor roket: memakai aksen yang sama, bukan palet baru */
  --cursor-rocket: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M16%202.5c4.1%203.1%206.4%207.2%206.4%2011.7l-2.6%204.2h-7.6l-2.6-4.2C9.6%209.7%2011.9%205.6%2016%202.5z%27%20fill%3D%27%23f5f5f5%27%20stroke%3D%27%23080808%27%20stroke-width%3D%271.2%27%20stroke-linejoin%3D%27round%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2712.4%27%20r%3D%272.7%27%20fill%3D%27%23d97736%27%2F%3E%3Cpath%20d%3D%27M10%2014.2%205.2%2020v5.1l5.2-3.5zM22%2014.2%2026.8%2020v5.1l-5.2-3.5z%27%20fill%3D%27%23d97736%27%2F%3E%3Cpath%20d%3D%27M13.2%2019.4h5.6l-1.1%204.2h-3.4z%27%20fill%3D%27%23a3a3a3%27%2F%3E%3Cpath%20d%3D%27M16%2024.2c1.7%201.3%202.5%203.2%202.3%205.3-1.5-.9-2.7-2.1-3.5-3.5-.8%201.4-2%202.6-3.5%203.5-.2-2.1.6-4%202.3-5.3z%27%20fill%3D%27%23d97736%27%2F%3E%3C%2Fsvg%3E");

  /* Posisi perjalanan: di-update dari scroll */
  --journey: 0;
  --star-opacity: 1;
  --atmosphere-opacity: 0;
  --satellite-opacity: 0;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --container: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-alt: #ebebeb;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --text: #0a0a0a;
  --text-soft: #3f3f3f;
  --muted: #6e6e6e;
  --border: #d4d4d4;
  --border-soft: #e5e5e5;
  --border-strong: #b8b8b8;
  --accent: #b55f29;
  --accent-soft: rgba(181, 95, 41, 0.10);
  --accent-line: rgba(181, 95, 41, 0.45);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.10);
  --cursor-rocket: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M16%202.5c4.1%203.1%206.4%207.2%206.4%2011.7l-2.6%204.2h-7.6l-2.6-4.2C9.6%209.7%2011.9%205.6%2016%202.5z%27%20fill%3D%27%230a0a0a%27%20stroke%3D%27%23080808%27%20stroke-width%3D%271.2%27%20stroke-linejoin%3D%27round%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2712.4%27%20r%3D%272.7%27%20fill%3D%27%23b55f29%27%2F%3E%3Cpath%20d%3D%27M10%2014.2%205.2%2020v5.1l5.2-3.5zM22%2014.2%2026.8%2020v5.1l-5.2-3.5z%27%20fill%3D%27%23b55f29%27%2F%3E%3Cpath%20d%3D%27M13.2%2019.4h5.6l-1.1%204.2h-3.4z%27%20fill%3D%27%23a3a3a3%27%2F%3E%3Cpath%20d%3D%27M16%2024.2c1.7%201.3%202.5%203.2%202.3%205.3-1.5-.9-2.7-2.1-3.5-3.5-.8%201.4-2%202.6-3.5%203.5-.2-2.1.6-4%202.3-5.3z%27%20fill%3D%27%23b55f29%27%2F%3E%3C%2Fsvg%3E");
}

/* Tema terang: latar kosmik tetap ada, tapi diredupkan agar teks gelap terbaca */
[data-theme="light"] .space-journey { opacity: 0.16; }
[data-theme="light"] .hero { background: rgba(245, 245, 245, 0.72); }
[data-theme="light"] .section-alt {
  background: rgba(235, 235, 235, 0.92);
  background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
}
[data-theme="light"] .journey-readout { color: rgba(10, 10, 10, 0.45); }
[data-theme="light"] .journey-alt { color: rgba(10, 10, 10, 0.6); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  background: var(--bg);
  transition: background-color 0.3s ease;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
::selection { background: var(--accent); color: #080808; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #080808;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ---------- Perjalanan luar angkasa → atmosfer ---------- */
.space-journey {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}

.journey-sky {
  position: absolute;
  inset: -12% -12%;
  background: linear-gradient(
    180deg,
    #030303 0%,
    #080808 16%,
    #0a0c11 30%,
    #0d141e 44%,
    #111d28 58%,
    #16262e 72%,
    #1a2a2d 86%,
    #171b1a 100%
  );
  background-size: 100% 360%;
  background-position: 0 calc(var(--journey) * 100%);
  transition: background-position 0.12s linear;
}

.journey-stars {
  position: absolute;
  inset: 0;
  opacity: var(--star-opacity);
  transition: opacity 0.16s linear;
}
.journey-stars-far {
  background-image:
    radial-gradient(1px 1px at 24px 38px, rgba(255, 255, 255, 0.65) 99%, transparent),
    radial-gradient(1px 1px at 128px 96px, rgba(255, 255, 255, 0.45) 99%, transparent),
    radial-gradient(1.2px 1.2px at 198px 24px, rgba(255, 255, 255, 0.7) 99%, transparent);
  background-size: 240px 180px, 300px 220px, 360px 260px;
}
.journey-stars-near {
  background-image:
    radial-gradient(1.6px 1.6px at 72px 110px, rgba(255, 255, 255, 0.9) 99%, transparent),
    radial-gradient(1.3px 1.3px at 246px 64px, rgba(255, 255, 255, 0.75) 99%, transparent);
  background-size: 420px 320px, 520px 380px;
  animation: star-twinkle 5.5s ease-in-out infinite alternate;
}
@keyframes star-twinkle {
  from { opacity: calc(var(--star-opacity) * 0.55); }
  to { opacity: var(--star-opacity); }
}

.journey-atmosphere {
  position: absolute;
  inset: 0;
  opacity: var(--atmosphere-opacity);
  background:
    radial-gradient(120% 58% at 50% 118%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 64%),
    radial-gradient(100% 50% at 50% 122%, rgba(126, 169, 184, 0.20), transparent 68%),
    linear-gradient(180deg, transparent 22%, rgba(38, 70, 86, 0.22) 62%, color-mix(in srgb, var(--accent) 5%, transparent) 100%);
  mix-blend-mode: screen;
  transition: opacity 0.16s linear;
}

.journey-satellite {
  position: absolute;
  top: calc(var(--journey) * 112% - 16%);
  right: clamp(28px, 11vw, 180px);
  width: clamp(38px, 4vw, 58px);
  color: var(--accent);
  opacity: var(--satellite-opacity);
  filter: drop-shadow(0 0 12px var(--accent-line));
  animation: satellite-drift 5s ease-in-out infinite alternate;
  transition: top 0.12s linear, opacity 0.2s ease;
}
.journey-satellite svg { width: 100%; height: auto; display: block; }
.satellite-trail {
  position: absolute;
  top: 50%;
  right: 88%;
  width: clamp(80px, 12vw, 170px);
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-line));
  opacity: 0.8;
}
@keyframes satellite-drift {
  from { transform: translate3d(-10px, -6px, 0) rotate(-7deg); }
  to { transform: translate3d(12px, 8px, 0) rotate(7deg); }
}

.journey-readout {
  position: absolute;
  left: 32px;
  bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: calc(100% - 64px);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.34);
  text-transform: uppercase;
}
.journey-layer { color: var(--accent); }
.journey-alt { color: rgba(255, 255, 255, 0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.brand-dot { color: var(--accent); }
.brand-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  padding: 9px 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a.active { color: var(--accent); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  border: 1px solid var(--border);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--accent); color: #080808; }
.lang-divider { color: var(--border-strong); font-size: 10px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn .icon { width: 17px; height: 17px; }
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }
.nav-toggle { display: none; }
.icon-close { display: none; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-alt {
  background: rgba(23, 23, 23, 0.82);
  background: color-mix(in srgb, var(--bg-alt) 82%, transparent);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 760px; margin-bottom: 52px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-head h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.section-head > p {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn::after { content: "↗"; font-size: 13px; line-height: 1; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #080808;
  font-weight: 600;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { border-color: transparent; color: var(--text-soft); }
.btn-ghost:hover { color: var(--accent); border-color: var(--border); }

/* =========================================================
   HERO — OBSERVATORY
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  background: transparent;
  color: #ffffff;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 48%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 48%, #000 5%, transparent 72%);
}

.earth-stage {
  position: absolute;
  top: 48%;
  right: -7%;
  width: min(74vw, 860px);
  aspect-ratio: 1;
  transform: translateY(-50%) translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 12px), 0);
  transition: transform 0.35s ease-out;
}
#earth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.earth-halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 62%);
  filter: blur(38px);
}

.earth-fallback { display: none; }
.earth-fallback-active .earth-fallback {
  display: block;
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background-image: url("../assets/earth-texture.jpg");
  background-size: 200% 100%;
  filter: grayscale(1) contrast(1.2) brightness(0.82);
  box-shadow: inset -50px -24px 90px rgba(0, 0, 0, 0.92), 0 0 70px rgba(255, 255, 255, 0.05);
  animation: fallback-spin 45s linear infinite;
}
@keyframes fallback-spin { to { background-position: 200% 0; } }

.orbit-field {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74%;
  height: 74%;
  margin: -37% 0 0 -37%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.orbit-ring-a { animation: orbit-a 28s linear infinite; }
.orbit-ring-b {
  width: 96%; height: 96%; margin: -48% 0 0 -48%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
  animation: orbit-b 42s linear infinite reverse;
}
.orbit-ring-c {
  width: 58%; height: 58%; margin: -29% 0 0 -29%;
  border-color: rgba(217, 119, 54, 0.28);
  animation: orbit-c 22s linear infinite;
}
@keyframes orbit-a {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to { transform: rotateX(72deg) rotateZ(360deg); }
}
@keyframes orbit-b {
  from { transform: rotateY(70deg) rotateZ(0deg); }
  to { transform: rotateY(70deg) rotateZ(360deg); }
}
@keyframes orbit-c {
  from { transform: rotateX(58deg) rotateY(-26deg) rotateZ(0deg); }
  to { transform: rotateX(58deg) rotateY(-26deg) rotateZ(360deg); }
}

.satellite {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97736;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(217, 119, 54, 0.14), 0 0 18px rgba(217, 119, 54, 0.65);
}
.satellite-small { width: 5px; height: 5px; background: #a3a3a3; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }

.earth-reticle { position: absolute; inset: 9%; }
.reticle-h, .reticle-v { position: absolute; background: rgba(255, 255, 255, 0.06); }
.reticle-h { top: 50%; left: 0; right: 0; height: 1px; }
.reticle-v { left: 50%; top: 0; bottom: 0; width: 1px; }

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 92px;
}
.hero-copy { max-width: 780px; }
.hero-index {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #737373;
  text-transform: uppercase;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  color: #a3a3a3;
  text-transform: uppercase;
}
.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97736;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #d97736;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

.hero-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(50px, 6.7vw, 106px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #ffffff;
}
.title-dot { color: #d97736; }
.hero-support {
  margin-top: 30px;
  max-width: 34rem;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: #a3a3a3;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.hero .btn-primary { background: #d97736; border-color: #d97736; color: #080808; }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.3); color: #ffffff; }
.hero .btn-outline:hover { border-color: #d97736; color: #d97736; }
.hero .btn-ghost { color: #a3a3a3; }
.hero .btn-ghost:hover { color: #ffffff; }

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  color: #737373;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.scroll-hint:hover { color: #d97736; }
.scroll-line {
  position: relative;
  width: 54px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #d97736;
  transform: translateX(-100%);
  animation: scroll-sweep 2.4s ease-in-out infinite;
}
@keyframes scroll-sweep {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.hero-annotations { position: relative; height: 100%; min-height: 420px; }
.annot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.46);
  text-transform: uppercase;
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0);
}
.annot-line { width: 34px; height: 1px; background: rgba(255, 255, 255, 0.22); }
.annot-1 { top: 12%; right: 0; }
.annot-2 { top: 38%; left: 2%; }
.annot-3 { bottom: 24%; right: 4%; }
.annot-4 { bottom: 8%; left: 14%; }

.hero-readout {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.72);
}
.readout-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 14px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #737373;
  text-transform: uppercase;
}
.readout-inner b { color: #a3a3a3; font-weight: 500; margin-right: 8px; }
.readout-live {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  vertical-align: 1px;
  background: #d97736;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 72px;
  align-items: start;
}
.about-text p { color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.about-text p.lead {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
}
.about-text p + p { margin-top: 20px; }

.dossier-card { border: 1px solid var(--border); background: var(--surface); padding: 22px; }
.dossier-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.dossier-avatar-wrap { position: relative; width: 112px; height: 112px; margin: 24px auto 18px; }
.dossier-avatar { width: 100%; height: 100%; filter: grayscale(1) contrast(1.1); }
.dossier-corner { position: absolute; width: 16px; height: 16px; border-color: var(--accent); }
.dossier-corner-tl { top: -8px; left: -8px; border-top: 1px solid; border-left: 1px solid; }
.dossier-corner-br { bottom: -8px; right: -8px; border-bottom: 1px solid; border-right: 1px solid; }
.dossier-name { font-family: var(--font-display); font-size: 24px; text-align: center; }
.dossier-role {
  margin-top: 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.fact-list { margin-top: 24px; border-top: 1px solid var(--border); }
.fact-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-soft);
}
.fact-index { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 1000px; }
.skill-card {
  position: relative;
  min-height: 248px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.25s ease, background-color 0.25s ease;
}
.skill-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.skill-head { display: flex; align-items: flex-start; justify-content: space-between; }
.skill-index { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.skill-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.skill-icon svg { width: 18px; height: 18px; }
.skill-card h3 { margin-top: 30px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag-list li {
  padding: 5px 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
}
.tag-list.compact li { font-size: 9.5px; padding: 4px 7px; }

/* Kilau netral mengikuti kursor */
.skill-card::before,
.work-card::before,
.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, 0.07), transparent 65%);
  transition: opacity 0.25s ease;
}
.skill-card:hover::before,
.work-card:hover::before,
.cert-card:hover::before { opacity: 1; }
.skill-card > *, .work-card > *, .cert-card > * { position: relative; z-index: 1; }

/* ---------- Topologi ---------- */
.topology-panel { border: 1px solid var(--border); background: var(--surface); }
.topology-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  color: var(--muted);
  text-transform: uppercase;
}
.topology-status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.topology-body { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.72fr); }
.topology-canvas { min-width: 0; padding: 16px; border-right: 1px solid var(--border); }
.topo-svg { width: 100%; height: auto; display: block; }
.topo-grid path { fill: none; stroke: var(--border-soft); stroke-width: 1; }
.topo-edge {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.2;
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
}
.topo-edge.is-active { stroke: var(--accent); stroke-width: 1.9; }
.topo-node { cursor: pointer; outline: none; }
.topo-node rect {
  fill: var(--surface-2);
  stroke: var(--border);
  stroke-width: 1;
  transition: stroke 0.2s ease, fill 0.2s ease;
}
.topo-node:hover rect,
.topo-node:focus-visible rect,
.topo-node.is-active rect { stroke: var(--accent); fill: var(--surface); }
.topo-code { fill: var(--muted); font-size: 9px; letter-spacing: 0.1em; }
.topo-cat { fill: var(--muted); font-size: 7px; letter-spacing: 0.08em; }
.topo-title { fill: var(--text); font-family: var(--font-sans); font-size: 11px; font-weight: 600; }
.topo-pin { fill: var(--border-strong); transition: fill 0.2s ease; }
.topo-node.is-active .topo-pin,
.topo-node:hover .topo-pin { fill: var(--accent); }

.topo-detail { display: flex; flex-direction: column; padding: 24px; }
.topo-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.topo-detail-code {
  display: inline-block;
  margin-top: 22px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.topo-detail h3 { margin-top: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.topo-detail p { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--text-soft); }
.topo-detail-links {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.topo-detail-links span:last-child { color: var(--text-soft); line-height: 1.7; }
.topology-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 0.11em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Experience ---------- */
.timeline { position: relative; padding-left: 42px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-dot {
  position: absolute;
  left: -42px;
  top: 28px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transform: rotate(45deg);
}
.timeline-item.is-current .timeline-dot { border-color: var(--accent); background: var(--accent); }
.timeline-body {
  padding: 26px 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.timeline-body:hover { border-color: var(--border-strong); background: var(--surface-2); }
.timeline-item.is-current .timeline-body { border-color: var(--accent-line); }
.timeline-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.timeline-index { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.timeline-top h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.period {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}
.company { margin-top: 8px; font-size: 13px; color: var(--text-soft); }
.sep { color: var(--muted); margin: 0 5px; }
.current-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.bullet-list { margin-top: 14px; }
.bullet-list li { position: relative; padding-left: 16px; font-size: 13px; color: var(--muted); }
.bullet-list li + li { margin-top: 5px; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--border-strong);
}
.timeline-body .tag-list { margin-top: 16px; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; perspective: 1000px; }
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.25s ease;
}
.work-card:hover { border-color: var(--border-strong); }
.work-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 180px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  overflow: hidden;
}
.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
}
.work-visual svg { position: relative; z-index: 1; width: 100%; max-width: 340px; height: 100%; }
.wv-accent { fill: var(--accent); stroke: var(--accent); }
.work-content { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.work-index { font-size: 10px; letter-spacing: 0.12em; color: var(--accent); }
.work-card h3 { margin-top: 14px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.work-card p { flex: 1; margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--text-soft); }
.work-card .tag-list { margin-top: 16px; }
.work-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Certifications ---------- */
.cert-group + .cert-group { margin-top: 44px; }
.cert-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.cert-group-title .mono { font-size: 10px; color: var(--accent); letter-spacing: 0.1em; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; perspective: 1000px; }
.cert-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.18s ease-out, border-color 0.25s ease;
}
.cert-card:hover { border-color: var(--border-strong); }
.cert-card.is-featured { border-color: var(--accent-line); }
.cert-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
}
.cert-card.is-featured .cert-badge { border-color: var(--accent); color: var(--accent); }
.cert-card h3 { font-size: 13.5px; line-height: 1.45; }
.cert-issuer { margin-top: 4px; color: var(--text-soft); font-size: 12px; }
.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}
.cert-valid { color: var(--accent); }
.credential {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  word-break: break-all;
}

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.edu-card { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--border); background: var(--surface); }
.edu-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}
.edu-card h3 { font-family: var(--font-display); font-size: 17px; }
.edu-degree { margin-top: 5px; color: var(--text-soft); font-size: 13.5px; }
.edu-period { margin-top: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.edu-note {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 8px;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact-section { padding-bottom: 120px; }
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  padding: 52px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
  pointer-events: none;
}
.contact-copy, .contact-links { position: relative; }
.contact-copy h2 {
  margin-top: 18px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.contact-copy > p:not(.eyebrow) { margin-top: 16px; max-width: 46ch; color: var(--text-soft); font-size: 14px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.copy-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.is-copied { color: var(--accent); border-color: var(--accent-line); }

.contact-links { display: grid; gap: 8px; align-content: center; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
a.contact-item:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-icon { color: var(--accent); flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; display: block; }
.contact-item small { display: block; font-size: 9px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.contact-item strong { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; word-break: break-word; }

/* ---------- Footer — city grid ---------- */
.site-footer {
  position: relative;
  min-height: 236px;
  padding: 56px 0 148px;
  border-top: 1px solid var(--border);
  background: transparent;
  overflow: hidden;
}
.footer-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 11px;
  color: var(--muted);
}
.footer-note { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; }
.footer-blog, .back-to-top {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.footer-blog:hover, .back-to-top:hover { color: var(--accent); }

.footer-city {
  --skyline: polygon(
    0 72%, 5% 72%, 5% 48%, 9% 48%, 9% 62%, 14% 62%, 14% 35%, 18% 35%,
    18% 58%, 23% 58%, 23% 28%, 27% 28%, 27% 54%, 31% 54%, 31% 42%,
    36% 42%, 36% 66%, 41% 66%, 41% 22%, 45% 22%, 45% 52%, 50% 52%,
    50% 38%, 55% 38%, 55% 60%, 60% 60%, 60% 30%, 65% 30%, 65% 56%,
    70% 56%, 70% 44%, 75% 44%, 75% 64%, 80% 64%, 80% 26%, 84% 26%,
    84% 50%, 89% 50%, 89% 40%, 94% 40%, 94% 60%, 100% 60%,
    100% 100%, 0 100%
  );
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.city-glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -34px;
  height: 190px;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 66%);
  filter: blur(18px);
}
.city-skyline,
.city-windows {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 152px;
  clip-path: var(--skyline);
}
.city-skyline {
  background: linear-gradient(180deg, #1c1c1c 0%, #080808 100%);
  opacity: 0.94;
}
.city-windows {
  background-image:
    radial-gradient(circle, var(--accent) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0.8px, transparent 1.4px);
  background-size: 26px 22px, 38px 30px;
  background-position: 4px 8px, 17px 18px;
  mix-blend-mode: screen;
  animation: city-twinkle 4.6s ease-in-out infinite alternate;
}
.city-windows-b {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0.9px, transparent 1.5px),
    radial-gradient(circle, var(--accent) 0.8px, transparent 1.4px);
  background-size: 34px 28px, 52px 40px;
  background-position: 11px 5px, 29px 22px;
  animation-duration: 6.3s;
  animation-direction: alternate-reverse;
}
.city-beacon {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 3px var(--accent-line);
  animation: city-beacon 3s steps(2, end) infinite;
}
.beacon-a { left: 16%; bottom: 118px; animation-delay: 0.35s; }
.beacon-b { left: 43%; bottom: 142px; animation-delay: 1.1s; }
.beacon-c { left: 68%; bottom: 128px; animation-delay: 1.85s; }
.beacon-d { left: 87%; bottom: 108px; animation-delay: 2.4s; }
.city-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  box-shadow: 0 0 18px var(--accent-line);
}
@keyframes city-twinkle {
  from { opacity: 0.22; }
  to { opacity: 0.68; }
}
@keyframes city-beacon {
  0%, 68%, 100% { opacity: 0.25; }
  74%, 90% { opacity: 1; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease) var(--delay, 0ms), transform 0.7s var(--ease) var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-tilt].is-visible {
  transition: opacity 0.7s var(--ease) var(--delay, 0ms), transform 0.18s ease-out,
              border-color 0.25s ease, background-color 0.25s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav a { padding: 8px 5px; font-size: 9px; }
  .brand-tag { display: none; }
  .earth-stage { right: -14%; width: 78vw; }
}

@media (max-width: 1000px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: clamp(48px, 7.6vw, 82px); }
  .hero-annotations { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .earth-stage { right: -22%; opacity: 0.55; }
}

@media (max-width: 880px) {
  :root { --header-h: 62px; }
  .container { padding-inline: 24px; }
  .section { padding: 84px 0; }

  .nav-toggle { display: grid; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .primary-nav { display: flex; }
  .site-header.nav-open .icon-menu { display: none; }
  .site-header.nav-open .icon-close { display: block; }
  .primary-nav a { padding: 12px 4px; font-size: 11px; border-bottom: 1px solid var(--border-soft); }
  .primary-nav a.active::after { display: none; }

  .hero { min-height: auto; }
  .hero-layout { padding-top: 64px; padding-bottom: 80px; }
  .earth-stage { top: 60%; right: -34%; width: 110vw; opacity: 0.4; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .dossier-card { max-width: 420px; }
  .topology-body { grid-template-columns: 1fr; }
  .topology-canvas { border-right: 0; border-bottom: 1px solid var(--border); }
  .contact-panel { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .contact-copy h2 { max-width: none; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 36px; }
  .hero-index { font-size: 9px; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); }
  .hero-support { font-size: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .readout-inner { font-size: 8px; }
  .skills-grid, .work-grid, .cert-grid, .edu-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 30px; }
  .timeline-dot { left: -30px; width: 14px; height: 14px; top: 24px; }
  .timeline-body { padding: 20px; }
  .period { width: 100%; margin-left: 0; }
  .work-visual { height: 150px; }
  .contact-panel { padding: 26px 20px; }
  .contact-panel::before { opacity: 0.2; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer { min-height: 212px; padding: 44px 0 126px; }
  .city-skyline, .city-windows { height: 128px; }
  .journey-readout { left: 18px; bottom: 18px; max-width: calc(100% - 36px); font-size: 8px; }
  .journey-satellite { width: 38px; right: 18px; }
  .satellite-trail { display: none; }
  .topology-toolbar, .topology-foot { font-size: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-field, .scroll-line::after, .pulse-dot::after,
  .journey-satellite, .journey-stars-near, .city-windows, .city-beacon { animation: none !important; }
  .earth-stage, .annot { transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Kursor roket ---------- */
@media (hover: hover) and (pointer: fine) {
  body, body * { cursor: var(--cursor-rocket) 16 16, auto; }
  a, button, [role="button"], .btn, .lang-btn, .icon-btn, .copy-btn {
    cursor: var(--cursor-rocket) 16 16, pointer;
  }
}
