  :root {
    --gold: #C8A96E;
    --gold-light: #E2C98A;
    --gold-dark: #8B6914;
    --cream: #F5EDD8;
    --parchment: #EDE0C4;
    --dark: #1A1208;
    --dark-brown: #2D1F0A;
    --mid-brown: #5C3D1E;
    --text-main: #2A1A05;
    --text-light: #6B4C2A;
    --red-accent: #8B2B1A;
    --ink: #0D0A05;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background-color: var(--dark);
    color: var(--cream);
    font-family: 'Crimson Pro', Georgia, serif;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
  }

    .sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(13,10,5,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(200,169,110,0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  .sticky-nav.visible { transform: translateY(0); }

  .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 2px;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
  }

  .nav-links a:hover { opacity: 1; color: var(--gold); }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
  }

  @media (max-width: 768px) {
    .hero-card {
      grid-template-columns: 1fr;
      gap: 3rem;
      padding: 4rem 1.5rem;
    }
    .hero-card.reverse { direction: ltr; }
    .portrait-section { position: relative; top: auto; }
    .hero-portraits { gap: 1.5rem; }
    .hero-portrait-frame { width: 90px; height: 112px; }
    .bio-stats { grid-template-columns: 1fr; }
  }

  .section-diponegoro {
    background: var(--cream);
  }

  .section-imam-bonjol {
    background: #F0E8D0;
  }

  .hero {
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, #3D2808 0%, #1A1208 40%, #0D0A05 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse 80% 40% at 50% 100%, rgba(200,169,110,0.08) 0%, transparent 70%),
      radial-gradient(ellipse 60% 60% at 20% 50%, rgba(139,43,26,0.05) 0%, transparent 60%),
      radial-gradient(ellipse 60% 60% at 80% 50%, rgba(139,43,26,0.05) 0%, transparent 60%);
  }

  .ornament-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding-top: 2rem;
    opacity: 0.3;
    font-size: 1.2rem;
    letter-spacing: 8px;
    color: var(--gold);
  }

  .hero-badge {
    font-family: 'Crimson Pro', serif;
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease both;
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    text-align: center;
    color: var(--cream);
    text-shadow: 0 0 80px rgba(200,169,110,0.2);
    animation: fadeUp 1s ease 0.2s both;
    position: relative;
    z-index: 1;
  }

  .hero-title span {
    display: block;
    color: var(--gold);
    font-style: italic;
    font-size: 0.65em;
    letter-spacing: 2px;
  }

  .hero-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    animation: fadeUp 1s ease 0.4s both;
  }

  .hero-divider::before,
  .hero-divider::after {
    content: '';
    height: 1px;
    width: 120px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
  }

  .hero-subtitle {
    font-size: 1.25rem;
    color: var(--parchment);
    opacity: 0.75;
    max-width: 600px;
    text-align: center;
    line-height: 1.7;
    font-style: italic;
    animation: fadeUp 1s ease 0.6s both;
    position: relative;
    z-index: 1;
  }

  .hero-portraits {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    animation: fadeUp 1s ease 0.8s both;
    position: relative;
    z-index: 1;
  }

  .hero-portrait-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.4s ease;
  }

  .hero-portrait-item:hover { transform: translateY(-8px); }

  .hero-portrait-frame {
    width: 120px;
    height: 150px;
    border: 2px solid rgba(200,169,110,0.4);
    position: relative;
    overflow: hidden;
  }

  .hero-portrait-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(200,169,110,0.2);
    z-index: 1;
    pointer-events: none;
  }

  .hero-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(40%) brightness(0.85);
    transition: filter 0.4s ease;
  }

  .hero-portrait-item:hover .hero-portrait-frame img {
    filter: sepia(20%) brightness(1);
  }

  .hero-portrait-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-align: center;
  }

  .main-content {
    background: var(--cream);
    color: var(--text-main);
    position: relative;
  }

  .section-intro {
    background: linear-gradient(180deg, var(--dark-brown) 0%, var(--cream) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
  }

  .section-intro::before {
    content: '✦ ✦ ✦';
    display: block;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 12px;
    margin-bottom: 2rem;
    opacity: 0.6;
  }

  .section-intro p {
    font-family: 'IM Fell English', serif;
    font-size: 1.4rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
  }

  .hero-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
  }

  .hero-card:first-of-type { padding-top: 4rem; }

  .hero-card.reverse { direction: rtl; }
  .hero-card.reverse > * { direction: ltr; }

  .card-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
    max-width: 1100px;
    margin: 0 auto;
  }

  .portrait-section {
    position: sticky;
    top: 4rem;
  }

  .portrait-outer-frame {
    position: relative;
    padding: 16px;
    background: var(--dark-brown);
  }

  .portrait-outer-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(200,169,110,0.3);
    pointer-events: none;
    z-index: 1;
  }

  .portrait-outer-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      linear-gradient(45deg, rgba(200,169,110,0.15) 0%, transparent 50%),
      linear-gradient(135deg, transparent 50%, rgba(200,169,110,0.1) 100%);
    pointer-events: none;
  }

  .portrait-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: sepia(30%) contrast(1.05) brightness(0.95);
  }

  .portrait-caption {
    background: var(--dark-brown);
    padding: 1.25rem 1.5rem;
    margin-top: 0;
    position: relative;
  }

  .portrait-caption-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 1px;
  }

  .portrait-caption-years {
    font-size: 0.8rem;
    color: rgba(200,169,110,0.6);
    letter-spacing: 3px;
    margin-top: 0.3rem;
    font-style: italic;
  }

  .corner-tl, .corner-tr, .corner-bl, .corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold-dark);
    border-style: solid;
    z-index: 2;
  }
  .corner-tl { top: 3px; left: 3px; border-width: 1px 0 0 1px; }
  .corner-tr { top: 3px; right: 3px; border-width: 1px 1px 0 0; }
  .corner-bl { bottom: 3px; left: 3px; border-width: 0 0 1px 1px; }
  .corner-br { bottom: 3px; right: 3px; border-width: 0 1px 1px 0; }

  .bio-number {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(139,105,20,0.08);
    font-weight: 900;
    margin-bottom: -3rem;
    display: block;
    user-select: none;
  }

  .bio-label {
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--red-accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .bio-label::after {
    content: '';
    height: 1px;
    width: 40px;
    background: var(--red-accent);
    opacity: 0.5;
  }

  .bio-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 0.5rem;
  }

  .bio-epithet {
    font-family: 'IM Fell English', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
  }

  .bio-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(139,105,20,0.15);
    margin-bottom: 2.5rem;
  }

  .stat-item {
    background: var(--cream);
    padding: 1rem 1.25rem;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    opacity: 0.7;
  }

  .stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
  }

  .bio-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-main);
    margin-bottom: 1.5rem;
  }

  .bio-text.lead {
    font-family: 'IM Fell English', serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--mid-brown);
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
  }

  .bio-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .bio-heading::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--gold-dark);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  .timeline {
    list-style: none;
    border-left: 1px solid rgba(139,105,20,0.3);
    padding-left: 2rem;
    margin: 1.5rem 0;
  }

  .timeline li {
    position: relative;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
  }

  .timeline li::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.45rem;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold-dark);
    background: var(--cream);
    transform: rotate(45deg);
  }

  .timeline li strong {
    font-family: 'Playfair Display', serif;
    display: block;
    color: var(--mid-brown);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
  }

  .legacy-quote {
    background: var(--dark-brown);
    padding: 3rem;
    position: relative;
    margin: 3rem 0;
    text-align: center;
  }

  .legacy-quote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.15;
    position: absolute;
    top: -1rem;
    left: 2rem;
    line-height: 1;
  }

  .legacy-quote p {
    font-family: 'IM Fell English', serif;
    font-size: 1.3rem;
    color: var(--cream);
    line-height: 1.7;
    font-style: italic;
    position: relative;
    z-index: 1;
  }

  .legacy-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--gold);
    font-style: normal;
  }

  .site-footer {
    background: var(--ink);
    padding: 4rem 2rem;
    text-align: center;
  }

  .footer-ornament {
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 12px;
    opacity: 0.4;
    display: block;
    margin-bottom: 1.5rem;
  }

  .footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 0.75rem;
  }

  .footer-sub {
    font-size: 0.85rem;
    color: rgba(245,237,216,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 20px;
  }

  .footer-Sumber {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: rgba(245,237,216,0.5);
    font-size: 1rem;
  }