/* ==========================================================================
   PORTFOLIO EDITORIAL MACHIKO PARAMA (ASTRAA)
   Design System: Restrained Editorial Statement / vsk.design Style
   Palette: Strict Monochrome Base + Warm Editorial Lime Accent (#D4FF3A)
   Typography: Anton (Poster/Display) + Inter (Body) + JetBrains Mono (Tech/Meta)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & RESET
   -------------------------------------------------------------------------- */
:root {
  /* Strict Monochrome Canvas */
  --bg-canvas: #0c0c0e;
  --bg-surface: #141418;
  --bg-surface-subtle: rgba(255, 255, 255, 0.025);

  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --text-muted: #545458;
  --text-faint: rgba(255, 255, 255, 0.16);

  --line-subtle: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);

  /* Restrained Warm Editorial Accent (Applied solely on hover, focus, & small pips) */
  --color-accent: #D4FF3A;
  --color-accent-dim: rgba(212, 255, 58, 0.1);
  --color-accent-border: rgba(212, 255, 58, 0.28);

  /* Restrained Typography */
  --font-poster: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Layout Spacing: ~60% Content Width on Desktop (~40% Whitespace) */
  --editorial-width: min(860px, 62vw);
  --page-gutter: clamp(1.5rem, 5vw, 4rem);
  --header-height: 80px;

  /* Standard Motion Easing (H4, 7.1) */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --trans-fast: 160ms var(--ease-editorial);
  --trans-normal: 280ms var(--ease-editorial);
  --trans-reveal: 720ms var(--ease-editorial);

  color-scheme: dark;
}

/* Modern Accessible Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Minimal */
html {
  scrollbar-color: var(--line-strong) var(--bg-canvas);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-canvas);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--line-strong);
  }
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 2rem;
  background: var(--text-primary);
  color: #0c0c0e;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--trans-fast);
}
.skip-link:focus {
  top: 1.5rem;
}

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: #0c0c0e;
}

/* --------------------------------------------------------------------------
   2. TOP EDITORIAL HEADER & NAVIGATION (F1, 4.1)
   -------------------------------------------------------------------------- */
.editorial-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Identity — MCP Morph */
.identity-brand {
  text-decoration: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  height: 100%;
  transition: color var(--trans-fast);
}

.identity-brand:hover {
  color: var(--color-accent);
}

.brand-morph {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-poster);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  height: 1.5em;
  /* Instant morph: cepat, tidak smooth-lambat */
  transition: none;
  user-select: none;
  -webkit-user-select: none;
}

.brand-initials,
.brand-fullname {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition:
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.brand-initials {
  color: inherit;
  opacity: 1;
  transform: translateX(0);
}

.brand-fullname {
  color: inherit;
  opacity: 0;
  transform: translateX(100%);
}

/* Hover & active state — MCP geser kiri & hilang,
   fullname muncul dari kanan */
.identity-brand:hover .brand-initials,
.identity-brand:focus-visible .brand-initials {
  opacity: 0;
  transform: translateX(-100%);
}

.identity-brand:hover .brand-fullname,
.identity-brand:focus-visible .brand-fullname {
  opacity: 1;
  transform: translateX(0);
}

/* Reduced motion: langsung swap tanpa animasi */
@media (prefers-reduced-motion: reduce) {
  .brand-initials,
  .brand-fullname {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .brand-morph {
    pointer-events: none; /* no hover/tap interaction */
  }

  .brand-initials {
    opacity: 1 !important;
    transform: none !important;
  }

  .brand-fullname {
    display: none;
  }
}

/* Desktop Navigation */
.editorial-nav {
  display: none;
}
@media (min-width: 800px) {
  .editorial-nav {
    display: block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-anchor {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-idx {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.nav-anchor:hover,
.nav-anchor.active {
  color: var(--text-primary);
}

.nav-anchor:hover .nav-idx,
.nav-anchor.active .nav-idx {
  color: var(--color-accent);
}

.nav-anchor-cta:hover {
  color: var(--color-accent);
}

/* Mobile Nav Toggle: CSS-Only Open/Close Switch & Icon Animation (4.1) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: 1px solid var(--line-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  border-radius: 4px;
}
@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }
}

.toggle-text .text-close { display: none; }
.toggle-text .text-open  { display: inline; }

.nav-toggle[aria-expanded="true"] .text-close { display: inline; }
.nav-toggle[aria-expanded="true"] .text-open  { display: none; }

.toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 14px;
}
.toggle-icon .bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform var(--trans-fast);
}

.nav-toggle[aria-expanded="true"] .toggle-icon .bar:nth-child(1) {
  transform: translateY(2.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-icon .bar:nth-child(2) {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* Mobile Nav Drawer */
@media (max-width: 799px) {
  .editorial-nav {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(12, 12, 14, 0.98);
    backdrop-filter: blur(20px);
    padding: 4rem var(--page-gutter) 3rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--trans-normal), opacity var(--trans-normal);
  }
  .editorial-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .nav-anchor {
    font-size: 1.25rem;
    gap: 0.75rem;
  }
  .nav-anchor .nav-idx {
    font-size: 11px;
    color: var(--text-muted);
  }
}

/* --------------------------------------------------------------------------
   3. ASYMMETRIC EDITORIAL LAYOUT (60% CONTENT / 40% WHITESPACE)
   -------------------------------------------------------------------------- */
.editorial-layout {
  width: 100%;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  margin-top: 1rem;
}

@media (min-width: 960px) {
  .editorial-content-narrow {
    width: var(--editorial-width);
    margin-left: clamp(2rem, 8vw, 8rem);
  }
}

/* Consistent Section Spacing */
.editorial-section {
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
  border-top: 1px solid var(--line-subtle);
  position: relative;
}

/* Section Header Badge */
.section-badge-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-big-number {
  font-family: var(--font-poster);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--trans-fast);
}

.editorial-section:hover .section-big-number {
  color: rgba(255, 255, 255, 0.3);
}

.section-editorial-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-secondary);
}

.section-preface {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   4. SECTION: HERO
   -------------------------------------------------------------------------- */
.section-hero {
  min-height: calc(85vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-poster-group {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.poster-title {
  font-family: var(--font-poster);
  font-size: clamp(3.5rem, 12vw, 11rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.poster-row {
  display: block;
}

.poster-row.indent-accent {
  margin-left: clamp(0.5rem, 4vw, 3.5rem);
  color: var(--text-secondary);
}

.hero-narrative-block {
  max-width: 640px;
}

@media (min-width: 960px) {
  .hero-narrative-block {
    margin-left: clamp(0.5rem, 4vw, 3.5rem);
  }
}

.hero-tagline {
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  color: #d1d1d6;
  line-height: 1.55;
  margin-bottom: 2.25rem;
  font-weight: 400;
  max-width: 58ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* CTA Buttons */
.editorial-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  transition: all var(--trans-fast);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.cta-primary {
  background-color: #ffffff;
  color: #0c0c0e;
  border-color: #ffffff;
  font-weight: 700;
}
.cta-primary:hover {
  background-color: #0c0c0e;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.cta-secondary,
.cta-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--line-strong);
}
.cta-secondary:hover,
.cta-ghost:hover {
  border-color: var(--text-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.cta-arrow {
  transition: transform var(--trans-fast);
}
.editorial-cta:hover .cta-arrow {
  transform: translate(2px, 0);
}
.cta-primary:hover .cta-arrow {
  transform: translate(0, 2px);
}

/* --------------------------------------------------------------------------
   5. SECTION 01: ABOUT
   -------------------------------------------------------------------------- */
.editorial-statement {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  max-width: 54ch;
}

.editorial-prose {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.editorial-prose p {
  max-width: 62ch;
}

.editorial-prose strong {
  color: var(--text-primary);
  font-weight: 500;
}

.about-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--line-subtle);
  padding-top: 1.75rem;
  margin-bottom: 2.75rem;
}

.hl-entry {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.hl-marker {
  color: var(--text-muted);
}
.hl-text {
  color: var(--text-primary);
}

/* Footnote Grid in About Section */
.about-footnote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-subtle);
  max-width: 640px;
}

.footnote-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fn-key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.fn-val {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. SECTION 02: SELECTED WORK (3.1, 7.3)
   -------------------------------------------------------------------------- */
.featured-case-breakdown {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-subtle);
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  margin-bottom: 4rem;
}

.case-eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}

.case-index {
  color: var(--text-secondary);
}

.case-headline-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-main-title {
  font-family: var(--font-poster);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
}

.case-link-button {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: all var(--trans-fast);
}
.case-link-button:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  transform: translate(2px, -2px);
}

.case-summary-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: #e5e5ea;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 62ch;
}

/* Case Pillars */
.case-pillars-editorial-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-subtle);
}

.pillar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color var(--trans-fast);
}

@media (min-width: 640px) {
  .pillar-row {
    grid-template-columns: 80px 1fr;
    gap: 2rem;
  }
}

.pillar-idx-col {
  display: flex;
  align-items: baseline;
  font-family: var(--font-mono);
}

.pillar-idx {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pillar-heading {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.pillar-text-col p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 62ch;
}

/* Clean Tech Stack Inline without !important (3.1) */
.pillar-text-col .tech-stack-inline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.7;
}

/* Secondary Projects List (7.3) */
.secondary-projects-editorial {
  margin-top: 2rem;
}

.secondary-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-subtle);
}

.secondary-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.editorial-numbered-projects {
  display: flex;
  flex-direction: column;
}

/* Hover shift 8px on desktop, smooth background shift (7.3) */
.project-line-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1.75rem 0;
  padding-left: 0;
  border-bottom: 1px solid var(--line-subtle);
  transition:
    padding-left 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-line-entry:hover {
  padding-left: 8px;
  background-color: rgba(255, 255, 255, 0.015);
}

@media (max-width: 640px) {
  .project-line-entry:hover {
    padding-left: 0;
  }
}

@media (min-width: 640px) {
  .project-line-entry {
    grid-template-columns: 80px 1fr;
    gap: 2rem;
  }
}

.entry-meta {
  display: flex;
  align-items: baseline;
  font-family: var(--font-mono);
}

.entry-index {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-faint);
  transition: color var(--trans-fast);
}

.entry-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.entry-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--trans-fast);
}

.project-line-entry:hover .entry-title {
  color: var(--color-accent);
}
.project-line-entry:hover .entry-index {
  color: var(--color-accent);
}

.entry-badge-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  border: 1px solid var(--line-subtle);
  padding: 0.15rem 0.5rem;
}

.entry-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  max-width: 62ch;
}

.entry-subtag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. SECTION 03: PRINCIPLES
   -------------------------------------------------------------------------- */
.principles-vertical-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-subtle);
}

.principle-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color var(--trans-fast);
}

@media (min-width: 640px) {
  .principle-entry {
    grid-template-columns: 80px 1fr;
    gap: 2rem;
  }
}

.principle-num-col {
  font-family: var(--font-poster);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-faint);
  line-height: 1;
  transition: color var(--trans-fast);
}

.principle-entry:hover .principle-num-col {
  color: var(--color-accent);
}

.principle-bold {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color var(--trans-fast);
}

.principle-entry:hover .principle-bold {
  color: var(--color-accent);
}

.principle-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   8. SECTION 04: SKILLS & TOOLS + STACK & PLATFORM
   -------------------------------------------------------------------------- */
.skills-clusters-editorial {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.cluster-block {
  display: flex;
  flex-direction: column;
}

.cluster-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-strong);
}

.cluster-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skills-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-subtle);
  transition: border-color var(--trans-fast);
}

.skill-row:hover {
  border-bottom-color: var(--line-strong);
}

.skill-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.skill-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 58ch;
}

/* Cluster 3: Stack & Platform Mono List */
.stack-platform-list {
  display: flex;
  flex-direction: column;
}

.stack-line-entry {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-subtle);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  transition: color var(--trans-fast);
}

.stack-line-entry:hover {
  color: var(--text-primary);
}

.stack-symbol {
  color: var(--text-muted);
}
.stack-name {
  font-weight: 500;
  color: var(--text-primary);
  min-width: 130px;
}
.stack-dots {
  color: var(--text-faint);
  display: none;
}
@media (min-width: 600px) {
  .stack-dots {
    display: inline;
  }
}
.stack-role {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   9. SECTION 05: CONTACT
   -------------------------------------------------------------------------- */
.contact-editorial-heading {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.contact-editorial-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  max-width: 62ch;
}


.editorial-contact-channels {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-subtle);
}

.channel-editorial-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--trans-fast);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.channel-svg {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: color var(--trans-fast);
}

.channel-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  transition: color var(--trans-fast);
}

.channel-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-tag {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.channel-arrow-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform var(--trans-fast), color var(--trans-fast);
}

.channel-editorial-link:hover {
  border-bottom-color: var(--line-strong);
}

.channel-editorial-link:hover .channel-svg,
.channel-editorial-link:hover .channel-title,
.channel-editorial-link:hover .channel-tag,
.channel-editorial-link:hover .channel-arrow-icon {
  color: var(--color-accent);
}

.channel-editorial-link:hover .channel-arrow-icon {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   10. CUSTOM 404 PAGE (6.1)
   -------------------------------------------------------------------------- */
.page-404 {
  min-height: calc(100vh - var(--header-height) - 180px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.page-404 .error-code {
  font-family: var(--font-poster);
  font-size: clamp(6rem, 22vw, 18rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.page-404 .error-heading {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 32ch;
}

.page-404 .error-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   11. SITE FOOTER (8.4)
   -------------------------------------------------------------------------- */
.editorial-footer {
  border-top: 1px solid var(--line-strong);
  padding: 3rem 0 2.5rem;
  margin-top: 3.5rem;
}

.footer-inner {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
}


.footer-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-attribution {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-built-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.footer-built-note a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--trans-fast), border-color var(--trans-fast);
}
.footer-built-note a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--trans-fast), transform var(--trans-fast);
  align-self: flex-start;
}
.footer-back-to-top:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   12. MICRO-INTERACTIONS: SCROLL REVEAL (7.1)
   -------------------------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Prefers-Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   13. EDITORIAL MARQUEE
   -------------------------------------------------------------------------- */
.editorial-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  padding: 1.5rem 0;
  margin-top: 2rem;
  margin-bottom: 0;
  position: relative;
  background-color: var(--bg-canvas);
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee-scroll 18s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-poster);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

.marquee-sep {
  font-family: var(--font-poster);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--text-muted);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reduced motion: matikan animasi */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    transform: none;
  }
}

/* Mobile: ukuran font lebih kecil, kecepatan lebih lambat */
@media (max-width: 640px) {
  .editorial-marquee {
    padding: 1rem 0;
  }
  .marquee-track {
    animation-duration: 24s;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   14. SCROLL PROGRESS INDICATOR
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9999;
  background-color: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--color-accent);
  transition: width 80ms linear;
  will-change: width;
}

/* Reduced motion: matikan transisi */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   15. COLORFUL STATEMENT SECTION
   -------------------------------------------------------------------------- */

.statement-section {
  width: 100%;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(6rem, 12vw, 10rem);
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: none;
  border-bottom: 1px solid var(--line-subtle);
  text-align: center;
}

.statement-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.statement-author {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.statement-line {
  font-family: var(--font-poster);
  font-size: clamp(2.5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #F2EDE0;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.statement-section.is-revealed .statement-line {
  opacity: 1;
  transform: translateY(0);
}

.statement-section.is-revealed .statement-line:nth-child(1) { transition-delay: 0ms; }
.statement-section.is-revealed .statement-line:nth-child(2) { transition-delay: 120ms; }
.statement-section.is-revealed .statement-line:nth-child(3) { transition-delay: 240ms; }
.statement-section.is-revealed .statement-line:nth-child(4) { transition-delay: 360ms; }

/* Highlight colors — hanya di section ini */
.statement-line .hl {
  transition: color 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.statement-line .hl-yellow { color: #E5B843; }
.statement-line .hl-green  { color: #1F5F4A; }
.statement-line .hl-pink   { color: #F4C4D6; }
.statement-line .hl-orange { color: #DC5130; }

/* Optional: subtle glow saat hover line */
.statement-line:hover .hl {
  filter: brightness(1.15);
}

/* Mobile: sedikit lebih kecil, tetap center */
@media (max-width: 640px) {
  .statement-section {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .statement-line {
    font-size: clamp(2rem, 11vw, 4rem);
    line-height: 1.1;
  }
}

/* Reduced motion: langsung tampil tanpa animasi */
@media (prefers-reduced-motion: reduce) {
  .statement-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   16. PRELOADER
   -------------------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.preloader.is-exiting {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.preloader.is-hidden {
  display: none;
}

.preloader-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 640px;
}

/* Badge / monogram MCP kecil di atas */
.preloader-badge {
  font-family: var(--font-poster);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-accent);
  animation: preloader-badge-pulse 2s ease-in-out infinite;
}

@keyframes preloader-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(0.98); }
}

/* Container teks — stabil, tidak layout shift */
.preloader-text-wrap {
  position: relative;
  width: 100%;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.preloader-text.is-active {
  opacity: 1;
  transform: translateY(0);
}

.preloader-text.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

/* Dot loader pulsing */
.preloader-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 1rem;
}

.preloader-dots .dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
  animation: preloader-dot-pulse 1.2s ease-in-out infinite;
}

.preloader-dots .dot:nth-child(1) { animation-delay: 0s; }
.preloader-dots .dot:nth-child(2) { animation-delay: 0.15s; }
.preloader-dots .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes preloader-dot-pulse {
  0%, 100% {
    background-color: var(--text-muted);
    transform: scale(0.85);
  }
  50% {
    background-color: var(--color-accent);
    transform: scale(1.15);
  }
}

/* State: saat body is-loading, konten utama tidak terlihat */
body.is-loading {
  overflow: hidden;
}

body.is-loading #main-content,
body.is-loading .editorial-header {
  opacity: 0;
}

/* Transisi masuk hero & header saat preloader hilang */
.editorial-header,
#main-content {
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reveal masuk hero: translate + fade */
body.is-entering .section-hero {
  animation: hero-reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-reveal {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion: skip preloader total */
@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none !important;
  }
  body.is-loading {
    overflow: auto !important;
  }
  body.is-loading #main-content,
  body.is-loading .editorial-header {
    opacity: 1 !important;
  }
  .preloader-text,
  .preloader-badge,
  .preloader-dots .dot {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile: proporsional */
@media (max-width: 640px) {
  .preloader-stage {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .preloader-text {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
}
