    :root {
      --bg: #090a0d;
      --bg-elevated: #111319;
      --paper: #f6f4ef;
      --ink: #0f1117;
      --cream: #f4f1ea;
      --muted: #8b92a0;
      --gold: #d4a84f;
      --gold-soft: #ead092;
      --crimson: #b52437;
      --line: rgba(244, 241, 234, 0.12);
      --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-curtain: cubic-bezier(0.77, 0, 0.175, 1);
    }

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

    html, body {
      width: 100%;
      min-height: 100%;
      background: var(--bg);
      color: var(--cream);
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    /* Subtle architectural dot matrix */
    .dot-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image: radial-gradient(rgba(244, 241, 234, 0.08) 1px, transparent 1px);
      background-size: 28px 28px;
      mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%);
      -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%);
    }

    /* Ambient warm glow behind emblem */
    .ambient-glow {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(520px circle at 50% 34%, rgba(212, 168, 79, 0.11), transparent 70%),
        radial-gradient(640px circle at 50% 70%, rgba(26, 42, 82, 0.18), transparent 75%);
    }

    /* Background Decorative SVG Paths */
    .bg-paths-svg {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
      opacity: 0.55;
    }

    .draw-path {
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* Curtain Transition Overlay */
    .curtain {
      position: fixed;
      inset: 0;
      z-index: 100;
      pointer-events: none;
      transform: translateY(100%);
      transition: transform 0.72s var(--ease-curtain);
    }

    .curtain--gold {
      background: var(--gold);
      z-index: 99;
    }

    .curtain--dark {
      background: #0d0f14;
      z-index: 100;
      transition-delay: 0.06s;
    }

    .curtain.is-covering { transform: translateY(0%); }
    .curtain.is-leaving { transform: translateY(-100%); }

    /* Views */
    .view {
      position: relative;
      z-index: 10;
      min-height: 100vh;
      width: 100%;
      display: flex;
      flex-direction: column;
    }

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

    /* ==================== LANDING VIEW ==================== */
    .topbar {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 28px 36px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      opacity: 0;
      transform: translateY(-12px);
      transition: opacity 0.7s ease, transform 0.7s var(--ease-expo);
    }

    .is-ready .topbar {
      opacity: 1;
      transform: translateY(0);
    }

    .topbar-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: -0.02em;
      color: var(--cream);
    }

    .topbar-logo {
      width: 30px;
      height: 30px;
      object-fit: contain;
    }

    .topbar-tag {
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--muted);
      letter-spacing: 0.01em;
    }

    /* Hero Stage */
    .hero {
      flex: 1;
      width: 100%;
      max-width: 1040px;
      margin: 0 auto;
      padding: 16px 24px 48px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    /* Emblem Replacing "Portfolio" Text with Path-Drawn Frame */
    .emblem-slot {
      position: relative;
      width: clamp(140px, 22vw, 190px);
      height: clamp(140px, 22vw, 190px);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 10px;
      perspective: 900px;
    }

    .emblem-frame-svg {
      position: absolute;
      inset: -16px;
      width: calc(100% + 32px);
      height: calc(100% + 32px);
      pointer-events: none;
    }

    .emblem-img-wrap {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: scale(0.86) translateY(12px);
      transition: opacity 0.9s var(--ease-expo) 0.45s, transform 1s var(--ease-expo) 0.45s;
      transform-style: preserve-3d;
    }

    .is-ready .emblem-img-wrap {
      opacity: 1;
      transform: scale(1) translateY(0);
    }

    .emblem-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.65));
      user-select: none;
      -webkit-user-drag: none;
    }

    /* Path-Drawn "SIAPBIDKUM" (Replacing "aora") */
    .wordmark-svg-wrap {
      width: min(92vw, 760px);
      margin: 4px auto 12px;
      overflow: visible;
    }

    .wordmark-svg {
      width: 100%;
      height: auto;
      display: block;
      overflow: visible;
    }

    .wordmark-letter {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 800;
      font-size: 92px;
      letter-spacing: -0.03em;
      fill: rgba(244, 241, 234, 0);
      stroke: var(--cream);
      stroke-width: 1.6px;
      stroke-dasharray: 520;
      stroke-dashoffset: 520;
      transition:
        stroke-dashoffset 1.35s var(--ease-expo),
        fill 0.75s ease,
        stroke 0.75s ease;
    }

    .is-ready .wordmark-letter {
      stroke-dashoffset: 0;
    }

    .is-filled .wordmark-letter {
      fill: rgba(244, 241, 234, 1);
      stroke: rgba(212, 168, 79, 0.35);
    }

    /* Subtitle with Editorial Serif */
    .hero-caption {
      font-family: 'Instrument Serif', Georgia, serif;
      font-style: italic;
      font-size: clamp(1.25rem, 2.8vw, 1.85rem);
      color: var(--gold-soft);
      margin-bottom: 10px;
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.8s ease 1.15s, transform 0.8s var(--ease-expo) 1.15s;
    }

    .hero-sub {
      max-width: 500px;
      font-size: clamp(0.9rem, 1.7vw, 1rem);
      line-height: 1.65;
      color: var(--muted);
      margin-bottom: 34px;
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.8s ease 1.28s, transform 0.8s var(--ease-expo) 1.28s;
    }

    .is-ready .hero-caption,
    .is-ready .hero-sub {
      opacity: 1;
      transform: translateY(0);
    }

    /* THE 1 CTA BUTTON (Path-Border + Slide Fill) */
    .cta-area {
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.8s ease 1.4s, transform 0.8s var(--ease-expo) 1.4s;
    }

    .is-ready .cta-area {
      opacity: 1;
      transform: translateY(0);
    }

    .portal-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 17px 36px;
      border-radius: 999px;
      border: 1px solid rgba(212, 168, 79, 0.5);
      background: rgba(17, 19, 25, 0.8);
      color: var(--cream);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 600;
      font-size: 0.96rem;
      letter-spacing: -0.01em;
      cursor: pointer;
      overflow: hidden;
      transition: border-color 0.35s ease, transform 0.2s ease, box-shadow 0.35s ease;
    }

    .portal-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--cream);
      border-radius: 999px;
      transform: translateY(102%);
      transition: transform 0.45s var(--ease-expo);
      z-index: 0;
    }

    .portal-btn:hover::before {
      transform: translateY(0%);
    }

    .portal-btn:hover {
      border-color: var(--cream);
      box-shadow: 0 12px 34px rgba(212, 168, 79, 0.18);
    }

    .portal-btn-label {
      position: relative;
      z-index: 1;
      transition: color 0.35s ease;
    }

    .portal-btn:hover .portal-btn-label {
      color: var(--ink);
    }

    .portal-btn-arrow {
      position: relative;
      z-index: 1;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--gold);
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.4s var(--ease-expo), background 0.35s ease, color 0.35s ease;
    }

    .portal-btn:hover .portal-btn-arrow {
      background: var(--ink);
      color: var(--cream);
      transform: translateX(4px);
    }

    .portal-btn-arrow svg {
      width: 15px;
      height: 15px;
    }

    /* Footer */
    .landing-footer {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 36px 26px;
      border-top: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.78rem;
      color: var(--muted);
    }

    /* ==================== LOGIN VIEW (PATH-DRAWN MONOLITH) ==================== */
    .login-view {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background: transparent;
      color: var(--cream);
    }

    .login-stage {
      flex: 1;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 24px 48px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: none;
      border: none;
      color: var(--muted);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.86rem;
      font-weight: 500;
      cursor: pointer;
      padding: 6px 0;
      transition: color 0.25s ease, transform 0.25s ease;
    }

    .back-btn:hover {
      color: var(--gold-soft);
      transform: translateX(-4px);
    }

    .back-btn svg {
      width: 16px;
      height: 16px;
    }

    .monolith-wrap {
      position: relative;
      width: 100%;
      max-width: 430px;
      perspective: 1000px;
    }

    /* SVG Path-Drawing Border Frame around Monolith */
    .monolith-frame-svg {
      position: absolute;
      inset: -12px;
      width: calc(100% + 24px);
      height: calc(100% + 24px);
      pointer-events: none;
      z-index: 2;
    }

    .monolith-card {
      position: relative;
      z-index: 1;
      background: rgba(14, 16, 22, 0.86);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      border: 1px solid rgba(244, 241, 234, 0.08);
      border-radius: 18px;
      padding: 36px 32px 30px;
      box-shadow: 0 32px 70px rgba(0, 0, 0, 0.68);
      transform-style: preserve-3d;
      transition: transform 0.2s ease-out;
      overflow: hidden;
    }

    /* Mouse-following subtle sheen inside monolith */
    .monolith-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 20%), rgba(212, 168, 79, 0.09), transparent 65%);
      pointer-events: none;
    }

    .monolith-head {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin-bottom: 26px;
    }

    .monolith-logo {
      width: 68px;
      height: 68px;
      object-fit: contain;
      margin-bottom: 12px;
      filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
    }

    .monolith-title {
      font-weight: 800;
      font-size: 1.55rem;
      letter-spacing: -0.03em;
      color: var(--cream);
    }

    .monolith-serif {
      font-family: 'Instrument Serif', Georgia, serif;
      font-style: italic;
      font-size: 1.18rem;
      color: var(--gold-soft);
      margin-top: 2px;
    }

    .monolith-divider {
      width: 100%;
      height: 12px;
      margin: 14px 0 4px;
      display: block;
    }

    .field {
      margin-bottom: 20px;
    }

    .field-label {
      display: block;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 8px;
      letter-spacing: 0.01em;
    }

    .field-box {
      position: relative;
      display: flex;
      align-items: center;
    }

    .field-input {
      width: 100%;
      padding: 13px 44px 13px 15px;
      border-radius: 10px;
      border: 1px solid rgba(244, 241, 234, 0.14);
      background: rgba(9, 10, 13, 0.75);
      color: var(--cream);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.94rem;
      outline: none;
      transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .field-input::placeholder {
      color: #525866;
    }

    .field-input:focus {
      border-color: var(--gold);
      background: rgba(9, 10, 13, 0.95);
      box-shadow: 0 0 0 3px rgba(212, 168, 79, 0.14);
    }

    /* Animated bottom beam on focus */
    .field-beam {
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0%;
      height: 1.5px;
      background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
      transform: translateX(-50%);
      transition: width 0.35s var(--ease-expo);
      pointer-events: none;
    }

    .field-input:focus ~ .field-beam {
      width: 86%;
    }

    .eye-btn {
      position: absolute;
      right: 11px;
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 6px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .eye-btn:hover {
      color: var(--cream);
      background: rgba(244, 241, 234, 0.08);
    }

    .eye-btn svg {
      width: 18px;
      height: 18px;
    }

    .form-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      font-size: 0.82rem;
    }

    .check-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      cursor: pointer;
    }

    .check-label input {
      accent-color: var(--gold);
      width: 15px;
      height: 15px;
    }

    .demo-btn {
      background: none;
      border: none;
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--gold-soft);
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: opacity 0.2s ease;
    }

    .demo-btn:hover { opacity: 0.78; }

    .submit-btn {
      position: relative;
      width: 100%;
      padding: 15px 22px;
      border: 1px solid rgba(212, 168, 79, 0.5);
      border-radius: 10px;
      background: var(--cream);
      color: var(--ink);
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 700;
      font-size: 0.94rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      overflow: hidden;
      transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    }

    .submit-btn:hover:not(:disabled) {
      background: var(--gold-soft);
      transform: translateY(-1px);
      box-shadow: 0 10px 28px rgba(212, 168, 79, 0.22);
    }

    .submit-btn:disabled {
      opacity: 0.75;
      cursor: wait;
    }

    .spinner {
      width: 16px;
      height: 16px;
      border: 2px solid rgba(15, 17, 23, 0.25);
      border-top-color: var(--ink);
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      display: none;
    }

    .submit-btn.is-loading .spinner {
      display: inline-block;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .feedback {
      margin-top: 16px;
      padding: 13px 15px;
      border-radius: 10px;
      font-size: 0.84rem;
      line-height: 1.5;
      display: none;
    }

    .feedback.is-error {
      display: block;
      background: rgba(181, 36, 55, 0.16);
      border: 1px solid rgba(181, 36, 55, 0.45);
      color: #fecdd3;
    }

    .feedback.is-success {
      display: block;
      background: rgba(16, 185, 129, 0.14);
      border: 1px solid rgba(16, 185, 129, 0.4);
      color: #a7f3d0;
    }

    .monolith-foot {
      margin-top: 22px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.75rem;
      color: var(--muted);
    }

    .shake {
      animation: shakeX 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    }

    @keyframes shakeX {
      15%, 85% { transform: translateX(-4px); }
      30%, 70% { transform: translateX(5px); }
      45%, 60% { transform: translateX(-5px); }
    }

    @media (max-width: 520px) {
      .monolith-card { padding: 28px 22px 24px; }
    }

    @media (max-width: 600px) {
      .topbar { padding: 20px 20px 10px; }
      .topbar-tag { display: none; }
      .landing-footer { padding: 14px 20px 22px; flex-direction: column; gap: 6px; text-align: center; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
