/* ============================================================
   0xray portfolio — Binance design tokens + shadcn-style components
   Canvas #0b0e11 · Primary #FCD535 · Cards #1e2329
   ============================================================ */
:root {
  --canvas: #0b0e11;
  --card: #1e2329;
  --elevated: #2b3139;
  --primary: #fcd535;
  --primary-active: #f0b90b;
  --body: #eaecef;
  --muted: #707a8a;
  --muted-strong: #929aa5;
  --hairline: #2b3139;
  --on-dark: #ffffff;
  --on-primary: #181a20;
  --up: #0ecb81;
  --down: #f6465d;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

/* ---------- global scroll-reactive 3D background ---------- */
.bg3d, .bg-tint {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-tint { z-index: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; color: var(--on-dark); }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--on-primary);
  padding: 8px 16px; z-index: 200; border-radius: var(--radius-md);
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- shadcn-style primitives ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 40px; padding: 12px 24px;
  font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: var(--radius-md); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-active); }
.btn-secondary { background: var(--card); color: var(--on-dark); border-color: var(--hairline); }
.btn-secondary:hover { background: var(--elevated); }
.btn-pill { border-radius: var(--radius-pill); padding: 14px 32px; }
.btn-sm { min-height: 36px; padding: 8px 20px; }

.card {
  background: rgba(30, 35, 41, .65);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--muted); }
.card-title { font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.card-text { color: var(--muted-strong); font-size: 14px; line-height: 1.6; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .4px;
  color: var(--muted-strong);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 8px 16px; background: var(--card);
}
.badge-role {
  font-size: 12px; font-weight: 600; color: var(--primary);
  border: 1px solid rgba(252, 213, 53, .35); border-radius: var(--radius-pill);
  padding: 4px 12px; white-space: nowrap;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up); flex: none;
  box-shadow: 0 0 0 0 rgba(14, 203, 129, .5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 203, 129, .45); }
  70% { box-shadow: 0 0 0 8px rgba(14, 203, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}

.chip {
  font-size: 12px; font-weight: 500; color: var(--muted-strong);
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); padding: 6px 14px;
}
.tag {
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: var(--elevated); border-radius: var(--radius-sm);
  padding: 4px 10px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.text-primary { color: var(--primary); }
.text-link { color: var(--primary); text-decoration: none; font-size: 14px; }
.text-link:hover { text-decoration: underline; }
.muted-text { color: var(--muted) !important; }

/* ---------- top nav ---------- */
.topnav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  background: rgba(11, 14, 17, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.topnav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.brand-name { font-weight: 700; font-size: 16px; color: var(--on-dark); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--muted-strong);
  text-decoration: none; padding: 8px 12px; border-radius: var(--radius-md);
}
.nav-link:hover, .nav-link.active { color: var(--on-dark); background: var(--card); }
.nav-cta { margin-left: 12px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
/* right cluster: links + actions sit together on the right */
.nav-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }

/* language toggle pill (EN | ID) — shadcn-style, always visible */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); padding: 3px;
}
.lang-opt {
  border: 0; background: transparent; color: var(--muted-strong);
  font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .5px;
  padding: 7px 12px; border-radius: var(--radius-pill); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-opt:hover { color: var(--on-dark); }
.lang-opt.is-active { background: var(--primary); color: var(--on-primary); }
.lang-opt.is-active:hover { color: var(--on-primary); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--body); border-radius: 2px; }

/* ---------- hero + parallax ---------- */
.hero {
  position: relative; min-height: 100svh; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: calc(var(--nav-h) + 48px) 0 80px;
}
.parallax-layer {
  position: absolute; inset: 0;
  pointer-events: none; will-change: transform;
}
#stars { display: block; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(252, 213, 53, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 213, 53, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}
.deco-ring {
  position: absolute; border: 1px solid rgba(252, 213, 53, .18);
  border-radius: 50%;
}
.deco-ring-a { width: 420px; height: 420px; top: 6%; right: -120px; }
.deco-ring-b { width: 260px; height: 260px; bottom: 4%; left: -80px; border-color: rgba(234, 236, 239, .08); }
.deco-plus { position: absolute; color: rgba(252, 213, 53, .35); font-size: 28px; font-family: var(--font-mono); }
.deco-plus-a { top: 22%; left: 12%; }
.deco-plus-b { bottom: 18%; right: 16%; }

.hero-content {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* profile photo slot — drop assets/profile.jpg to replace the placeholder */
.profile-wrap {
  position: relative;
  width: clamp(120px, 28vw, 152px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin-bottom: 24px;
  /* coin-flip entrance: spins in like a flipping coin on page load */
  animation: avatarCoinIn 1.15s cubic-bezier(.25,.8,.3,1) .35s both;
}
@keyframes avatarCoinIn {
  0%   { transform: perspective(800px) rotateY(-95deg) scale(.85); opacity: 0; }
  45%  { transform: perspective(800px) rotateY(10deg)  scale(1.02); opacity: 1; }
  70%  { transform: perspective(800px) rotateY(-5deg)  scale(1);    opacity: 1; }
  100% { transform: perspective(800px) rotateY(0deg)   scale(1);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-wrap { animation: none; }
}

/* typewriter cursor for the hero statement */
.typing-cursor {
  display: inline-block;
  width: .09em; height: 1em;
  background: #FCD535;
  margin-left: .08em;
  vertical-align: -0.12em;
  animation: cursorBlink 1s steps(2, start) infinite;
}
@keyframes cursorBlink { to { visibility: hidden; } }
.profile-fallback {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(252, 213, 53, .12), 0 12px 40px rgba(0, 0, 0, .45);
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(28px, 7vw, 40px); color: var(--primary);
}
.profile-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(252, 213, 53, .12), 0 12px 40px rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .3s ease;
  background: var(--card);
}
.profile-img.is-loaded { opacity: 1; }
.profile-img.is-missing { display: none; }

.hero-title {
  font-size: clamp(36px, 8vw, 64px); font-weight: 700;
  line-height: 1.1; letter-spacing: -1px; margin: 20px 0 4px;
}
.hero-alias { font-size: clamp(16px, 3vw, 20px); color: var(--muted-strong); font-weight: 500; }
.hero-tagline { font-size: clamp(15px, 3.4vw, 20px); color: var(--body); margin-top: 16px; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: block; padding: 8px;
}
.scroll-hint-line {
  display: block; width: 1px; height: 44px; margin: 0 auto;
  background: var(--muted);
  animation: hint-drop 2s ease-in-out infinite; transform-origin: top;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: 80px 0; overflow: hidden; }
.section-deco { inset: 0; }
.deco-ring-c { width: 340px; height: 340px; top: 10%; right: -140px; }
.deco-ring-d { width: 300px; height: 300px; bottom: 6%; left: -120px; border-color: rgba(234, 236, 239, .07); }
.deco-ring-e { width: 300px; height: 300px; top: 8%; left: -110px; border-color: rgba(252, 213, 53, .14); }
.deco-ring-f { width: 360px; height: 360px; bottom: 8%; right: -130px; border-color: rgba(252, 213, 53, .12); }
.deco-ring-g { width: 240px; height: 240px; top: 14%; right: -90px; border-color: rgba(234, 236, 239, .07); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); margin: 0 0 12px;
}
.section-title {
  font-size: clamp(32px, 5.4vw, 40px); font-weight: 600;
  line-height: 1.15; letter-spacing: -.3px; margin-bottom: 16px;
}
.section-desc { color: var(--muted-strong); font-size: 15px; line-height: 1.6; max-width: 560px; }

.cards-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.cards-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.coin-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--elevated); color: var(--primary);
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  border: 1px solid var(--hairline);
}
.activity-icon {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  background: rgba(252, 213, 53, .1); border: 1px solid rgba(252, 213, 53, .25);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); margin-bottom: 16px;
}
.activity-icon svg { width: 22px; height: 22px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.about-lead { font-size: clamp(17px, 3.6vw, 21px); line-height: 1.65; color: var(--body); }
.about-lead strong { color: var(--primary); font-weight: 600; }
.check-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-left: 28px;
  color: var(--muted-strong); font-size: 14px; line-height: 1.55;
}
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 4px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--up); border-bottom: 2px solid var(--up);
  transform: rotate(-45deg);
}

/* cta band */
.cta-band {
  margin-top: 48px; background: var(--card);
  border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
  align-items: flex-start;
}
.cta-band-title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.cta-band-text { color: var(--muted-strong); font-size: 14px; }

/* contact */
.card-link { text-decoration: none; display: block; }
.card-link:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  flex: none; width: 48px; height: 48px; border-radius: var(--radius-lg);
  background: var(--elevated); border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center; color: var(--on-dark);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-icon-muted { color: var(--muted); }
.contact-row .card-title { margin-bottom: 4px; }
.link-arrow { margin-left: auto; color: var(--primary); font-size: 20px; }
.card-placeholder { border-style: dashed; cursor: default; }
.card-placeholder:hover { border-color: var(--hairline); }

/* footer */
.footer { background: #14181d; color: #eaecef; padding: 48px 0; border-top: 1px solid #2b3139; position: relative; z-index: 1; }
.footer-inner {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.footer-note { color: #707a8a; font-size: 13px; }
.footer .text-link { color: #fcd535; }

/* anchored sections: keep clear of the fixed navbar */
section[id], header[id] { scroll-margin-top: 84px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot, .scroll-hint-line { animation: none; }
}

/* ---------- responsive ---------- */
@media (min-width: 768px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 48px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--canvas); border-bottom: 1px solid var(--hairline);
    padding: 12px 20px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px; font-size: 15px; }
  .nav-cta { margin: 8px 0 0; }
  .section { padding: 56px 0; }
  .chapter { padding: 64px 0; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- hero 3d background ---------- */
.hero-3d {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-3d canvas { display: block; width: 100%; height: 100%; }
.hero-3d-fallback {
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(252, 213, 53, .10), transparent 70%),
    var(--canvas);
}


/* ---------- stats bar ---------- */
.stats-bar {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(30, 35, 41, .35);
  padding: clamp(48px, 8vw, 80px) 0;
  position: relative; z-index: 1; overflow: hidden;
}
.stats-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding-top: 24px; padding-bottom: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(56px, 11vw, 150px); line-height: 1;
  color: var(--primary); letter-spacing: -.03em;
}
.stat-label {
  margin-top: 8px; font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted-strong);
}

/* ---------- nodes focus line ---------- */
.node-focus {
  margin-top: 16px; font-size: 13px; line-height: 1.55;
  color: var(--muted-strong);
}
.focus-label {
  font-weight: 600; color: var(--body);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  margin-right: 6px;
}

/* ---------- tech stack grid ---------- */
.stack-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.about-side { display: grid; grid-template-columns: 1fr; gap: 24px; }
.about-side .card { margin: 0; }

/* ---------- timeline ---------- */
.timeline {
  position: relative; max-width: 640px;
  display: grid; gap: 32px;
  padding-left: 32px;
}
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--elevated); border-radius: 2px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--canvas);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item .card-title { margin-bottom: 8px; }

/* ---------- repo cards ---------- */
.repo-link-row { margin-top: 20px; }

/* ---------- responsive ---------- */
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Editorial numbered chapters — manifesto restyle
   ============================================================ */
.chapter { padding: clamp(72px, 10vw, 120px) 0; position: relative; z-index: 1; overflow: hidden; min-height: 100svh; }

/* ---------- scroll scene progress indicator ---------- */
.scene-progress {
  position: fixed; left: 20px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.scene-progress-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-strong);
}
.scene-progress-track {
  display: block; width: 120px; height: 2px;
  background: rgba(255, 255, 255, .12); border-radius: 2px;
  overflow: hidden;
}
.scene-progress-fill {
  display: block; width: 100%; height: 100%;
  background: #FCD535; border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
}

/* ---------- background sound toggle ---------- */
.sound-toggle {
  position: fixed; right: 20px; bottom: 18px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20, 24, 29, .72);
  border: 1px solid var(--hairline);
  color: var(--muted-strong); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.sound-toggle:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.06); }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle .ic-on { display: none; }
.sound-toggle.is-on { color: #FCD535; border-color: rgba(252, 213, 53, .55); }
.sound-toggle.is-on .ic-on { display: block; }
.sound-toggle.is-on .ic-off { display: none; }
.chapter-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 28px; }
/* giant outlined numeral — decorative parallax layer per chapter */
.chapter-num-layer {
  position: absolute; top: 30px; right: -6px; z-index: 0;
  pointer-events: none; will-change: transform;
}
.chapter-num-layer .chapter-num { display: block; transform: translateX(22%); }
.chapter-num {
  font-size: clamp(56px, 16vw, 280px); font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; color: transparent;
  -webkit-text-stroke: 1.5px #2b3139; -webkit-text-fill-color: transparent;
  user-select: none;
}
.chapter .container { position: relative; z-index: 1; }
.hero .chapter-num-layer { top: 92px; left: 50%; right: auto; }
.hero .chapter-num-layer .chapter-num { transform: translateX(-50%); }
.chapter-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: #FCD535;
}
.chapter-title {
  font-size: clamp(32px, 7.2vw, 104px); line-height: 1.02;
  letter-spacing: -0.025em; font-weight: 800; margin: 0 0 26px; color: #ffffff;
}
.chapter-desc { font-size: 18px; line-height: 1.65; color: #929aa5; max-width: 640px; margin: 0; }

/* hero "00 · The Operator" — centered editorial masthead */
.hero .chapter-title { font-size: clamp(36px, 9vw, 128px); }
.hero .chapter-meta { justify-content: center; align-items: center; margin-bottom: 24px; }
.hero-name {
  font-size: clamp(24px, 4vw, 34px); font-weight: 700;
  letter-spacing: -0.01em; color: #ffffff; margin: 0;
}
.hero-manifesto {
  font-size: clamp(17px, 3.2vw, 22px); line-height: 1.65;
  color: var(--body); max-width: 640px; margin-top: 22px;
}
.hero-manifesto strong { color: var(--primary); font-weight: 600; }

/* sub-chapter (journey inside proof-of-work) */
.sub-chapter { margin-top: 64px; }
.sub-chapter-title {
  font-size: clamp(30px, 4.5vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 800; margin: 18px 0 40px; color: #fff;
}

@media (max-width: 767px) {
  .chapter-meta { gap: 8px; margin-bottom: 20px; }
  .sub-chapter { margin-top: 48px; }
  .hero-manifesto { font-size: 17px; }
}

/* ---------- scroll-layer card FX (fungolabs-style) ---------- */
.fx-cards{perspective:1400px}
.fx-card{
  --fxp:0;
  transform:translate3d(0,calc((1 - var(--fxp))*64px),0)
             scale(calc(.93 + .07*var(--fxp)))
             rotateX(calc((1 - var(--fxp))*10deg));
  opacity:calc(.02 + .98*var(--fxp));
  transition:border-color .2s ease;
  will-change:transform,opacity;
}
a.card-link.fx-card:hover{
  transform:translate3d(0,calc((1 - var(--fxp))*64px - 2px),0)
             scale(calc(.93 + .07*var(--fxp)))
             rotateX(calc((1 - var(--fxp))*10deg));
}

/* ---------- scroll text FX (fungolabs-style) ---------- */
.tx-w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.1em;margin-bottom:-.1em}
.tx-wi{display:inline-block;transform:translateY(110%);will-change:transform}
.tx-s{display:inline-block;opacity:.14;will-change:opacity}
