@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");
      :root {
        --bg: #181b16;
        --panel: #20251e;
        --paper: #e2d6b9;
        --muted: #abb09b;
        --orange: #ef9b48;
        --line: #444a39;
        --green: #a8ba79;
        --ink: #252b21;
      }
      * {
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
        scroll-padding-top: 95px;
      }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--paper);
        font-family: Manrope, Arial, sans-serif;
      }
      body:after {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 20;
        opacity: 0.045;
        background: repeating-linear-gradient(
          0deg,
          transparent 0 3px,
          #fff 3px 4px
        );
      }
      a {
        color: inherit;
        text-decoration: none;
      }
      button {
        font: inherit;
        cursor: pointer;
      }
      a:focus-visible,
      button:focus-visible,
      summary:focus-visible {
        outline: 3px solid var(--orange);
        outline-offset: 5px;
      }
      .mono,
      .eyebrow,
      .tag,
      nav,
      .button,
      .meta {
        font-family: "IBM Plex Mono", monospace;
      }
      .wrap {
        width: min(1360px, 90%);
        margin: auto;
      }
      .top {
        border-bottom: 1px solid var(--line);
        position: sticky;
        top: 0;
        background: #181b16ed;
        backdrop-filter: blur(15px);
        z-index: 10;
      }
      .nav {
        height: 82px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
      }
      .brand {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .sigil {
        width: 40px;
        height: 40px;
        background: var(--orange);
        color: var(--ink);
        display: grid;
        place-items: center;
        font:
          bold 26px "Barlow Condensed",
          sans-serif;
        clip-path: polygon(0 0, 80% 0, 100% 22%, 100% 100%, 0 100%);
      }
      .brand small {
        display: block;
        font-size: 9px;
        letter-spacing: 2px;
        color: var(--muted);
        margin-top: 4px;
      }
      nav {
        display: flex;
        gap: 26px;
        font-size: 11px;
        text-transform: uppercase;
      }
      nav a:hover {
        color: var(--orange);
      }
      .status {
        font:
          10px "IBM Plex Mono",
          monospace;
        color: var(--green);
        display: flex;
        gap: 9px;
        align-items: center;
      }
      .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 12px #a8ba7970;
      }
      .hero {
        position: relative;
        overflow: hidden;
        padding: 45px 0 0;
      }
      .coordinates {
        display: flex;
        justify-content: space-between;
        font-size: 10px;
        color: var(--muted);
        letter-spacing: 1.6px;
      }
      .hero-grid {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        gap: 40px;
        align-items: center;
        min-height: 690px;
      }
      .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
        color: var(--orange);
        text-transform: uppercase;
      }
      .hero h1 {
        font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
        font-size: clamp(70px, 8.8vw, 133px);
        line-height: 0.86;
        font-weight: 700;
        letter-spacing: -2px;
        margin: 28px 0 24px;
        text-transform: uppercase;
      }
      .hero h1 span {
        display: block;
        color: var(--orange);
      }
      .intro {
        max-width: 460px;
        font-size: 15px;
        line-height: 1.85;
        color: var(--muted);
      }
      .intro strong {
        color: var(--paper);
        font-weight: 500;
      }
      .actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 32px;
      }
      .button {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        padding: 17px 21px;
        font-size: 11px;
        letter-spacing: 0.4px;
        background: var(--orange);
        color: var(--ink);
        border: 1px solid var(--orange);
        transition:
          transform 0.2s,
          background 0.2s;
      }
      .button:hover {
        transform: translateY(-3px);
        background: #ffb66b;
      }
      .button.secondary {
        background: transparent;
        color: var(--paper);
        border-color: var(--line);
      }
      .smallprint {
        font-size: 9px;
        color: var(--muted);
        margin-top: 23px;
        letter-spacing: 1px;
      }
      .record {
        position: relative;
        padding: 22px;
        border: 1px solid #747b58;
        background: #272e22;
        transform: rotate(2deg);
        max-width: 470px;
        margin: 30px auto 50px;
        width: 100%;
        box-shadow: 20px 25px 0 #0b100960;
      }
      .record:before,
      .record:after {
        content: "+";
        position: absolute;
        font: 25px monospace;
        color: var(--orange);
      }
      .record:before {
        top: -18px;
        left: -17px;
      }
      .record:after {
        bottom: -16px;
        right: -16px;
      }
      .record-head {
        display: flex;
        justify-content: space-between;
        font-size: 9px;
        letter-spacing: 1px;
        margin-bottom: 16px;
      }
      .portrait {
        height: 365px;
        position: relative;
        overflow: hidden;
        background: #787768;
      }
      .portrait img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
        filter: sepia(0.48) saturate(0.65) contrast(1.08);
      }
      .portrait:after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, #252c2180, transparent 45%);
        border: 12px solid #d4c79e19;
      }
      .scan {
        position: absolute;
        height: 1px;
        left: 0;
        right: 0;
        background: #efb667;
        box-shadow: 0 0 18px #ffa62d;
        z-index: 1;
        animation: scan 7s linear infinite;
      }
      .record-info {
        background: var(--paper);
        color: var(--ink);
        padding: 19px 18px;
        position: relative;
      }
      .record-info h2 {
        font:
          600 31px "Barlow Condensed",
          sans-serif;
        text-transform: uppercase;
        margin: 0 0 5px;
        letter-spacing: 1px;
      }
      .record-info p {
        font-size: 9px;
        margin: 0;
        line-height: 1.8;
      }
      .stamp {
        position: absolute;
        right: 16px;
        bottom: 20px;
        color: #6c783b;
        border: 2px solid #6c783b;
        padding: 5px;
        font: bold 10px monospace;
        transform: rotate(-12deg);
      }
      .barcode {
        height: 25px;
        width: 100px;
        margin-top: 12px;
        background: repeating-linear-gradient(
          90deg,
          #252b21 0 2px,
          transparent 2px 4px,
          #252b21 4px 5px,
          transparent 5px 8px
        );
      }
      .orbital {
        position: absolute;
        width: 610px;
        height: 610px;
        border: 1px solid #68734733;
        border-radius: 50%;
        right: -20px;
        top: 95px;
        pointer-events: none;
      }
      .orbital:after {
        content: "";
        position: absolute;
        inset: 30px;
        border: 1px dashed #68734755;
        border-radius: 50%;
      }
      .metrics {
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 0;
      }
      .metric {
        padding: 28px 25px;
        border-right: 1px solid var(--line);
      }
      .metric:first-child {
        padding-left: 0;
      }
      .metric:last-child {
        border: 0;
      }
      .metric b {
        font:
          600 40px "Barlow Condensed",
          sans-serif;
        color: var(--orange);
      }
      .metric p {
        font:
          10px "IBM Plex Mono",
          monospace;
        text-transform: uppercase;
        color: var(--muted);
        line-height: 1.8;
        margin: 5px 0 0;
      }
      .ticker {
        overflow: hidden;
        border-bottom: 1px solid var(--line);
        padding: 16px 0;
        color: var(--muted);
        font:
          10px "IBM Plex Mono",
          monospace;
        letter-spacing: 2px;
        white-space: nowrap;
      }
      .ticker div {
        display: inline-block;
        animation: marquee 35s linear infinite;
      }
      .ticker span {
        color: var(--orange);
        margin: 0 25px;
      }
      section.content {
        padding: 95px 0;
      }
      .section-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        margin-bottom: 35px;
        gap: 20px;
      }
      .section-head h2,
      .contact h2 {
        font:
          600 clamp(40px, 5vw, 66px)/1 "Barlow Condensed",
          sans-serif;
        text-transform: uppercase;
        margin: 12px 0 0;
      }
      .section-head p {
        font-size: 12px;
        color: var(--muted);
        max-width: 260px;
        line-height: 1.8;
      }
      .filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 24px;
      }
      .filter {
        background: transparent;
        color: var(--muted);
        border: 1px solid var(--line);
        padding: 10px 15px;
        font:
          10px "IBM Plex Mono",
          monospace;
      }
      .filter[aria-pressed="true"] {
        background: var(--paper);
        color: var(--ink);
        border-color: var(--paper);
      }
      .projects {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
      }
      .project {
        border: 1px solid var(--line);
        background: var(--panel);
        transition:
          transform 0.25s,
          border-color 0.25s;
      }
      .project:hover {
        transform: translateY(-5px);
        border-color: var(--orange);
      }
      .project[hidden] {
        display: none;
      }
      .schematic {
        height: 180px;
        overflow: hidden;
        position: relative;
        background: radial-gradient(#91a96618 1px, transparent 1px);
        background-size: 12px 12px;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
      }
      .schematic .node {
        padding: 13px 12px;
        border: 1px solid var(--green);
        font: 10px monospace;
        color: var(--green);
        background: var(--panel);
        z-index: 1;
      }
      .schematic .node.hot {
        color: var(--orange);
        border-color: var(--orange);
      }
      .schematic .arrow {
        color: var(--orange);
      }
      .schematic .num {
        position: absolute;
        bottom: 12px;
        left: 15px;
        font: 9px monospace;
        color: var(--muted);
      }
      .project-body {
        padding: 25px;
      }
      .tag {
        font-size: 9px;
        color: var(--orange);
        letter-spacing: 1px;
      }
      .project h3 {
        font:
          600 29px/1.05 "Barlow Condensed",
          sans-serif;
        margin: 14px 0;
      }
      .project p {
        font-size: 12px;
        line-height: 1.9;
        color: var(--muted);
      }
      .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 20px;
      }
      .chips span {
        font: 9px monospace;
        border: 1px solid var(--line);
        padding: 6px 8px;
        color: var(--muted);
      }
      details {
        margin-top: 22px;
        border-top: 1px solid var(--line);
        padding-top: 15px;
      }
      summary {
        font: 10px monospace;
        color: var(--paper);
        cursor: pointer;
      }
      details p {
        font-size: 11px !important;
      }
      .experience {
        background: var(--paper);
        color: var(--ink);
        position: relative;
      }
      .experience .eyebrow {
        color: #79512b;
      }
      .experience .section-head p {
        color: #59604d;
      }
      .timeline {
        border-top: 1px solid #a7ab92;
      }
      .job {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 40px;
        padding: 35px 0;
        border-bottom: 1px solid #a7ab92;
      }
      .job .date {
        font: 11px/1.8 monospace;
        color: #666a55;
      }
      .job h3 {
        font:
          600 35px "Barlow Condensed",
          sans-serif;
        margin: 0 0 5px;
      }
      .job .role {
        font: 10px monospace;
        letter-spacing: 1px;
      }
      .job ul {
        padding-left: 17px;
        max-width: 770px;
      }
      .job li {
        font-size: 13px;
        line-height: 1.9;
        margin: 10px 0;
        color: #505743;
      }
      .skills-layout {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        gap: 65px;
      }
      .skill-row {
        border-top: 1px solid var(--line);
        padding: 20px 0;
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 15px;
      }
      .skill-row h3 {
        font: 11px monospace;
        color: var(--orange);
        margin: 4px 0;
      }
      .skill-row p {
        font-size: 13px;
        line-height: 1.9;
        margin: 0;
        color: var(--muted);
      }
      .education {
        font-size: 12px;
        line-height: 1.9;
        color: var(--muted);
        margin-top: 28px;
        border-left: 2px solid var(--orange);
        padding-left: 18px;
      }
      .contact {
        padding: 65px 0 75px;
        border-top: 1px solid var(--line);
        position: relative;
        overflow: hidden;
      }
      .contact h2 {
        font-size: clamp(50px, 8vw, 110px);
        max-width: 850px;
      }
      .contact h2 span {
        color: var(--orange);
      }
      .contact p {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.8;
      }
      .footer {
        border-top: 1px solid var(--line);
        padding: 22px 0;
        font: 9px monospace;
        color: var(--muted);
      }
      .footer .wrap {
        display: flex;
        justify-content: space-between;
        gap: 20px;
      }
      .socials {
        display: flex;
        gap: 22px;
      }
      .socials a:hover {
        color: var(--orange);
      }
      .reveal {
        animation: appear 0.8s ease both;
      }
      .menu-toggle {
        display: none;
      }
      .note {
        font: 9px/1.8 monospace;
        color: var(--muted);
        margin-top: 18px;
      }
      .toast {
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--paper);
        color: var(--ink);
        padding: 14px 22px;
        font: 11px monospace;
        z-index: 30;
        box-shadow: 0 8px 40px #0008;
      }
      .toast[hidden] {
        display: none;
      }
      @keyframes scan {
        0% {
          top: 0;
        }
        100% {
          top: 100%;
        }
      }
      @keyframes marquee {
        to {
          transform: translateX(-35%);
        }
      }
      @keyframes appear {
        from {
          opacity: 0;
          transform: translateY(18px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      @media (min-width: 1600px) {
        .hero-grid {
          min-height: 760px;
        }
      }
      @media (max-width: 1000px) {
        .status {
          display: none;
        }
        .hero-grid {
          gap: 20px;
        }
        .portrait {
          height: 315px;
        }
        .projects {
          grid-template-columns: 1fr 1fr;
        }
        .project:last-child {
          grid-column: 1/-1;
        }
        .skills-layout {
          gap: 30px;
        }
        .metric {
          padding: 25px 15px;
        }
        .hero h1 {
          font-size: 88px;
        }
        .record {
          padding: 14px;
        }
      }
      @media (max-width: 700px) {
        .nav {
          height: 70px;
        }
        .menu-toggle {
          display: block;
          border: 1px solid var(--line);
          background: transparent;
          color: var(--paper);
          padding: 9px 12px;
          font: 10px monospace;
        }
        nav {
          display: none;
          position: absolute;
          top: 70px;
          left: 0;
          right: 0;
          background: var(--bg);
          padding: 22px 5%;
          border-bottom: 1px solid var(--line);
          flex-wrap: wrap;
        }
        nav.open {
          display: flex;
        }
        .coordinates span:last-child {
          display: none;
        }
        .hero {
          padding-top: 24px;
        }
        .hero-grid {
          grid-template-columns: 1fr;
          padding-top: 35px;
        }
        .hero h1 {
          font-size: clamp(75px, 17vw, 110px);
        }
        .record {
          width: 86%;
          max-width: 385px;
          margin: 20px auto 45px;
        }
        .portrait {
          height: 300px;
        }
        .orbital {
          top: 420px;
          right: -210px;
        }
        .metrics {
          grid-template-columns: 1fr 1fr;
        }
        .metric {
          border-bottom: 1px solid var(--line);
        }
        .metric:first-child {
          padding-left: 15px;
        }
        .metric:nth-child(2) {
          border-right: 0;
        }
        .metric:nth-child(3) {
          border-bottom: 0;
        }
        .metric b {
          font-size: 35px;
        }
        .projects {
          grid-template-columns: 1fr;
        }
        .project:last-child {
          grid-column: auto;
        }
        .section-head {
          align-items: start;
          flex-direction: column;
        }
        .section-head p {
          max-width: 100%;
          margin: 0;
        }
        .job {
          grid-template-columns: 1fr;
          gap: 15px;
        }
        .skills-layout {
          grid-template-columns: 1fr;
          gap: 25px;
        }
        .skill-row {
          grid-template-columns: 110px 1fr;
        }
        section.content {
          padding: 65px 0;
        }
        .footer .wrap {
          flex-direction: column;
        }
        .contact {
          padding: 55px 0;
        }
        .hero .intro {
          font-size: 14px;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
        *,
        *:before,
        *:after {
          animation: none !important;
          transition: none !important;
        }
      }
      @media print {
        .top,
        .ticker,
        .actions,
        .filters,
        .scan,
        .orbital,
        .contact,
        .footer {
          display: none;
        }
        body {
          background: white;
          color: black;
        }
        .hero-grid {
          min-height: auto;
        }
        .hero h1 {
          font-size: 60px;
        }
        .record {
          transform: none;
        }
        .projects {
          grid-template-columns: 1fr;
        }
        .project {
          break-inside: avoid;
        }
        .content {
          padding: 30px 0 !important;
        }
      }
/* ==========================================================================
   INTERACTIVE RETROFUTURISTIC ARCHIVE SUITE
   - Non-intrusive, 100% stable UI that never hides or shifts existing content
   ========================================================================== */

/* Header Background Music (BGM) Toggle */
.nav-status-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bgm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(32, 37, 30, 0.75);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  font: 10px "IBM Plex Mono", monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
  user-select: none;
}

.bgm-toggle:hover {
  border-color: var(--orange);
  color: var(--paper);
  background: rgba(239, 155, 72, 0.1);
}

.bgm-toggle.active {
  border-color: var(--green);
  color: var(--green);
}

.bgm-toggle .bgm-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.2s;
}

.bgm-toggle.active .bgm-indicator {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: bgm-pulse 2s infinite ease-in-out;
}

.bgm-toggle svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.mobile-only {
  display: none;
}

@keyframes bgm-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* Header Responsive Constraints */
@media (max-width: 1000px) {
  .nav-status-group .status {
    display: none;
  }
}

@media (max-width: 700px) {
  .nav-status-group {
    display: none;
  }
  .mobile-only {
    display: inline-flex;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
  }
}

/* Scroll Progress Laser Bar */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--orange));
  box-shadow: 0 0 8px var(--orange);
  z-index: 100;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* Scrollspy Active Nav Links */
nav a {
  position: relative;
  transition: color 0.2s ease;
}

nav a.active {
  color: var(--orange);
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

/* Tactical Precision Reticle (Ultra-sleek, never covers text) */
.cursor-tracker {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.cursor-tracker.visible {
  opacity: 1;
}

.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--orange);
}

.cursor-reticle {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(239, 155, 72, 0.45);
  border-radius: 50%;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              border-radius 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.15s ease;
}

/* Reticle Hover Expand (Frames links cleanly without blocking text) */
.cursor-hover .cursor-reticle {
  width: 38px;
  height: 38px;
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(239, 155, 72, 0.35);
}

/* Reticle Click Contract */
.cursor-down .cursor-reticle {
  transform: translate(-50%, -50%) scale(0.85);
  border-color: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.cursor-down .cursor-dot {
  background: var(--green);
}

/* Stationary Tactical Telemetry HUD (Fixed at bottom-left corner) */
.terminal-telemetry {
  position: fixed;
  bottom: 14px;
  left: 24px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  background: rgba(24, 27, 22, 0.85);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: border-color 0.2s;
}

.telemetry-coords {
  color: var(--green);
}

.telemetry-status {
  color: var(--orange);
}

.telemetry-sep {
  color: var(--line);
}

/* Hide custom cursor on mobile / touch */
@media (hover: none) and (pointer: coarse) {
  .cursor-tracker,
  .terminal-telemetry {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .terminal-telemetry {
    display: none !important;
  }
}

/* Interactive Schematic Nodes */
.schematic .node {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.schematic .node:hover,
.schematic .node:focus-visible {
  transform: scale(1.08);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 12px rgba(239, 155, 72, 0.5);
  outline: none;
}

.schematic .node:active {
  transform: scale(0.96);
}

/* Tabular numbers for smooth counter display */
.counter {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
  .cursor-tracker,
  .terminal-telemetry {
    display: none !important;
  }
  .bgm-toggle.active .bgm-indicator {
    animation: none !important;
  }
}

/* ==========================================================================
   TVA BUSINESS CARD & SACRED TIMELINE 3D DOSSIER
   - Recreates canonical Loki TVA Business Card with 3D Interactive Flip
   ========================================================================== */
.tva-card-stage {
  perspective: 1400px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 14px;
}

.tva-card {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 560;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.34, 1.35, 0.64, 1);
  cursor: pointer;
  user-select: none;
  border-radius: 20px;
}

.tva-card.flipped {
  transform: rotateY(180deg);
}

.tva-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(223, 132, 58, 0.25);
}

.tva-card-back {
  transform: rotateY(180deg);
}

.tva-card-sheen {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(239, 155, 72, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 5;
}

.tva-card-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tva-flip-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(18, 20, 16, 0.85);
  border: 1px solid var(--orange);
  color: var(--paper);
  padding: 9px 14px;
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.tva-flip-trigger:hover {
  background: var(--orange);
  color: #121410;
  box-shadow: 0 0 16px rgba(239, 155, 72, 0.45);
}

.tva-flip-trigger small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}

.tva-flip-trigger:hover small {
  color: #2b1d0e;
}

@keyframes tvaNodePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
    filter: drop-shadow(0 0 5px #ffbe7d);
  }
}

.pulse-node {
  transform-origin: center;
  transform-box: fill-box;
  animation: tvaNodePulse 2.8s infinite ease-in-out;
}

.pulse-node:nth-child(2n) { animation-delay: 0.6s; }
.pulse-node:nth-child(3n) { animation-delay: 1.2s; }
.pulse-node:nth-child(5n) { animation-delay: 1.8s; }

@media (prefers-reduced-motion: reduce) {
  .pulse-node {
    animation: none !important;
  }
  .tva-card {
    transition: transform 0.3s ease !important;
  }
}

/* ==========================================================================
   MARVEL TIME-SLIP & DIMENSION CHANGE ENGINE (MCU / LOKI TVA THEME)
   ========================================================================== */
.tva-card-stage {
  perspective: 1400px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 10px;
  position: relative;
  /* Dynamic CSS Variables driven by scroll physics */
  --slip-intensity: 0;
  --slip-shift-x: 0px;
  --slip-skew: 0deg;
  --slip-chroma: 0px;
  --scroll-tilt-x: 0deg;
  --scroll-tilt-y: 0deg;
  --scroll-elevate-z: 0px;
}

.tva-timeslip-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 560;
  transform-style: preserve-3d;
  will-change: transform, filter;
  transform: translate3d(var(--slip-shift-x), 0, var(--scroll-elevate-z))
             rotateX(var(--scroll-tilt-x))
             rotateY(var(--scroll-tilt-y))
             skewX(var(--slip-skew));
  transition: transform 0.12s ease-out;
}

/* Chromatic Aberration Halo on Active Time-Slip */
.tva-timeslip-wrapper.is-slipping {
  filter: drop-shadow(calc(var(--slip-intensity) * -6px) 0 10px rgba(44, 232, 181, 0.55))
          drop-shadow(calc(var(--slip-intensity) * 6px) 0 10px rgba(239, 155, 72, 0.55));
}

/* Temporal Ghost Layers (Loki Spatiotemporal Displacement Echoes) */
.timeslip-ghost {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.1s ease-out;
}

.timeslip-ghost-cyan {
  border: 1.8px solid #2ce8b5;
  box-shadow: 0 0 18px rgba(44, 232, 181, 0.4), inset 0 0 14px rgba(44, 232, 181, 0.2);
  transform: translate3d(calc(var(--slip-intensity) * -8px), calc(var(--slip-intensity) * -3px), -10px);
  mix-blend-mode: screen;
}

.timeslip-ghost-amber {
  border: 1.8px solid #ff9e3b;
  box-shadow: 0 0 18px rgba(255, 158, 59, 0.4), inset 0 0 14px rgba(255, 158, 59, 0.2);
  transform: translate3d(calc(var(--slip-intensity) * 8px), calc(var(--slip-intensity) * 3px), -10px);
  mix-blend-mode: screen;
}

.tva-timeslip-wrapper.is-slipping .timeslip-ghost {
  opacity: calc(var(--slip-intensity) * 0.85);
}

/* Timeline Filaments (Sacred Timeline Strings) */
.timeline-filaments {
  position: absolute;
  inset: -14px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.filaments-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.filament-thread {
  stroke-dasharray: 60 180;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: filamentFlow 3s linear infinite;
}

.filament-gold {
  stroke: #ffbe7d;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px #ffbe7d);
}

.filament-green {
  stroke: #8cb852;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px #8cb852);
}

.filament-cyan {
  stroke: #2ce8b5;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px #2ce8b5);
}

@keyframes filamentFlow {
  from {
    stroke-dashoffset: 240;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.tva-timeslip-wrapper.is-slipping .timeline-filaments {
  opacity: calc(var(--slip-intensity) * 0.9);
}

/* Glitch Scanline Slices */
.timeslip-glitch-layer {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(239, 155, 72, 0.08) 0px,
    rgba(239, 155, 72, 0.08) 2px,
    transparent 2px,
    transparent 6px
  );
  mix-blend-mode: color-dodge;
  transition: opacity 0.15s ease;
}

.tva-timeslip-wrapper.is-slipping .timeslip-glitch-layer {
  opacity: calc(var(--slip-intensity) * 0.75);
}

/* Multiverse Dimension Telemetry Pill */
.temporal-dimension-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: rgba(14, 16, 12, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  font: 9px "IBM Plex Mono", monospace;
  letter-spacing: 1px;
  border-radius: 2px;
  margin-bottom: 10px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.temporal-dimension-badge.shifting {
  border-color: var(--orange);
  background: rgba(239, 155, 72, 0.1);
  color: var(--paper);
}

.dimension-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.temporal-dimension-badge.shifting .dimension-pulse-dot {
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: dimensionPulse 0.8s infinite ease-in-out;
}

@keyframes dimensionPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

.dimension-status {
  font-weight: 600;
  letter-spacing: 1.2px;
}

.dimension-variance {
  color: var(--orange);
  font-size: 8px;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .tva-timeslip-wrapper {
    transform: none !important;
    filter: none !important;
  }
  .timeslip-ghost,
  .timeline-filaments,
  .timeslip-glitch-layer {
    display: none !important;
  }
}

/* ==========================================================================
   CINEMATIC RETRO-FUTURIST SCROLL CHOREOGRAPHY & 3D TRANSITIONS
   - Seamless, high-performance scroll transitions driven by GPU transforms
   - Manila paper dossier styling & active terminal signal telemetry
   ========================================================================== */

/* 1. Sleek Laser Reality Dividers */
.reality-divider {
  width: 100%;
  max-width: 1100px;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--line) 20%, var(--orange) 50%, var(--line) 80%, transparent 95%);
  position: relative;
  margin: 45px auto;
  opacity: 0.7;
}

.reality-divider:after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 90px;
  height: 3px;
  background: #ffbe7d;
  box-shadow: 0 0 14px var(--orange), 0 0 24px rgba(239, 155, 72, 0.4);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* 2. Authentic Manila Dossier Archive Seal (#experience) */
.dossier-archive-seal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(216, 212, 198, 0.45);
  border: 1px solid #9aa085;
  border-radius: 2px;
  font-size: 9.5px;
  color: #59604d;
  letter-spacing: 1.2px;
}

.seal-branch {
  color: #79512b;
  font-weight: 700;
}

.seal-divider {
  color: #9aa085;
}

.seal-temporal {
  letter-spacing: 1px;
}

.seal-stamp {
  font-size: 8px;
  font-weight: 700;
  color: #8c5324;
  border: 1.5px solid #8c5324;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* 3. Core Scroll Reveal System (Only active when .motion-ready is set by JS) */
body.motion-ready .project,
body.motion-ready .job,
body.motion-ready .skill-row,
body.motion-ready .metric {
  opacity: 0.15;
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  will-change: opacity, transform;
}

body.motion-ready .project.is-revealed,
body.motion-ready .job.is-revealed,
body.motion-ready .skill-row.is-revealed,
body.motion-ready .metric.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered transition delays for adjacent items */
body.motion-ready .project:nth-child(1) { transition-delay: 0.05s; }
body.motion-ready .project:nth-child(2) { transition-delay: 0.15s; }
body.motion-ready .project:nth-child(3) { transition-delay: 0.25s; }

body.motion-ready .job:nth-child(1) { transition-delay: 0.08s; }
body.motion-ready .job:nth-child(2) { transition-delay: 0.2s; }

body.motion-ready .skill-row:nth-child(1) { transition-delay: 0.04s; }
body.motion-ready .skill-row:nth-child(2) { transition-delay: 0.08s; }
body.motion-ready .skill-row:nth-child(3) { transition-delay: 0.12s; }
body.motion-ready .skill-row:nth-child(4) { transition-delay: 0.16s; }
body.motion-ready .skill-row:nth-child(5) { transition-delay: 0.20s; }
body.motion-ready .skill-row:nth-child(6) { transition-delay: 0.24s; }

/* 4. Interactive Hover & 3D Lift on Project Dossiers */
.project {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 155, 72, 0.12);
  border-color: rgba(239, 155, 72, 0.6);
}

/* Multiverse Dimension Banners & Accents */
.dimension-shift-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: rgba(14, 16, 12, 0.95);
  border-bottom: 1px solid var(--line);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.dimension-shift-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

article[data-dimension="alpha"] { border-top: 2px solid #df843a; }
article[data-dimension="alpha"] .dimension-shift-pulse {
  background: #df843a;
  box-shadow: 0 0 8px #df843a;
}
article[data-dimension="alpha"]:hover {
  border-color: #df843a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 24px rgba(223, 132, 58, 0.25);
}

article[data-dimension="gamma"] { border-top: 2px solid #2ce8b5; }
article[data-dimension="gamma"] .dimension-shift-pulse {
  background: #2ce8b5;
  box-shadow: 0 0 8px #2ce8b5;
}
article[data-dimension="gamma"]:hover {
  border-color: #2ce8b5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 24px rgba(44, 232, 181, 0.25);
}

article[data-dimension="epsilon"] { border-top: 2px solid #f43f5e; }
article[data-dimension="epsilon"] .dimension-shift-pulse {
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}
article[data-dimension="epsilon"]:hover {
  border-color: #f43f5e;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 24px rgba(244, 63, 94, 0.25);
}

/* 5. Living Signal Flow on Schematic Node Arrows */
@keyframes signalFlow {
  0% {
    opacity: 0.35;
    color: var(--line);
    transform: scale(0.95);
    text-shadow: none;
  }
  50% {
    opacity: 1;
    color: var(--orange);
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--orange);
  }
  100% {
    opacity: 0.35;
    color: var(--line);
    transform: scale(0.95);
    text-shadow: none;
  }
}

.project.is-revealed .schematic .arrow {
  display: inline-block;
  animation: signalFlow 2.4s infinite ease-in-out;
}

.project.is-revealed .schematic .arrow:nth-of-type(2) {
  animation-delay: 1.2s;
}

/* 6. Active Laser Stream on Timeline (#experience) */
.timeline {
  position: relative;
}

.job {
  position: relative;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.job .date {
  transition: color 0.3s ease;
}

body.motion-ready .job.is-revealed .date:before {
  content: "✓ RECORDED";
  display: block;
  font: 8px "IBM Plex Mono", monospace;
  color: #79512b;
  border: 1px solid #79512b;
  padding: 1px 6px;
  width: fit-content;
  margin-bottom: 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* 7. Woven Loom Hover Reaction on Skills Rows */
.skill-row {
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 6px;
}

.skill-row:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), #ffbe7d);
  box-shadow: 0 0 8px rgba(239, 155, 72, 0.5);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-row:hover:after {
  width: 100%;
}

.skill-row:hover h3 {
  color: var(--orange);
  text-shadow: 0 0 14px rgba(239, 155, 72, 0.35);
  transition: color 0.2s, text-shadow 0.2s;
}

/* 8. Laser Progress Bar with Pulsing Traveling Head */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--orange), #ffbe7d);
  box-shadow: 0 0 10px var(--orange), 0 0 20px rgba(239, 155, 72, 0.6);
  width: 0%;
  transition: width 0.08s ease-out;
  z-index: 100;
}

/* 9. Reset Charge Aperture (Contact Finale) */
.contact {
  position: relative;
  overflow: hidden;
}

.reset-charge-portal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}

.reset-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(223, 132, 58, 0.25);
  box-shadow: 0 0 30px rgba(223, 132, 58, 0.1);
  animation: resetPulse 6s infinite ease-in-out;
}

.reset-ring-1 { width: 320px; height: 320px; animation-delay: 0s; }
.reset-ring-2 { width: 580px; height: 580px; animation-delay: 2s; border-color: rgba(140, 184, 82, 0.2); }
.reset-ring-3 { width: 860px; height: 860px; animation-delay: 4s; border-color: rgba(223, 132, 58, 0.15); }

.reset-core-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 132, 58, 0.14) 0%, transparent 70%);
}

@keyframes resetPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.85;
    box-shadow: 0 0 45px rgba(223, 132, 58, 0.25);
  }
}

.reset-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 16, 12, 0.9);
  border: 1px solid rgba(140, 184, 82, 0.4);
  color: #8cb852;
  padding: 6px 14px;
  font-size: 9px;
  letter-spacing: 1.5px;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* 10. Heading Entrance Glitch */
@keyframes headingGlitch {
  0% { transform: translate(0); }
  25% { transform: translate(-2px, 1px) skewX(-1.5deg); color: #2ce8b5; }
  50% { transform: translate(2px, -1px) skewX(1.5deg); color: var(--orange); }
  75% { transform: translate(-1px, 0); }
  100% { transform: translate(0); color: inherit; }
}

.glitch-heading {
  animation: headingGlitch 0.22s ease forwards;
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
  body.motion-ready .project,
  body.motion-ready .job,
  body.motion-ready .skill-row,
  body.motion-ready .metric {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reset-ring,
  .glitch-heading,
  .project.is-revealed .schematic .arrow {
    animation: none !important;
  }
}

