    @font-face {
      font-family: 'Halfomania';
      src: url('attached_assets/Halfomania-Regular_1765372641250.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
      font-display: block;
    }

    :root {
      --black: #000000;
      --bone: #f5f5f0;
      --bone-subtle: rgba(245, 245, 240, 0.6);
      --bone-ghost: rgba(245, 245, 240, 0.15);
      --bone-whisper: rgba(245, 245, 240, 0.08);
      --harvest-gold: #daa520;
      --harvest-gold-subtle: rgba(218, 165, 32, 0.8);
    }
    *, *::before, *::after { 
      margin: 0; 
      padding: 0; 
      box-sizing: border-box;
      cursor: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'), none !important;
    }
    html { scroll-behavior: smooth; height: 100%; width: 100%; }
    body {
      font-family: 'Comfortaa', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--black);
      color: var(--bone);
      min-height: 100vh;
      overflow-x: hidden;
      font-weight: 300;
      letter-spacing: 0.02em;
    }
    ::selection { background: var(--harvest-gold); color: var(--black); }

    /* Mobile Warning Overlay */
    .mobile-warning-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--black);
      display: none;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      align-content: center;
      z-index: 100000;
      padding: 20px;
      gap: 12px;
    }
    
    .mobile-warning-overlay.visible {
      display: flex;
    }
    
    .mobile-warning-content {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 12px;
      max-width: 90%;
    }
    
    .mobile-warning-word {
      font-family: 'Halfomania', sans-serif;
      font-size: 2rem;
      color: var(--bone);
      opacity: 0;
      transform: scale(0.8);
      transition: opacity 0.4s ease, transform 0.4s ease;
      text-shadow: 0 0 20px rgba(245, 245, 240, 0.3);
    }
    
    .mobile-warning-word.visible {
      opacity: 1;
      transform: scale(1);
    }
    
    .mobile-warning-word.gold-word {
      color: var(--harvest-gold);
      text-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
    }

    .intro-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--black);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 10000;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }
    .intro-overlay.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .intro-text-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }

    .welcome-container {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 99996;
      gap: 1.5rem;
      opacity: 0;
      filter: blur(20px);
      transform: translate(-50%, -50%) scale(0.9);
    }

    .welcome-container.fonts-ready {
      animation: welcomeFadeIn 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes welcomeFadeIn {
      0% {
        opacity: 0;
        filter: blur(20px);
        transform: translate(-50%, -50%) scale(0.9);
      }
      100% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, -50%) scale(1);
      }
    }

    .brain-bg {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, calc(-50% - 180px));
      width: 480px;
      height: auto;
      opacity: 0;
      pointer-events: none;
      z-index: 1;
      animation: brainFadeIn 4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    }

    @keyframes brainFadeIn {
      0% {
        opacity: 0;
        filter: blur(10px);
        transform: translate(-50%, calc(-50% - 180px)) scale(0.8);
      }
      100% {
        opacity: 0.85;
        filter: blur(0);
        transform: translate(-50%, calc(-50% - 180px)) scale(1);
      }
    }

    .welcome-container.fade-out {
      animation: smoothFadeOut 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes smoothFadeIn {
      0% {
        opacity: 0;
        filter: blur(15px);
        transform: translate(-50%, -50%) scale(0.95);
      }
      100% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, -50%) scale(1);
      }
    }

    @keyframes smoothFadeOut {
      0% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, -50%) scale(1);
      }
      100% {
        opacity: 0;
        filter: blur(15px);
        transform: translate(-50%, -50%) scale(1.02);
      }
    }

    .brain-icon {
      width: 320px;
      height: 320px;
      cursor: none;
    }

    .welcome-clickable {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      cursor: none;
    }

    .brain-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      /* animation removed for performance */
    }

    @keyframes pulseBrain {
      0%, 100% { 
        opacity: 0.7;
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
        transform: scale(1);
      }
      50% { 
        opacity: 1;
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.7));
        transform: scale(1.02);
      }
    }

    .audio-prompt {
      position: absolute;
      top: 45%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      opacity: 0;
      filter: blur(15px);
      visibility: hidden;
      cursor: none;
    }

    .audio-prompt.visible {
      visibility: visible;
      animation: smoothFadeIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .audio-prompt.fade-out {
      animation: smoothFadeOut 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .audio-icon {
      width: 80px;
      height: 80px;
    }

    .headphones-svg {
      width: 100%;
      height: 100%;
      fill: none;
      stroke: #ffffff;
      stroke-width: 2;
      /* animation removed for performance */
    }

    @keyframes pulseIcon {
      0%, 100% { 
        opacity: 0.6;
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
      }
      50% { 
        opacity: 1;
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.7));
      }
    }

    .audio-text {
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(2rem, 6vw, 4rem);
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      text-align: center;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }

    .welcome-text {
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(2rem, 6vw, 4rem);
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      text-align: center;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
      /* animation removed for performance */
    }

    @keyframes textGlow {
      0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
      }
      50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.7), 0 0 60px rgba(255, 255, 255, 0.4), 0 0 80px rgba(255, 255, 255, 0.2);
      }
    }

    .audio-text {
      text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }

    .audio-hint {
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(0.92rem, 2.3vw, 1.15rem);
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: 0.3em;
      /* animation removed for performance */
    }

    .skip-experience {
      position: fixed;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(1.05rem, 2.25vw, 1.35rem);
      color: rgba(255, 255, 255, 0.35);
      text-transform: uppercase;
      letter-spacing: 0.25em;
      cursor: none;
      opacity: 0;
      z-index: 99997;
      transition: color 0.3s ease, opacity 0.8s ease;
    }

    .skip-experience.visible {
      opacity: 1;
    }

    .skip-experience:hover {
      color: rgba(255, 255, 255, 0.7);
    }

    .skip-experience.fade-out {
      opacity: 0;
      transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes subtlePulse {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 0.8; }
    }

    .glitch-chars-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 99990;
      overflow: hidden;
    }

    .screen-shake {
      animation: screenShake 0.05s infinite;
    }

    @keyframes screenShake {
      0%, 100% { transform: translate(0, 0); }
      25% { transform: translate(-5px, 3px); }
      50% { transform: translate(5px, -3px); }
      75% { transform: translate(-3px, -5px); }
    }

    .glitch-char {
      position: absolute;
      font-family: 'Courier New', monospace;
      opacity: 0;
      pointer-events: none;
      animation: glitchCharFlash 0.15s ease-out forwards;
    }

    .glitch-char.gold {
      color: var(--harvest-gold);
      text-shadow: 0 0 5px var(--harvest-gold);
    }

    .glitch-char.white {
      color: #ffffff;
      text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }

    .glitch-image {
      position: absolute;
      pointer-events: none;
      opacity: 0;
      animation: glitchImageFlash 0.2s ease-out forwards;
      filter: grayscale(100%) contrast(1.2);
    }

    @keyframes glitchCharFlash {
      0% { opacity: 0; transform: scale(0.5); }
      50% { opacity: 0.9; transform: scale(1.1); }
      100% { opacity: 0; transform: scale(1); }
    }

    @keyframes glitchImageFlash {
      0% { opacity: 0; transform: scale(0.8); }
      30% { opacity: 0.7; transform: scale(1); }
      100% { opacity: 0; transform: scale(1.05); }
    }

    .error-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--black);
      z-index: 999999;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 0;
      visibility: hidden;
      cursor: default !important;
    }
    
    .error-overlay.visible,
    .error-overlay.visible * {
      cursor: default !important;
    }


    .error-overlay.visible {
      opacity: 1;
      visibility: visible;
      background: var(--black);
    }

    .error-overlay.visible::before {
      display: none;
    }

    .error-overlay.visible .error-icon,
    .error-overlay.visible .error-content {
      opacity: 1;
    }

    .error-overlay.visible .password-prompt {
      opacity: 0;
      pointer-events: none;
    }

    .error-overlay.visible.show-password .error-content {
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.8s ease;
    }

    .error-overlay.visible.show-password .password-prompt {
      opacity: 0;
      pointer-events: auto;
      animation: passwordFadeIn 1.5s ease-out 0.5s forwards;
    }

    @keyframes passwordFadeIn {
      0% {
        opacity: 0;
        filter: blur(10px);
        transform: translate(-50%, 20px) scale(0.9);
      }
      100% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, 20px) scale(1);
      }
    }

    .error-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: opacity 0.8s ease;
    }

    .error-icon {
      width: clamp(80px, 15vw, 120px);
      height: clamp(80px, 15vw, 120px);
      color: rgba(255, 255, 255, 0.6);
      margin-bottom: 2rem;
      cursor: pointer;
      animation: iconFadeIn 0.5s ease-out;
      transition: transform 0.3s ease;
    }

    .error-icon:hover {
      transform: scale(1.1);
    }

    @keyframes iconPulseGlow {
      0%, 100% {
        filter: drop-shadow(0 0 15px rgba(245, 245, 240, 0.4)) drop-shadow(0 0 30px rgba(245, 245, 240, 0.2)) drop-shadow(0 0 45px rgba(245, 245, 240, 0.1));
        opacity: 0.6;
      }
      50% {
        filter: drop-shadow(0 0 30px rgba(245, 245, 240, 0.8)) drop-shadow(0 0 60px rgba(245, 245, 240, 0.5)) drop-shadow(0 0 90px rgba(245, 245, 240, 0.3));
        opacity: 1;
      }
    }

    .error-icon.happy .mouth {
      d: path("M 30 65 Q 50 80 70 65");
    }

    .error-icon.happy .right-eye {
      animation: winkEye 4s ease-in-out infinite;
      transform-origin: 65px 40px;
    }

    .error-icon.happy .wink-line {
      animation: winkLine 4s ease-in-out infinite;
    }

    @keyframes winkEye {
      0%, 40%, 100% { 
        transform: scaleY(1);
        opacity: 1;
      }
      45%, 55% { 
        transform: scaleY(0.1);
        opacity: 0;
      }
    }

    @keyframes winkLine {
      0%, 40%, 100% { 
        opacity: 0;
      }
      45%, 55% { 
        opacity: 1;
      }
    }

    .error-icon svg {
      width: 100%;
      height: 100%;
    }

    .error-icon .right-eye {
      animation: winkEye 4s ease-in-out infinite;
      transform-origin: 65px 40px;
    }

    .error-icon .wink-line {
      animation: winkLine 4s ease-in-out infinite;
    }

    .error-icon .smile {
      animation: laughSmile 4s ease-in-out infinite;
    }

    .error-icon svg {
      animation: laughBounce 4s ease-in-out infinite;
    }

    @keyframes winkEye {
      0%, 40%, 100% { 
        transform: scaleY(1);
        opacity: 1;
      }
      45%, 55% { 
        transform: scaleY(0.1);
        opacity: 0;
      }
    }

    @keyframes winkLine {
      0%, 40%, 100% { 
        opacity: 0;
      }
      45%, 55% { 
        opacity: 1;
      }
    }

    @keyframes laughSmile {
      0%, 40%, 100% { 
        d: path("M 30 65 Q 50 80 70 65");
      }
      45%, 55% { 
        d: path("M 28 63 Q 50 85 72 63");
      }
    }

    @keyframes laughBounce {
      0%, 40%, 100% { 
        transform: translateY(0) rotate(0deg);
      }
      47% { 
        transform: translateY(-3px) rotate(-2deg);
      }
      53% { 
        transform: translateY(-3px) rotate(2deg);
      }
    }

    @keyframes iconFadeIn {
      0% { opacity: 0; transform: scale(0.8); }
      100% { opacity: 1; transform: scale(1); }
    }

    .error-icon.stopped .right-eye,
    .error-icon.stopped .wink-line,
    .error-icon.stopped svg {
      animation: none !important;
    }
    
    .error-icon.stopped .wink-line {
      opacity: 0 !important;
    }
    
    .error-icon.stopped .right-eye {
      opacity: 1 !important;
      transform: scaleY(1) !important;
    }
    
    .error-icon.gold-transition {
      transition: color 1.5s ease, filter 1.5s ease;
      color: var(--harvest-gold) !important;
      filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.6)) drop-shadow(0 0 40px rgba(218, 165, 32, 0.3));
    }

    .error-code {
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(4rem, 12vw, 8rem);
      color: var(--bone);
      font-weight: 400;
      letter-spacing: 0.05em;
      animation: glitchText 0.3s ease-out;
      margin-bottom: 0.5rem;
    }

    .error-text {
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(1.2rem, 3vw, 1.8rem);
      color: rgba(255, 255, 255, 0.7);
      letter-spacing: 0.1em;
      margin-bottom: 1.5rem;
    }

    .error-description {
      font-family: 'Courier New', monospace;
      font-size: clamp(0.7rem, 1.5vw, 0.9rem);
      color: rgba(255, 255, 255, 0.4);
      text-align: center;
      max-width: 400px;
      line-height: 1.6;
      letter-spacing: 0.02em;
    }

    .error-refresh {
      font-family: 'Courier New', monospace;
      font-size: clamp(0.65rem, 1.2vw, 0.8rem);
      color: rgba(255, 255, 255, 0.3);
      margin-top: 2rem;
      letter-spacing: 0.05em;
    }

    @keyframes glitchText {
      0% { transform: translate(-10px, 5px) skewX(5deg); opacity: 0; }
      20% { transform: translate(10px, -5px) skewX(-5deg); opacity: 0.5; }
      40% { transform: translate(-5px, 0) skewX(2deg); opacity: 0.8; }
      60% { transform: translate(5px, 3px) skewX(-2deg); }
      80% { transform: translate(-2px, -2px) skewX(1deg); }
      100% { transform: translate(0, 0) skewX(0deg); opacity: 1; }
    }

    .password-prompt {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      opacity: 0;
      transition: opacity 0.5s ease;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, 20px);
    }

    .password-label {
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(1.2rem, 3vw, 1.8rem);
      color: var(--bone);
      letter-spacing: 0.3em;
      /* animation removed for performance */
    }

    @keyframes pulseGlow {
      0%, 100% {
        text-shadow: 0 0 10px rgba(245, 245, 240, 0.3), 0 0 20px rgba(245, 245, 240, 0.2);
        opacity: 0.7;
      }
      50% {
        text-shadow: 0 0 20px rgba(245, 245, 240, 0.6), 0 0 40px rgba(245, 245, 240, 0.4), 0 0 60px rgba(245, 245, 240, 0.2);
        opacity: 1;
      }
    }

    .password-input {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.3);
      padding: 0.8rem 1.2rem;
      font-family: 'Courier New', monospace;
      font-size: 1rem;
      color: var(--bone);
      letter-spacing: 0.1em;
      width: 250px;
      text-align: center;
      outline: none;
      /* animation removed for performance */
    }

    @keyframes inputPulseGlow {
      0%, 100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 10px rgba(245, 245, 240, 0.1), 0 0 20px rgba(245, 245, 240, 0.05);
      }
      50% {
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 20px rgba(245, 245, 240, 0.3), 0 0 40px rgba(245, 245, 240, 0.15);
      }
    }

    .password-input:focus {
      animation: none;
      border-color: var(--gold);
      box-shadow: 0 0 20px rgba(218, 165, 32, 0.3), 0 0 40px rgba(218, 165, 32, 0.15);
    }

    .password-input::placeholder {
      color: rgba(255, 255, 255, 0.3);
    }

    .password-display {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.3rem;
      cursor: text;
    }

    .password-box {
      width: 32px;
      height: 40px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      display: flex;
      justify-content: center;
      align-items: center;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .password-box.filled {
      border-color: var(--harvest-gold);
      box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
    }

    .password-symbol {
      font-size: 1.3rem;
      color: var(--bone);
      opacity: 0;
      animation: symbolFadeIn 0.3s ease-out forwards;
    }

    .password-symbol.fade-out {
      animation: symbolFadeOut 0.2s ease-out forwards;
    }

    @keyframes symbolFadeIn {
      0% { opacity: 0; }
      100% { opacity: 1; }
    }

    @keyframes symbolFadeOut {
      0% { opacity: 1; }
      100% { opacity: 0; }
    }

    .forgot-password {
      margin-top: 1.5rem;
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      cursor: pointer;
      transition: opacity 0.6s ease;
    }

    .forgot-password.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .forgot-word {
      font-family: 'Halfomania', sans-serif;
      font-size: 1.035rem;
      color: rgba(245, 245, 240, 0.6);
      letter-spacing: 0.15em;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.6s ease, transform 0.6s ease, color 0.3s ease;
    }

    .forgot-word.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .forgot-password:hover .forgot-word.visible {
      color: var(--harvest-gold);
    }

    .that-sucks {
      margin-top: 1.5rem;
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: -2.5rem;
    }

    .sucks-word {
      font-family: 'Halfomania', sans-serif;
      font-size: 1.035rem;
      color: rgba(245, 245, 240, 0.6);
      letter-spacing: 0.15em;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .sucks-word.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .name-intro-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--black);
      z-index: 10000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 1s ease, visibility 1s ease;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .name-intro-container.visible {
      opacity: 1;
      visibility: visible;
    }

    .name-intro-text {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.35em;
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(0.9rem, 2.5vw, 2rem);
      text-transform: uppercase;
      letter-spacing: 0.15em;
    }

    .name-word {
      color: #ffffff;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .name-word.visible {
      opacity: 1;
      transform: translateY(0);
      animation: wordGlow 2s ease-in-out infinite;
    }

    @keyframes wordGlow {
      0%, 100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3); }
      50% { text-shadow: 0 0 50px rgba(255, 255, 255, 0.8), 0 0 80px rgba(255, 255, 255, 0.5), 0 0 120px rgba(255, 255, 255, 0.3); }
    }

    .name-word.glitch-out {
      animation: nameGlitchOut 0.5s ease forwards;
    }

    @keyframes nameGlitchOut {
      0% { opacity: 1; transform: translateY(0); }
      20% { opacity: 1; transform: translateX(-10px) skewX(5deg); }
      40% { opacity: 0.7; transform: translateX(15px) skewX(-8deg); }
      60% { opacity: 0.4; transform: translateX(-5px) skewX(3deg); }
      80% { opacity: 0.2; transform: translateX(8px) skewX(-5deg); }
      100% { opacity: 0; transform: translateX(0) skewX(0); }
    }

    .neura-text {
      display: none;
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(0.9rem, 2.5vw, 2rem);
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: #daa520;
      text-shadow: 0 0 60px rgba(218, 165, 32, 1), 0 0 120px rgba(218, 165, 32, 0.8), 0 0 180px rgba(218, 165, 32, 0.6), 0 0 240px rgba(218, 165, 32, 0.4);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .neura-text.visible {
      display: inline;
      opacity: 1;
      transform: translateY(0);
      animation: neuraGlow 2s ease-in-out infinite;
    }

    @keyframes neuraGlow {
      0%, 100% { text-shadow: 0 0 60px rgba(218, 165, 32, 1), 0 0 120px rgba(218, 165, 32, 0.8), 0 0 180px rgba(218, 165, 32, 0.6); }
      50% { text-shadow: 0 0 100px rgba(218, 165, 32, 1), 0 0 160px rgba(218, 165, 32, 1), 0 0 240px rgba(218, 165, 32, 0.8), 0 0 320px rgba(218, 165, 32, 0.5); }
    }

    .name-intro-container.glitching .name-intro-text {
      animation: textGlitch 0.1s infinite;
    }

    @keyframes textGlitch {
      0% { transform: translate(0, 0) skewX(0deg); }
      25% { transform: translate(-3px, 2px) skewX(2deg); }
      50% { transform: translate(3px, -2px) skewX(-2deg); }
      75% { transform: translate(-2px, -1px) skewX(1deg); }
      100% { transform: translate(2px, 1px) skewX(-1deg); }
    }

    .intro-phrase {
      display: none;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      gap: 0.35em;
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(0.9rem, 2.5vw, 2rem);
      text-transform: uppercase;
      letter-spacing: 0.15em;
      opacity: 0;
      transition: opacity 0.72s ease;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      white-space: nowrap;
      text-align: center;
    }

    .intro-phrase.visible {
      display: flex;
      opacity: 1;
    }

    .intro-phrase.fade-out {
      opacity: 0;
    }

    .phrase-word {
      color: #ffffff;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .phrase-word.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .phrase-word.vision-word,
    .phrase-word.gold-word {
      color: #daa520;
      text-shadow: none;
    }

    .phrase-word.vision-word.visible,
    .phrase-word.gold-word.visible {
      opacity: 1;
    }

    .name-intro-text {
      transition: opacity 0.8s ease;
    }

    /* Level Message Overlay */
    .level-message-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10000;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }

    .level-message-overlay.visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .level-message-phrase {
      display: none;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 0.35em;
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(1.2rem, 3vw, 2.2rem);
      text-transform: uppercase;
      letter-spacing: 0.15em;
      text-align: center;
      max-width: 80vw;
      opacity: 0;
      transition: opacity 0.8s ease;
    }

    .level-message-phrase.visible {
      display: flex;
      opacity: 1;
    }

    .level-message-phrase.fade-out {
      opacity: 0;
    }

    .level-message-word {
      color: #ffffff;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .level-message-word.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .level-message-word.gold-word {
      color: #daa520;
      text-shadow: 0 0 60px rgba(218, 165, 32, 1), 0 0 120px rgba(218, 165, 32, 0.8), 0 0 180px rgba(218, 165, 32, 0.6);
    }

    /* Red words - glow syncs with opacity fade in/out */
    .level-message-word.red-word {
      color: #8b0000;
      text-shadow: none;
      transition: opacity 0.6s ease, transform 0.6s ease, text-shadow 0.6s ease, filter 0.6s ease;
      filter: drop-shadow(0 0 0px transparent);
    }

    .level-message-word.red-word.visible {
      text-shadow: 
        0 0 8px rgba(139, 0, 0, 1),
        0 0 20px rgba(139, 0, 0, 0.9),
        0 0 40px rgba(139, 0, 0, 0.7),
        0 0 60px rgba(139, 0, 0, 0.5),
        0 0 80px rgba(139, 0, 0, 0.4);
      filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.8));
    }

    /* Slow reveal version for finale words */
    .level-message-word.red-word.slow-reveal {
      transition: opacity 1.2s ease, transform 1.2s ease, text-shadow 1.2s ease, filter 1.2s ease;
    }

    /* Final phrase larger */
    .level-message-phrase.final-phrase {
      font-size: 6vw;
    }

    .level-message-phrase.final-phrase .level-message-word {
      font-size: inherit;
    }

    /* Insane level screen shake - mirrors spectrum shake intensity exactly */
    @keyframes finaleShake1 {
      0%, 100% { transform: translate(0, 0); }
      50% { transform: translate(2px, 0); }
    }
    @keyframes finaleShake2 {
      0%, 100% { transform: translate(0, 0); }
      25% { transform: translate(3px, 1px); }
      75% { transform: translate(-3px, -1px); }
    }
    @keyframes finaleShake3 {
      0%, 100% { transform: translate(0, 0); }
      25% { transform: translate(5px, 2px); }
      50% { transform: translate(-4px, 3px); }
      75% { transform: translate(3px, -2px); }
    }
    @keyframes finaleShake4 {
      0%, 100% { transform: translate(0, 0); }
      20% { transform: translate(8px, 3px); }
      40% { transform: translate(-6px, 5px); }
      60% { transform: translate(7px, -4px); }
      80% { transform: translate(-5px, 2px); }
    }
    @keyframes finaleShake5 {
      0%, 100% { transform: translate(0, 0); }
      10% { transform: translate(12px, 5px); }
      30% { transform: translate(-10px, 8px); }
      50% { transform: translate(15px, -6px); }
      70% { transform: translate(-8px, 10px); }
      90% { transform: translate(10px, -8px); }
    }

    /* Infinite shake classes that intensify per level - same timing as spectrum */
    .screen-shake-1 { animation: finaleShake1 0.15s infinite; }
    .screen-shake-2 { animation: finaleShake2 0.12s infinite; }
    .screen-shake-3 { animation: finaleShake3 0.1s infinite; }
    .screen-shake-4 { animation: finaleShake4 0.08s infinite; }
    .screen-shake-5 { animation: finaleShake5 0.05s infinite; }

    /* Chaos overlay for Insane level finale - instant flash like Welcome to my Brain */
    .chaos-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10002;
      pointer-events: none;
      overflow: hidden;
    }

    /* Slower transition for final phrase words */
    .level-message-word.slow-reveal {
      transition: opacity 1.2s ease, transform 1.2s ease;
    }
    
    /* Gradual fade out for final phrase */
    .level-message-phrase.slow-fade-out {
      animation: slowFadeOut 2.5s ease-out forwards;
    }
    
    .level-message-phrase.slow-fade-out .level-message-word {
      animation: slowFadeOut 2.5s ease-out forwards;
    }
    
    @keyframes slowFadeOut {
      0% { opacity: 1; }
      100% { opacity: 0; }
    }

    /* Level Final Screen with Gold Line */
    .level-final-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10001;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }

    .level-final-screen.visible {
      opacity: 1;
      visibility: visible;
    }

    .level-gold-line {
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, #daa520, transparent);
      box-shadow: 0 0 20px rgba(218, 165, 32, 0.6), 0 0 40px rgba(218, 165, 32, 0.4);
      transition: width 1.5s ease-out;
    }

    .level-gold-line.extended {
      width: 60vw;
    }

    .level-back-arrow {
      position: absolute;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
    }

    .level-back-arrow.visible {
      opacity: 1;
    }

    .level-back-arrow:hover {
      transform: translateX(-5px);
    }

    .level-back-arrow svg {
      filter: drop-shadow(0 0 10px rgba(218, 165, 32, 0.6));
    }

    /* Level Portfolio Page Styles (separate from spectrum previews) */
    .level-portfolio-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      overflow-y: auto;
      padding: 80px 60px 60px 60px;
      box-sizing: border-box;
    }

    .level-portfolio-page.visible {
      opacity: 1;
      visibility: visible;
    }

    .level-portfolio-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
      z-index: 10003;
    }

    .level-portfolio-back-arrow.visible {
      opacity: 1;
    }

    .level-portfolio-back-arrow:hover {
      transform: translateX(-5px);
    }

    .level-portfolio-back-arrow svg {
      filter: drop-shadow(0 0 10px rgba(218, 165, 32, 0.6));
    }

    .level-portfolio-grid {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 50px;
    }

    .level-portfolio-item {
      display: flex;
      gap: 50px;
      align-items: stretch;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .level-portfolio-item.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .level-portfolio-left {
      flex: 0 0 38%;
      display: flex;
      flex-direction: column;
    }

    .level-portfolio-title {
      color: #daa520;
      font-family: 'Inter', -apple-system, sans-serif;
      font-size: 1.4rem;
      font-weight: 500;
      margin: 0 0 15px 0;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .level-portfolio-thumb {
      aspect-ratio: 16/9;
      background: rgba(218, 165, 32, 0.1);
      border: 1px solid rgba(218, 165, 32, 0.3);
      border-radius: 4px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 220px;
      cursor: pointer;
      transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .level-portfolio-thumb:hover {
      transform: scale(1.02);
      border-color: #daa520;
    }

    .level-portfolio-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .level-portfolio-desc {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 1px solid rgba(218, 165, 32, 0.2);
      border-radius: 4px;
      padding: 35px;
      background: rgba(218, 165, 32, 0.05);
    }

    .level-portfolio-text {
      color: rgba(245, 245, 240, 0.8);
      font-family: 'Inter', -apple-system, sans-serif;
      font-size: 1.25rem;
      line-height: 1.7;
      margin: 0;
      font-weight: 300;
    }

    .level-portfolio-tech {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid rgba(218, 165, 32, 0.3);
    }

    .level-portfolio-tech-list {
      color: rgba(245, 245, 240, 0.7);
      font-family: 'Inter', -apple-system, sans-serif;
      font-size: 1rem;
      line-height: 1.6;
      margin: 0;
      font-weight: 300;
    }

    @media (max-width: 768px) {
      .level-portfolio-page {
        padding: 80px 20px 40px 20px;
      }

      .level-portfolio-item {
        flex-direction: column;
        gap: 20px;
      }

      .level-portfolio-thumb {
        flex: none;
        width: 100%;
      }

      .level-portfolio-desc {
        padding: 20px;
      }
    }

    /* Resume Typewriter Page */
    .resume-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      overflow-y: auto;
      padding: 80px 60px 60px 60px;
      box-sizing: border-box;
    }

    .resume-page.visible {
      opacity: 1;
      visibility: visible;
    }

    /* Consulting Project Page */
    .consulting-project-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      overflow-y: auto;
      padding: 80px 60px 60px 60px;
      box-sizing: border-box;
    }

    .consulting-project-page.visible {
      opacity: 1;
      visibility: visible;
    }

    .consulting-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
      z-index: 10003;
    }

    .consulting-back-arrow.visible {
      opacity: 1;
    }

    .consulting-back-arrow:hover {
      transform: scale(1.1);
    }

    .consulting-project-content {
      max-width: 900px;
      margin: 0 auto;
      padding-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 60px;
    }

    .consulting-project-item {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .consulting-project-title {
      font-family: 'Halfomania', sans-serif;
      font-size: 2rem;
      color: var(--harvest-gold);
      text-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
      letter-spacing: 0.15em;
      margin: 0;
    }

    .consulting-project-thumb {
      display: block;
      width: 100%;
      max-width: 800px;
      border: 2px solid var(--harvest-gold);
      border-radius: 4px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .consulting-project-thumb:hover {
      transform: scale(1.02);
      box-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
    }

    .consulting-project-thumb-disabled {
      cursor: default;
      pointer-events: none;
    }

    .consulting-project-thumb-disabled:hover {
      transform: none;
      box-shadow: none;
    }

    .consulting-project-thumb img {
      width: 100%;
      height: auto;
      display: block;
    }

    .consulting-project-desc {
      font-family: 'Inter', sans-serif;
      font-size: 1.1rem;
      color: var(--bone);
      line-height: 1.7;
      opacity: 0.9;
    }

    .consulting-project-tech {
      margin-top: 16px;
    }

    .consulting-project-tech-list {
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      color: var(--harvest-gold);
      letter-spacing: 0.1em;
      opacity: 0.8;
      margin: 0;
    }

    /* Leadership Project Page */
    .leadership-project-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      overflow-y: auto;
      padding: 80px 60px 60px 60px;
      box-sizing: border-box;
    }

    .leadership-project-page.visible {
      opacity: 1;
      visibility: visible;
    }

    .leadership-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
      z-index: 10003;
    }

    .leadership-back-arrow.visible {
      opacity: 1;
    }

    .leadership-back-arrow:hover {
      transform: scale(1.1);
    }

    .leadership-project-content {
      max-width: 900px;
      margin: 0 auto;
      padding-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 60px;
    }

    .leadership-project-item {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .leadership-project-title {
      font-family: 'Halfomania', sans-serif;
      font-size: 2rem;
      color: var(--harvest-gold);
      text-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
      letter-spacing: 0.15em;
      margin: 0;
    }

    .leadership-project-thumb {
      display: block;
      width: 100%;
      max-width: 800px;
      border: 2px solid var(--harvest-gold);
      border-radius: 4px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .leadership-project-thumb:hover {
      transform: scale(1.02);
      box-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
    }

    .leadership-project-thumb img {
      width: 100%;
      height: auto;
      display: block;
    }

    .leadership-project-desc {
      font-family: 'Inter', sans-serif;
      font-size: 1.1rem;
      color: var(--bone);
      line-height: 1.7;
      opacity: 0.9;
    }

    .leadership-project-tech {
      margin-top: 16px;
    }

    .leadership-project-tech-list {
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      color: var(--harvest-gold);
      letter-spacing: 0.1em;
      opacity: 0.8;
      margin: 0;
    }

    /* Genesis Project Page */
    .genesis-project-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      overflow-y: auto;
      padding: 80px 60px 60px 60px;
      box-sizing: border-box;
    }

    .genesis-project-page.visible {
      opacity: 1;
      visibility: visible;
    }

    .genesis-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
      z-index: 10003;
    }

    .genesis-back-arrow.visible {
      opacity: 1;
    }

    .genesis-back-arrow:hover {
      transform: scale(1.1);
    }

    .genesis-project-content {
      max-width: 900px;
      margin: 0 auto;
      padding-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 60px;
    }

    .genesis-project-item {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .genesis-project-title {
      font-family: 'Halfomania', sans-serif;
      font-size: 2rem;
      color: var(--harvest-gold);
      text-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
      letter-spacing: 0.15em;
      margin: 0;
    }

    .genesis-project-thumb {
      display: block;
      width: 100%;
      max-width: 800px;
      border: 2px solid var(--harvest-gold);
      border-radius: 4px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .genesis-project-thumb:hover {
      transform: scale(1.02);
      box-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
    }

    .genesis-project-thumb img {
      width: 100%;
      height: auto;
      display: block;
    }

    .genesis-project-desc {
      font-family: 'Inter', sans-serif;
      font-size: 1.1rem;
      color: var(--bone);
      line-height: 1.7;
      opacity: 0.9;
    }

    .genesis-project-tech {
      margin-top: 16px;
    }

    .genesis-project-tech-list {
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      color: var(--harvest-gold);
      letter-spacing: 0.1em;
      opacity: 0.8;
      margin: 0;
    }

    /* Proprietary Project Page */
    .proprietary-project-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      overflow-y: auto;
      padding: 80px 60px 60px 60px;
      box-sizing: border-box;
    }

    .proprietary-project-page.visible {
      opacity: 1;
      visibility: visible;
    }

    .proprietary-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
      z-index: 10003;
    }

    .proprietary-back-arrow.visible {
      opacity: 1;
    }

    .proprietary-back-arrow:hover {
      transform: scale(1.1);
    }

    .proprietary-project-content {
      max-width: 900px;
      margin: 0 auto;
      padding-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 60px;
    }

    .proprietary-project-item {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .proprietary-project-title {
      font-family: 'Halfomania', sans-serif;
      font-size: 2rem;
      color: var(--harvest-gold);
      text-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
      letter-spacing: 0.15em;
      margin: 0;
    }

    .proprietary-project-thumb {
      display: block;
      width: 100%;
      max-width: 800px;
      border: 2px solid var(--harvest-gold);
      border-radius: 4px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .proprietary-project-thumb:hover {
      transform: scale(1.02);
      box-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
    }

    .proprietary-project-thumb img {
      width: 100%;
      height: auto;
      display: block;
    }

    .proprietary-project-desc {
      font-family: 'Inter', sans-serif;
      font-size: 1.1rem;
      color: var(--bone);
      line-height: 1.7;
      opacity: 0.9;
    }

    .proprietary-project-tech {
      margin-top: 16px;
    }

    .proprietary-project-tech-list {
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      color: var(--harvest-gold);
      letter-spacing: 0.1em;
      opacity: 0.8;
      margin: 0;
    }

    /* Automation Project Page */
    .automation-project-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      overflow-y: auto;
      padding: 80px 60px 60px 60px;
      box-sizing: border-box;
    }

    .automation-project-page.visible {
      opacity: 1;
      visibility: visible;
    }

    .automation-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
      z-index: 10003;
    }

    .automation-back-arrow.visible {
      opacity: 1;
    }

    .automation-back-arrow:hover {
      transform: scale(1.1);
    }

    .automation-project-content {
      max-width: 900px;
      margin: 0 auto;
      padding-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 60px;
    }

    .automation-project-item {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .automation-project-title {
      font-family: 'Halfomania', sans-serif;
      font-size: 2rem;
      color: var(--harvest-gold);
      text-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
      letter-spacing: 0.15em;
      margin: 0;
    }

    .automation-project-thumb {
      display: block;
      width: 100%;
      max-width: 800px;
      border: 2px solid var(--harvest-gold);
      border-radius: 4px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .automation-project-thumb:hover {
      transform: scale(1.02);
      box-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
    }

    .automation-project-thumb img {
      width: 100%;
      height: auto;
      display: block;
    }

    .automation-project-thumb-locked {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 800px;
      height: 200px;
      border: 1px solid var(--harvest-gold);
      border-radius: 4px;
      background: transparent;
      gap: 16px;
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .automation-project-thumb-locked:hover {
      transform: scale(1.02);
      box-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
      border-color: var(--harvest-gold);
    }

    .automation-project-thumb-locked svg {
      opacity: 0.8;
      transition: opacity 0.3s ease;
    }

    .automation-project-thumb-locked:hover svg {
      opacity: 1;
    }

    .request-demo-text {
      font-family: 'Halfomania', sans-serif;
      font-size: 1.1rem;
      color: var(--harvest-gold);
      letter-spacing: 0.15em;
      opacity: 0.8;
      text-transform: uppercase;
      transition: opacity 0.3s ease;
    }

    .automation-project-thumb-locked:hover .request-demo-text {
      opacity: 1;
    }

    .automation-project-desc {
      font-family: 'Inter', sans-serif;
      font-size: 1.1rem;
      color: var(--bone);
      line-height: 1.7;
      opacity: 0.9;
    }

    .automation-project-tech {
      margin-top: 16px;
    }

    .automation-project-tech-list {
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      color: var(--harvest-gold);
      letter-spacing: 0.1em;
      opacity: 0.8;
      margin: 0;
    }

    /* Automation Contact Page */
    .automation-contact-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10003;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .automation-contact-page.visible {
      opacity: 1;
      visibility: visible;
    }

    .automation-contact-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      z-index: 10004;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
    }

    .automation-contact-page.visible .automation-contact-back-arrow {
      opacity: 1;
    }

    .automation-contact-back-arrow:hover {
      transform: scale(1.1);
    }

    .automation-contact-content {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
    }

    .automation-contact-phrase {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 0.35em;
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(1.2rem, 3vw, 2.2rem);
      text-transform: uppercase;
      letter-spacing: 0.15em;
    }

    .contact-phrase-word {
      color: #ffffff;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .contact-phrase-word.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .contact-phrase-word.gold-word {
      color: #daa520;
    }

    /* Under Construction Page */
    .under-construction-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .under-construction-page.visible {
      opacity: 1;
      visibility: visible;
    }

    .under-construction-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
      z-index: 10003;
    }

    .under-construction-back-arrow.visible {
      opacity: 1;
    }

    .under-construction-back-arrow:hover {
      transform: scale(1.1);
    }

    .under-construction-content {
      text-align: center;
    }

    .under-construction-title {
      font-family: 'Halfomania', sans-serif;
      font-size: 4rem;
      color: var(--harvest-gold);
      text-shadow: 0 0 30px rgba(218, 165, 32, 0.8);
      margin-bottom: 20px;
      letter-spacing: 0.2em;
    }

    .under-construction-subtitle {
      font-family: 'Inter', sans-serif;
      font-size: 1.5rem;
      color: var(--bone);
      opacity: 0.8;
      letter-spacing: 0.1em;
    }

    .resume-back-arrow {
      position: fixed;
      top: 40px;
      left: 40px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.3s ease;
      z-index: 10003;
    }

    .resume-back-arrow.visible {
      opacity: 1;
    }

    .resume-back-arrow:hover {
      transform: translateX(-5px);
    }

    .resume-back-arrow svg {
      filter: drop-shadow(0 0 10px rgba(218, 165, 32, 0.6));
    }

    .resume-container {
      max-width: 800px;
      margin: 0 auto;
      font-family: 'Inter', -apple-system, sans-serif;
      padding-top: 20px;
    }

    .resume-header {
      text-align: center;
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 1px solid rgba(218, 165, 32, 0.3);
    }

    .resume-name {
      color: #000;
      font-size: 2.2rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      margin: 0 0 8px 0;
      background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .resume-title {
      color: #daa520;
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      margin: 0 0 12px 0;
      border-bottom: 2px solid #daa520;
      display: inline-block;
      padding-bottom: 4px;
    }

    .resume-contact {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.85rem;
      margin: 0;
      letter-spacing: 0.05em;
    }

    .resume-section {
      margin-bottom: 28px;
    }

    .resume-section-title {
      color: #daa520;
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      margin: 0 0 16px 0;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(218, 165, 32, 0.4);
      text-align: center;
    }

    .resume-section-content {
      color: #fff;
      font-size: 0.9rem;
      line-height: 1.65;
    }

    .resume-section-content p {
      margin: 0 0 12px 0;
      text-align: justify;
    }

    .resume-section-content p:last-child {
      margin-bottom: 0;
    }

    .resume-section-content strong {
      color: #fff;
      font-weight: 600;
      font-style: italic;
    }

    .resume-bullets {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .resume-bullets li {
      color: #fff;
      font-size: 0.88rem;
      line-height: 1.5;
      margin-bottom: 6px;
      padding-left: 16px;
      position: relative;
    }

    .resume-bullets li::before {
      content: "•";
      color: rgba(255, 255, 255, 0.6);
      position: absolute;
      left: 0;
    }

    .resume-tech-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .resume-tech-row {
      display: flex;
      gap: 20px;
      align-items: flex-start;
    }

    .resume-tech-category {
      color: #daa520;
      font-weight: 600;
      font-size: 0.85rem;
      min-width: 220px;
      flex-shrink: 0;
    }

    .resume-tech-list {
      color: rgba(255, 255, 255, 0.85);
      font-size: 0.85rem;
      font-style: italic;
      line-height: 1.5;
    }

    .resume-jobs {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .resume-job {
      padding-bottom: 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .resume-job:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .resume-job-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 8px;
      gap: 20px;
    }

    .resume-job-title {
      color: #daa520;
      font-weight: 600;
      font-size: 0.9rem;
      letter-spacing: 0.02em;
    }

    .resume-job-date {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.85rem;
      white-space: nowrap;
    }

    .resume-job-bullets {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .resume-job-bullets li {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.85rem;
      line-height: 1.55;
      margin-bottom: 4px;
      padding-left: 16px;
      position: relative;
    }

    .resume-job-bullets li::before {
      content: "•";
      color: rgba(255, 255, 255, 0.5);
      position: absolute;
      left: 0;
    }

    .resume-job-bullets li strong {
      color: #fff;
      font-weight: 600;
      font-style: italic;
    }

    .resume-degree {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.85rem;
      font-style: italic;
      margin: 0;
    }

    @media (max-width: 768px) {
      .resume-page {
        padding: 80px 20px 40px 20px;
      }
      .resume-container {
        font-size: 14px;
      }
      .resume-tech-row {
        flex-direction: column;
        gap: 4px;
      }
      .resume-tech-category {
        min-width: unset;
      }
      .resume-job-header {
        flex-direction: column;
        gap: 4px;
      }
    }

    /* Choose Your Path Screen */
    .choose-path-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      display: none;
      flex-direction: column;
      align-items: center;
      z-index: 900;
      opacity: 0;
      transition: opacity 0.8s ease;
    }

    .choose-path-screen.active {
      display: flex;
      opacity: 1;
    }

    /* Hub orbit shake effect - applies filter-based visual shake without moving clickable elements */
    .hub-orbit.shake-level-1 { animation: hubShakeFilter1 0.15s infinite; }
    .hub-orbit.shake-level-2 { animation: hubShakeFilter2 0.12s infinite; }
    .hub-orbit.shake-level-3 { animation: hubShakeFilter3 0.1s infinite; }
    .hub-orbit.shake-level-4 { animation: hubShakeFilter4 0.08s infinite; }
    .hub-orbit.shake-level-5 { animation: hubShakeFilter5 0.05s infinite; }

    @keyframes hubShakeFilter1 {
      0%, 100% { filter: drop-shadow(0 0 0 transparent); }
      50% { filter: drop-shadow(2px 1px 0 rgba(218, 165, 32, 0.3)) drop-shadow(-2px -1px 0 rgba(255, 255, 255, 0.2)); }
    }
    @keyframes hubShakeFilter2 {
      0%, 100% { filter: drop-shadow(0 0 0 transparent); }
      25% { filter: drop-shadow(3px 2px 0 rgba(218, 165, 32, 0.4)) drop-shadow(-3px -2px 0 rgba(255, 255, 255, 0.3)); }
      75% { filter: drop-shadow(-4px 2px 0 rgba(218, 165, 32, 0.4)) drop-shadow(4px -2px 0 rgba(255, 255, 255, 0.3)); }
    }
    @keyframes hubShakeFilter3 {
      0%, 100% { filter: drop-shadow(0 0 0 transparent); }
      25% { filter: drop-shadow(5px 3px 0 rgba(218, 165, 32, 0.5)) drop-shadow(-5px -3px 0 rgba(255, 255, 255, 0.4)); }
      50% { filter: drop-shadow(-6px 4px 0 rgba(255, 255, 255, 0.4)) drop-shadow(6px -4px 0 rgba(218, 165, 32, 0.5)); }
      75% { filter: drop-shadow(4px -5px 0 rgba(218, 165, 32, 0.5)) drop-shadow(-4px 5px 0 rgba(255, 255, 255, 0.4)); }
    }
    @keyframes hubShakeFilter4 {
      0%, 100% { filter: drop-shadow(0 0 0 transparent); }
      20% { filter: drop-shadow(8px 4px 0 rgba(218, 165, 32, 0.6)) drop-shadow(-8px -4px 0 rgba(255, 255, 255, 0.5)); }
      40% { filter: drop-shadow(-7px 6px 0 rgba(255, 255, 255, 0.5)) drop-shadow(7px -6px 0 rgba(218, 165, 32, 0.6)); }
      60% { filter: drop-shadow(9px -5px 0 rgba(218, 165, 32, 0.6)) drop-shadow(-9px 5px 0 rgba(255, 255, 255, 0.5)); }
      80% { filter: drop-shadow(-6px 7px 0 rgba(255, 255, 255, 0.5)) drop-shadow(6px -7px 0 rgba(218, 165, 32, 0.6)); }
    }
    @keyframes hubShakeFilter5 {
      0%, 100% { filter: drop-shadow(0 0 0 transparent); }
      10% { filter: drop-shadow(12px 6px 0 rgba(218, 165, 32, 0.7)) drop-shadow(-12px -6px 0 rgba(255, 255, 255, 0.6)); }
      30% { filter: drop-shadow(-10px 9px 0 rgba(255, 255, 255, 0.6)) drop-shadow(10px -9px 0 rgba(218, 165, 32, 0.7)); }
      50% { filter: drop-shadow(15px -8px 0 rgba(218, 165, 32, 0.7)) drop-shadow(-15px 8px 0 rgba(255, 255, 255, 0.6)); }
      70% { filter: drop-shadow(-11px 10px 0 rgba(255, 255, 255, 0.6)) drop-shadow(11px -10px 0 rgba(218, 165, 32, 0.7)); }
      90% { filter: drop-shadow(13px -9px 0 rgba(218, 165, 32, 0.7)) drop-shadow(-13px 9px 0 rgba(255, 255, 255, 0.6)); }
    }

    .choose-path-text {
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(1.5rem, 4vw, 2.5rem);
      color: #f5f5f0;
      text-align: center;
      margin-top: 12vh;
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.3s ease, transform 0.6s ease;
    }

    .choose-path-text.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .choose-path-text.shake-1 { animation: textShake1 0.15s infinite; }
    .choose-path-text.shake-2 { animation: textShake2 0.12s infinite; }
    .choose-path-text.shake-3 { animation: textShake3 0.1s infinite; }
    .choose-path-text.shake-4 { animation: textShake4 0.08s infinite; }
    .choose-path-text.shake-5 { animation: textShake5 0.05s infinite; }
    
    @keyframes textShake1 {
      0%, 100% { transform: translateY(0) translateX(0); }
      50% { transform: translateY(0) translateX(2px); }
    }
    @keyframes textShake2 {
      0%, 100% { transform: translateY(0) translate(0, 0); }
      25% { transform: translateY(0) translate(3px, 1px); }
      75% { transform: translateY(0) translate(-3px, -1px); }
    }
    @keyframes textShake3 {
      0%, 100% { transform: translateY(0) translate(0, 0); }
      25% { transform: translateY(0) translate(5px, 2px); }
      50% { transform: translateY(0) translate(-4px, 3px); }
      75% { transform: translateY(0) translate(3px, -2px); }
    }
    @keyframes textShake4 {
      0%, 100% { transform: translateY(0) translate(0, 0); }
      20% { transform: translateY(0) translate(8px, 3px); }
      40% { transform: translateY(0) translate(-6px, 5px); }
      60% { transform: translateY(0) translate(7px, -4px); }
      80% { transform: translateY(0) translate(-5px, 2px); }
    }
    @keyframes textShake5 {
      0%, 100% { transform: translateY(0) translate(0, 0); }
      10% { transform: translateY(0) translate(12px, 5px); }
      30% { transform: translateY(0) translate(-10px, 8px); }
      50% { transform: translateY(0) translate(15px, -6px); }
      70% { transform: translateY(0) translate(-8px, 10px); }
      90% { transform: translateY(0) translate(10px, -8px); }
    }

    /* Hub Orbit Navigation */
    .hub-orbit {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: min(105vh, 105vw);
      height: min(105vh, 105vw);
      opacity: 0;
      pointer-events: none;
    }

    .hub-orbit.active {
      opacity: 1;
      pointer-events: auto;
    }

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

    /* Four arcs that draw from top, right, bottom, and left simultaneously */
    .hub-orbit .center-arc-top,
    .hub-orbit .center-arc-right,
    .hub-orbit .center-arc-bottom,
    .hub-orbit .center-arc-left {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 1.5;
      stroke-dasharray: 200;
      stroke-dashoffset: 200;
      filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.6)) drop-shadow(0 0 20px rgba(218, 165, 32, 0.3));
    }

    .hub-orbit.active .center-arc-top,
    .hub-orbit.active .center-arc-right,
    .hub-orbit.active .center-arc-bottom,
    .hub-orbit.active .center-arc-left {
      animation: drawCenterArc 2.7s ease-out forwards;
    }

    @keyframes drawCenterArc {
      0% {
        stroke-dashoffset: 200;
      }
      100% {
        stroke-dashoffset: 0;
      }
    }

    /* Hub center phrase - positioned in center of hub orbit */
    .hub-center-phrase {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      gap: 0.35em;
      white-space: nowrap;
      pointer-events: none;
      z-index: 10;
    }

    /* Words in hub center phrase use the same styling as intro phrases */
    .hub-center-phrase .phrase-word {
      font-family: 'Halfomania', sans-serif;
      font-size: 26px;
      color: #ffffff;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .hub-center-phrase .phrase-word.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .hub-center-phrase .phrase-word.gold-word {
      color: #daa520;
      text-shadow: 0 0 60px rgba(218, 165, 32, 1), 0 0 120px rgba(218, 165, 32, 0.8), 0 0 180px rgba(218, 165, 32, 0.6);
    }

    /* Fade out state for hub center phrase */
    .hub-center-phrase.fade-out {
      transition: opacity 0.8s ease;
      opacity: 0;
    }

    .hub-center-phrase.fade-out .phrase-word {
      transform: translateY(-10px);
    }

    /* "Click a category" hint text below hub center phrase */
    .hub-category-hint {
      position: absolute;
      top: calc(50% + 22px);
      left: 50%;
      transform: translateX(-50%) translateY(0);
      font-family: 'Halfomania', sans-serif;
      font-size: 16px;
      color: #ffffff;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      opacity: 0;
      transition: opacity 0.8s ease, transform 0.6s ease;
      pointer-events: none;
      z-index: 10;
    }

    .hub-category-hint.visible {
      opacity: 1;
    }

    .hub-category-hint.fade-out {
      opacity: 0;
      transform: translateX(-50%) translateY(-10px);
    }

    .hub-category-hint.permanently-hidden {
      display: none;
    }

    /* Activation words (shown when hover-activation completes) */
    .activation-words {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      gap: 0.4em;
      white-space: nowrap;
      pointer-events: none;
      z-index: 16;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .activation-words.visible {
      opacity: 1;
      visibility: visible;
    }

    .activation-words.instant-hide {
      transition: none;
      opacity: 0;
      visibility: hidden;
    }

    .activation-word {
      font-family: 'Halfomania', sans-serif;
      font-size: 32px;
      color: #ffffff;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    .activation-word.gold-word {
      color: #daa520;
      text-shadow: 0 0 60px rgba(218, 165, 32, 1), 0 0 120px rgba(218, 165, 32, 0.8), 0 0 180px rgba(218, 165, 32, 0.6);
    }

    /* Slot-specific center text (appears when circle is clicked) */
    .slot-center-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      z-index: 15;
      text-align: center;
    }

    .slot-center-text.visible {
      opacity: 1;
      visibility: visible;
    }

    .slot-center-text .slot-clickable {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
    }

    .slot-center-text .slot-title {
      font-family: 'Halfomania', sans-serif;
      font-size: 26px;
      color: #ffffff;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      gap: 0.35em;
      white-space: nowrap;
    }

    .slot-center-text .slot-title .gold-word {
      color: #daa520;
      text-shadow: 0 0 60px rgba(218, 165, 32, 1), 0 0 120px rgba(218, 165, 32, 0.8);
    }

    .slot-center-text .slot-cta {
      font-family: 'Halfomania', sans-serif;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.7);
      text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      transition: color 0.3s ease, text-shadow 0.3s ease;
      margin-top: 5px;
    }

    .slot-center-text .slot-clickable:hover .slot-cta {
      color: #daa520;
      text-shadow: 0 0 30px rgba(218, 165, 32, 0.8);
    }

    /* Slot 4 password interface */
    .slot-password-container {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 25px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      z-index: 15;
    }
    
    .slot-password-container.visible {
      opacity: 1;
      visibility: visible;
    }
    
    .slot-password-container .password-label {
      font-family: 'Halfomania', sans-serif;
      font-size: 28px;
      color: #daa520;
      text-shadow: 0 0 30px rgba(218, 165, 32, 0.8), 0 0 60px rgba(218, 165, 32, 0.5);
      text-transform: uppercase;
      letter-spacing: 0.15em;
    }
    
    /* Quantum password display with 6 symbol boxes */
    .quantum-password-display {
      display: flex;
      gap: 10px;
    }
    
    .quantum-password-box {
      width: 40px;
      height: 50px;
      border: 2px solid rgba(218, 165, 32, 0.5);
      border-radius: 4px;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
    
    .quantum-password-box.filled {
      border-color: #daa520;
      box-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
    }
    
    .quantum-password-symbol {
      font-size: 1.5rem;
      color: #daa520;
      opacity: 0;
      animation: quantumSymbolFadeIn 0.3s ease-out forwards;
    }
    
    @keyframes quantumSymbolFadeIn {
      from { opacity: 0; transform: scale(0.5); }
      to { opacity: 1; transform: scale(1); }
    }
    
    .slot-password-container.success .quantum-password-display {
      animation: quantumSuccessGlow 1s ease forwards;
    }
    
    .slot-password-container.success .quantum-password-box {
      border-color: #daa520;
      box-shadow: 0 0 30px rgba(218, 165, 32, 0.8), 0 0 60px rgba(218, 165, 32, 0.5);
    }
    
    @keyframes quantumSuccessGlow {
      0% { filter: brightness(1); }
      50% { filter: brightness(1.5); }
      100% { filter: brightness(1); }
    }
    
    /* Quantum success screen */
    .quantum-success-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000000;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 1.5s ease, visibility 1.5s ease;
      z-index: 9999;
    }
    
    .quantum-success-screen.visible {
      opacity: 1;
      visibility: visible;
    }
    
    .quantum-success-phrase {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 0.5em;
      max-width: 80%;
      text-align: center;
    }
    
    .quantum-word {
      font-family: 'Halfomania', sans-serif;
      font-size: 32px;
      color: #ffffff;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    
    .quantum-word.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .quantum-word.gold-word {
      color: #daa520;
      text-shadow: 0 0 60px rgba(218, 165, 32, 1), 0 0 120px rgba(218, 165, 32, 0.8);
    }
    
    /* Quantum tagline that fades in under password boxes */
    .quantum-tagline {
      font-family: 'Halfomania', sans-serif;
      font-size: 17px;
      color: #daa520;
      text-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
      letter-spacing: 0.05em;
      text-align: center;
      white-space: nowrap;
      margin-top: 10px;
      text-transform: uppercase;
      opacity: 0;
    }

    .slot-password-container.visible .quantum-tagline {
      animation: quantumTaglineFade 2s ease-out 1s forwards;
    }

    @keyframes quantumTaglineFade {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* Slot-specific center video (circular masked video portal) */
    .slot-center-video {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 381px;
      height: 381px;
      border-radius: 50%;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      z-index: 12;
      cursor: pointer;
      border: 2px solid transparent;
      box-shadow: none;
      transition: opacity 3s ease, border-color 3s ease, box-shadow 3s ease;
    }

    /* Stage 1: Make visible but keep opacity at 0 */
    .slot-center-video.is-ready {
      visibility: visible;
      pointer-events: auto;
      opacity: 0;
    }

    /* Stage 2: Animate opacity to 1 */
    .slot-center-video.is-fading-in {
      opacity: 1;
      border-color: var(--harvest-gold);
      box-shadow: 0 0 15px rgba(218, 165, 32, 0.6), 0 0 30px rgba(218, 165, 32, 0.3), inset 0 0 10px rgba(218, 165, 32, 0.2);
    }

    /* Legacy class for compatibility */
    .slot-center-video.visible {
      visibility: visible;
      pointer-events: auto;
      opacity: 1;
      border-color: var(--harvest-gold);
      box-shadow: 0 0 15px rgba(218, 165, 32, 0.6), 0 0 30px rgba(218, 165, 32, 0.3), inset 0 0 10px rgba(218, 165, 32, 0.2);
    }

    .slot-center-video video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .slot-center-video:hover {
      transform: translate(-50%, -50%) scale(1.02);
      transition: opacity 3s ease, transform 0.3s ease, border-color 3s ease, box-shadow 3s ease;
      box-shadow: 0 0 20px rgba(218, 165, 32, 0.8), 0 0 40px rgba(218, 165, 32, 0.5), inset 0 0 15px rgba(218, 165, 32, 0.3);
    }

    /* "CLICK TO VIEW" text below video portal */
    .click-to-view-text {
      position: absolute;
      top: calc(50% + 210px);
      left: 50%;
      transform: translateX(-50%);
      font-family: 'Halfomania', sans-serif;
      font-size: 14px;
      color: #ffffff;
      letter-spacing: 0.15em;
      text-align: center;
      pointer-events: none;
      z-index: 15;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      white-space: nowrap;
    }

    .click-to-view-text.visible {
      opacity: 1;
      visibility: visible;
    }

    .hub-orbit .outer-arc {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 1;
      stroke-dasharray: 19;
      stroke-dashoffset: 19;
      pointer-events: none;
      filter: drop-shadow(0 0 6px rgba(218, 165, 32, 0.5));
      transition: filter 0.3s ease, stroke-width 0.3s ease;
    }
    
    .hub-orbit .orbit-node,
    .hub-orbit .hover-design,
    .hub-orbit .connect-line,
    .hub-orbit .activation-line,
    .hub-orbit .edge-tick,
    .hub-orbit .activated-core {
      pointer-events: none;
    }
    
    .orbit-hitbox {
      position: absolute;
      width: 8%;
      height: 8%;
      border-radius: 50%;
      cursor: none;
      z-index: 10;
      background: transparent;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .orbit-hitbox.ready {
      pointer-events: auto;
      opacity: 1;
    }
    
    .orbit-hitbox[data-slot="0"] { left: 50%; top: 10%; transform: translate(-50%, -50%); }
    .orbit-hitbox[data-slot="1"] { left: 78.25%; top: 21.75%; transform: translate(-50%, -50%); }
    .orbit-hitbox[data-slot="2"] { left: 90%; top: 50%; transform: translate(-50%, -50%); }
    .orbit-hitbox[data-slot="3"] { left: 78.25%; top: 78.25%; transform: translate(-50%, -50%); }
    .orbit-hitbox[data-slot="4"] { left: 50%; top: 90%; transform: translate(-50%, -50%); }
    .orbit-hitbox[data-slot="5"] { left: 21.75%; top: 78.25%; transform: translate(-50%, -50%); }
    .orbit-hitbox[data-slot="6"] { left: 10%; top: 50%; transform: translate(-50%, -50%); }
    .orbit-hitbox[data-slot="7"] { left: 21.75%; top: 21.75%; transform: translate(-50%, -50%); }

    .hub-orbit.active .outer-arc {
      animation: drawOuterArc 2.7s ease-out forwards;
    }

    @keyframes drawOuterArc {
      0% {
        stroke-dashoffset: 19;
      }
      100% {
        stroke-dashoffset: 0;
      }
    }

    .hub-orbit .outer-circle-group:hover .outer-arc {
      filter: drop-shadow(0 0 12px rgba(218, 165, 32, 0.9)) drop-shadow(0 0 25px rgba(218, 165, 32, 0.6));
      stroke-width: 2;
    }

    .hub-orbit .orbit-icon {
      opacity: 0;
      pointer-events: none;
      transform: scale(0.9);
      transform-box: fill-box;
      transform-origin: center;
    }

    .hub-orbit .orbit-icon path,
    .hub-orbit .orbit-icon line,
    .hub-orbit .orbit-icon rect,
    .hub-orbit .orbit-icon ellipse {
      fill: none;
      stroke: #ffffff;
      stroke-width: 0.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .hub-orbit .orbit-icon circle {
      fill: #ffffff;
      stroke: none;
    }

    .hub-orbit .orbit-icon[data-icon="leadership"] circle:first-of-type {
      fill: none;
      stroke: #ffffff;
      stroke-width: 0.6;
    }

    .hub-orbit .orbit-icon[data-icon="resume"] path,
    .hub-orbit .orbit-icon[data-icon="elementary"] path,
    .hub-orbit .orbit-icon[data-icon="consulting"] path,
    .hub-orbit .orbit-icon[data-icon="leadership"] path,
    .hub-orbit .orbit-icon[data-icon="mystery"] path,
    .hub-orbit .orbit-icon[data-icon="mystery"] rect,
    .hub-orbit .orbit-icon[data-icon="proprietary"] path,
    .hub-orbit .orbit-icon[data-icon="automation"] path,
    .hub-orbit .orbit-icon[data-icon="automation"] rect,
    .hub-orbit .orbit-icon[data-icon="insane"] path,
    .hub-orbit .orbit-icon[data-icon="insane"] circle {
      stroke: #ffffff;
      stroke-width: 1.2;
    }

    .hub-orbit.active .orbit-icon {
      animation: fadeInIcon 3.7s ease-out forwards;
    }

    .hub-orbit .orbit-node.activated .orbit-icon {
      animation: iconGlitchOut 0.3s ease-out forwards;
    }

    /* Glitch-in effect ONLY when icon was just reset (not initial load) */
    .hub-orbit .orbit-node.recently-reset .orbit-icon {
      animation: iconGlitchIn 0.2s ease-out forwards;
    }

    /* Prevent fadeInIcon from re-triggering after glitch-in completes */
    .hub-orbit .orbit-node.icon-ready .orbit-icon {
      animation: none;
      opacity: 1;
    }

    @keyframes iconGlitchIn {
      0% { opacity: 0; transform: scale(0.9); }
      20% { opacity: 0.3; transform: scale(0.9) translateX(-2px); }
      40% { opacity: 0.7; transform: scale(0.9) translateX(3px); }
      60% { opacity: 0.5; transform: scale(0.9) translateX(-1px); }
      80% { opacity: 0.9; transform: scale(0.9) translateX(1px); }
      100% { opacity: 1; transform: scale(0.9); }
    }

    @keyframes iconGlitchOut {
      0% { opacity: 1; transform: scale(0.9); }
      20% { opacity: 0.8; transform: scale(0.9) translateX(2px); }
      40% { opacity: 0.3; transform: scale(0.9) translateX(-3px); }
      60% { opacity: 0.6; transform: scale(0.9) translateX(1px); }
      80% { opacity: 0.2; transform: scale(0.9) translateX(-1px); }
      100% { opacity: 0; transform: scale(0.9); }
    }

    @keyframes fadeInIcon {
      0% {
        opacity: 0;
      }
      100% {
        opacity: 1;
      }
    }

    /* Rotating label text around hollow circles */
    .rotating-label {
      opacity: 0;
    }

    .rotating-label[data-slot="0"] { transform-origin: 200px 40px; }
    .rotating-label[data-slot="1"] { transform-origin: 313px 87px; }
    .rotating-label[data-slot="2"] { transform-origin: 360px 200px; }
    .rotating-label[data-slot="3"] { transform-origin: 313px 313px; }
    .rotating-label[data-slot="4"] { transform-origin: 200px 360px; }
    .rotating-label[data-slot="5"] { transform-origin: 87px 313px; }
    .rotating-label[data-slot="6"] { transform-origin: 40px 200px; }
    .rotating-label[data-slot="7"] { transform-origin: 87px 87px; }

    .hub-orbit.active .rotating-label[data-slot="0"] {
      animation: fadeinLabel 1s ease-out 4.5s forwards, rotateLabel0 12s linear 4.5s infinite;
    }
    .hub-orbit.active .rotating-label[data-slot="1"] {
      animation: fadeinLabel 1s ease-out 4.5s forwards, rotateLabel1 12s linear 4.5s infinite;
    }
    .hub-orbit.active .rotating-label[data-slot="2"] {
      animation: fadeinLabel 1s ease-out 4.5s forwards, rotateLabel2 12s linear 4.5s infinite;
    }
    .hub-orbit.active .rotating-label[data-slot="3"] {
      animation: fadeinLabel 1s ease-out 4.5s forwards, rotateLabel3 12s linear 4.5s infinite;
    }
    .hub-orbit.active .rotating-label[data-slot="4"] {
      animation: fadeinLabel 1s ease-out 4.5s forwards, rotateLabel4 12s linear 4.5s infinite;
    }
    .hub-orbit.active .rotating-label[data-slot="5"] {
      animation: fadeinLabel 1s ease-out 4.5s forwards, rotateLabel5 12s linear 4.5s infinite;
    }
    .hub-orbit.active .rotating-label[data-slot="6"] {
      animation: fadeinLabel 1s ease-out 4.5s forwards, rotateLabel6 12s linear 4.5s infinite;
    }
    .hub-orbit.active .rotating-label[data-slot="7"] {
      animation: fadeinLabel 1s ease-out 4.5s forwards, rotateLabel7 12s linear 4.5s infinite;
    }

    .orbit-label-text {
      font-family: 'Halfomania', sans-serif;
      font-size: 8.5px;
      fill: #ffffff;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    @keyframes fadeinLabel {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .rotating-label .orbit-label-text {
      transition: opacity 1s ease-in-out;
    }

    /* Fade out label when circle is activated */
    .rotating-label.hidden {
      opacity: 0 !important;
      transition: opacity 0.5s ease-out;
    }

    @keyframes rotateLabel0 {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    @keyframes rotateLabel1 {
      from { transform: rotate(137deg); }
      to { transform: rotate(497deg); }
    }
    @keyframes rotateLabel2 {
      from { transform: rotate(58deg); }
      to { transform: rotate(418deg); }
    }
    @keyframes rotateLabel3 {
      from { transform: rotate(215deg); }
      to { transform: rotate(575deg); }
    }
    @keyframes rotateLabel4 {
      from { transform: rotate(92deg); }
      to { transform: rotate(452deg); }
    }
    @keyframes rotateLabel5 {
      from { transform: rotate(283deg); }
      to { transform: rotate(643deg); }
    }
    @keyframes rotateLabel6 {
      from { transform: rotate(176deg); }
      to { transform: rotate(536deg); }
    }
    @keyframes rotateLabel7 {
      from { transform: rotate(324deg); }
      to { transform: rotate(684deg); }
    }

    .hub-orbit .connect-line {
      stroke: var(--harvest-gold);
      stroke-width: 1;
      stroke-dasharray: 200;
      stroke-dashoffset: 200;
      opacity: 0;
      filter: drop-shadow(0 0 4px rgba(218, 165, 32, 0.5));
      transition: opacity 0.3s ease;
    }

    .hub-orbit .orbit-node.connected .connect-line {
      opacity: 1;
      animation: drawConnectLine 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards, lineGlow 0.75s ease-out forwards;
    }

    .hub-orbit .orbit-node.retracting .connect-line {
      opacity: 1;
      animation: retractConnectLine 0.6s cubic-bezier(0.4, 0, 1, 1) forwards;
    }

    @keyframes drawConnectLine {
      0% {
        stroke-dashoffset: 200;
        stroke-width: 0.5;
      }
      50% {
        stroke-width: 2;
      }
      100% {
        stroke-dashoffset: 0;
        stroke-width: 1;
      }
    }

    @keyframes lineGlow {
      0% {
        filter: drop-shadow(0 0 2px rgba(218, 165, 32, 0.3));
      }
      50% {
        filter: drop-shadow(0 0 15px rgba(218, 165, 32, 1)) drop-shadow(0 0 30px rgba(218, 165, 32, 0.8));
      }
      100% {
        filter: drop-shadow(0 0 6px rgba(218, 165, 32, 0.6));
      }
    }

    @keyframes retractConnectLine {
      0% {
        stroke-dashoffset: 0;
        filter: drop-shadow(0 0 6px rgba(218, 165, 32, 0.6));
      }
      100% {
        stroke-dashoffset: 200;
        opacity: 0;
        filter: drop-shadow(0 0 0px rgba(218, 165, 32, 0));
      }
    }

    /* Hover design styles - Segments spawn one by one */
    .hub-orbit .hover-design {
      pointer-events: none;
    }

    /* Hover segment group */
    .hub-orbit .hover-segment {
      opacity: 0;
      animation: segmentAppear 0.3s ease-out forwards;
    }

    @keyframes segmentAppear {
      0% {
        opacity: 0;
        transform: scale(0.5);
      }
      50% {
        filter: drop-shadow(0 0 8px rgba(218, 165, 32, 1));
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    .hub-orbit .hover-segment.segment-disappear {
      animation: segmentDisappear 0.15s ease-in forwards;
    }

    @keyframes segmentDisappear {
      0% {
        opacity: 1;
        transform: scale(1);
      }
      100% {
        opacity: 0;
        transform: scale(0.3);
      }
    }

    /* Circular Ring Designs */
    .hub-orbit .ring-dot {
      fill: var(--harvest-gold);
      filter: drop-shadow(0 0 2px rgba(218, 165, 32, 0.8));
    }
    .hub-orbit .ring-arc {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 1.5;
      stroke-linecap: round;
    }
    .hub-orbit .ring-dot-inner {
      fill: var(--harvest-gold);
    }
    .hub-orbit .ring-dot-outer {
      fill: var(--harvest-gold);
      opacity: 0.6;
    }
    .hub-orbit .ring-tooth {
      fill: var(--harvest-gold);
    }
    .hub-orbit .ring-pearl-lg {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 1;
    }
    .hub-orbit .ring-pearl-sm {
      fill: var(--harvest-gold);
    }
    .hub-orbit .ring-braid-out {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 1.5;
      stroke-linecap: round;
    }
    .hub-orbit .ring-braid-in {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 1;
      opacity: 0.6;
      stroke-linecap: round;
    }
    .hub-orbit .ring-link {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 1;
    }
    .hub-orbit .ring-dash {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 2;
      stroke-linecap: round;
    }
    .hub-orbit .ring-morse-dot {
      fill: var(--harvest-gold);
    }

    .hub-orbit .activated-core {
      fill: #ffffff;
      opacity: 0;
      filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 12px rgba(218, 165, 32, 0.7));
    }

    .hub-orbit .activation-line {
      stroke: var(--harvest-gold);
      stroke-width: 1;
      stroke-dasharray: 60;
      stroke-dashoffset: 60;
      opacity: 0;
      stroke-linecap: round;
      filter: drop-shadow(0 0 4px rgba(218, 165, 32, 0.8));
    }

    /* Activated state - core visible */
    .hub-orbit .orbit-node.activated .activated-core {
      opacity: 1;
      filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 12px rgba(218, 165, 32, 0.7));
    }
    .hub-orbit .orbit-node.activated .activation-line {
      opacity: 1;
      stroke-dashoffset: 0;
      animation: drawActivationLine 0.6s ease-out forwards;
    }
    .hub-orbit .orbit-node.activated .hover-segment {
      opacity: 1;
      animation: none;
    }

    /* Orbit connection arcs between adjacent activated circles */
    .hub-orbit .orbit-arc {
      fill: none;
      stroke: var(--harvest-gold);
      stroke-width: 1.5;
      stroke-dasharray: 125;
      stroke-dashoffset: 125;
      opacity: 0;
      stroke-linecap: round;
      filter: drop-shadow(0 0 4px rgba(218, 165, 32, 0.6));
      transition: opacity 0.3s ease;
    }

    .hub-orbit .orbit-arc.visible {
      opacity: 1;
      animation: drawOrbitArc 0.8s ease-out forwards;
    }

    @keyframes drawOrbitArc {
      0% {
        stroke-dashoffset: 125;
        stroke-width: 0.5;
      }
      50% {
        stroke-width: 2.5;
        filter: drop-shadow(0 0 12px rgba(218, 165, 32, 1));
      }
      100% {
        stroke-dashoffset: 0;
        stroke-width: 1.5;
        filter: drop-shadow(0 0 6px rgba(218, 165, 32, 0.8));
      }
    }

    @keyframes activateCore {
      0% {
        opacity: 0;
        r: 0;
      }
      50% {
        opacity: 1;
        r: 6;
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) drop-shadow(0 0 25px rgba(218, 165, 32, 1));
      }
      100% {
        opacity: 1;
        r: 4;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 12px rgba(218, 165, 32, 0.7));
      }
    }

    @keyframes drawActivationLine {
      0% {
        stroke-dashoffset: 60;
        stroke-width: 0.5;
      }
      50% {
        stroke-width: 2;
        filter: drop-shadow(0 0 10px rgba(218, 165, 32, 1));
      }
      100% {
        stroke-dashoffset: 0;
        stroke-width: 1;
        filter: drop-shadow(0 0 5px rgba(218, 165, 32, 0.8));
      }
    }

    .choose-path-screen.glitch-flash {
      animation: screenFlash 0.1s;
    }

    @keyframes screenFlash {
      0%, 100% { background: #000; }
      50% { background: #daa520; }
    }

    .final-warning-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: none;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      z-index: 100;
    }

    .final-warning-container.active {
      display: flex;
    }

    .warning-word {
      font-family: 'Halfomania', sans-serif;
      font-size: 8rem;
      color: #f5f5f0;
      opacity: 0;
      text-transform: uppercase;
      letter-spacing: 0.3em;
    }

    .warning-word.visible {
      opacity: 1;
      transition: opacity 0.4s ease-in;
    }

    .warning-word.fade-out {
      opacity: 0;
      transition: opacity 0.3s ease-out;
    }

    .maze-container {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10001;
    }

    .maze-container.visible {
      display: block;
    }

    .maze-canvas {
      width: 100%;
      height: 100%;
    }

    @keyframes mazeGlow {
      0%, 100% { filter: drop-shadow(0 0 2px rgba(218, 165, 32, 0.8)); }
      50% { filter: drop-shadow(0 0 6px rgba(218, 165, 32, 1)); }
    }

    /* Hive intro container */
    .hive-intro-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--black);
      z-index: 1000000;
      opacity: 0;
      visibility: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }

    .hive-intro-container.visible {
      opacity: 1;
      visibility: visible;
    }

    .hive-intro-text {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .hive-word {
      position: absolute;
      font-family: 'Halfomania', sans-serif;
      font-size: clamp(1.5rem, 4vw, 3.5rem);
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: #ffffff;
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .hive-word.visible {
      opacity: 1;
    }

    .hive-word.gold-word {
      color: #daa520;
      text-shadow: 0 0 60px rgba(218, 165, 32, 1), 0 0 120px rgba(218, 165, 32, 0.8), 0 0 180px rgba(218, 165, 32, 0.6);
    }

    .hive-word.fade-out {
      opacity: 0 !important;
      transition: opacity 0.4s ease;
    }

    /* Honeycomb container */
    .honeycomb-container {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--black);
      z-index: 1000001;
      cursor: none;
    }

    .honeycomb-container.visible {
      display: block;
    }

    .honeycomb-canvas {
      width: 100%;
      height: 100%;
    }


    .tick-label {
      position: absolute;
      top: -52px;
      left: 50%;
      transform: translateX(-50%);
      font-family: 'Halfomania', sans-serif;
      font-size: 1rem;
      color: #f5f5f0;
      white-space: nowrap;
      opacity: 0;
      transition: opacity 0.4s ease;
      letter-spacing: 0.05em;
    }

    .tick-label.visible {
      opacity: 1;
    }

    .glitch-word {
      position: relative;
      display: inline-block;
    }

    .glitch-word::before,
    .glitch-word::after {
      content: attr(data-text);
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
    }

    .glitch-word.glitching::before {
      opacity: 0.8;
      color: #ff0040;
      animation: glitchLayer1 0.08s infinite;
      clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    }

    .glitch-word.glitching::after {
      opacity: 0.8;
      color: #00ffff;
      animation: glitchLayer2 0.08s infinite;
      clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    }

    @keyframes glitchLayer1 {
      0%, 100% { transform: translate(0); }
      20% { transform: translate(-5px, 2px); }
      40% { transform: translate(5px, -2px); }
      60% { transform: translate(-3px, 1px); }
      80% { transform: translate(3px, -1px); }
    }

    @keyframes glitchLayer2 {
      0%, 100% { transform: translate(0); }
      20% { transform: translate(5px, -2px); }
      40% { transform: translate(-5px, 2px); }
      60% { transform: translate(3px, -1px); }
      80% { transform: translate(-3px, 1px); }
    }

    .intro-overlay.screen-glitch {
      animation: none;
    }

    .intro-overlay.screen-glitch::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(218, 165, 32, 0.03) 2px,
        rgba(218, 165, 32, 0.03) 4px
      );
      pointer-events: none;
      animation: scanlines 0.05s linear infinite;
      z-index: 10;
    }

    .intro-overlay.screen-glitch::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 0, 64, 0.1) 50%, transparent 100%),
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%);
      animation: rgbSplit 0.1s infinite;
      pointer-events: none;
      z-index: 9;
    }

    @keyframes scanlines {
      0% { transform: translateY(0); }
      100% { transform: translateY(4px); }
    }

    @keyframes rgbSplit {
      0%, 100% { 
        background-position: -100% 0, 100% 0;
        opacity: 0;
      }
      25% { 
        background-position: 0% 0, 0% 0;
        opacity: 1;
      }
      50% { 
        background-position: 100% 0, -100% 0;
        opacity: 0.5;
      }
      75% { 
        background-position: 50% 0, -50% 0;
        opacity: 0.8;
      }
    }

    .glitch-slices {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 10001;
      display: none;
    }

    .glitch-slices.active {
      display: block;
    }

    .glitch-slice {
      position: absolute;
      left: 0;
      width: 100%;
      background: var(--black);
      overflow: hidden;
    }

    .glitch-word.glitching {
      animation: cyberGlitch 0.1s step-end infinite;
    }

    @keyframes cyberGlitch {
      0%, 100% { 
        transform: translate(0) skew(0);
        text-shadow: 
          0 0 20px rgba(218, 165, 32, 0.6),
          0 0 40px rgba(218, 165, 32, 0.4);
        filter: none;
      }
      5% { 
        transform: translate(-4px, 2px) skew(0.5deg);
        text-shadow: 
          4px 0 0 #ff0040,
          -4px 0 0 #00ffff,
          0 0 20px rgba(218, 165, 32, 0.6);
        filter: brightness(1.5);
      }
      10% { 
        transform: translate(4px, -2px) skew(-0.5deg);
        text-shadow: 
          -4px 0 0 #ff0040,
          4px 0 0 #00ffff,
          0 0 30px #daa520;
        filter: contrast(1.5);
      }
      15% { 
        transform: translate(0, 3px) skew(1deg);
        text-shadow: 
          2px 2px 0 #ff0040,
          -2px -2px 0 #00ffff,
          0 0 40px #daa520;
        filter: brightness(2);
      }
      20% { 
        transform: translate(-3px, -1px);
        text-shadow: 
          5px 0 0 #ff0040,
          -5px 0 0 #00ffff;
        filter: none;
      }
      25% { 
        transform: translate(2px, 0) skew(-1deg);
        text-shadow: 
          -3px 0 0 #ff0040,
          3px 0 0 #00ffff,
          0 0 60px #daa520;
        filter: brightness(0.8);
      }
      30% { 
        transform: translate(-1px, 2px);
        text-shadow: 
          0 0 50px #daa520,
          6px 0 0 #ff0040,
          -6px 0 0 #00ffff;
        filter: contrast(2);
      }
      35%, 45%, 55%, 65%, 75%, 85%, 95% {
        transform: translate(0);
        filter: none;
      }
      40% { 
        transform: translate(5px, -3px) skew(2deg);
        text-shadow: 
          -8px 0 0 #ff0040,
          8px 0 0 #00ffff;
        filter: brightness(1.8);
      }
      50% { 
        transform: translate(-6px, 1px) skew(-1.5deg);
        text-shadow: 
          10px 0 0 #ff0040,
          -10px 0 0 #00ffff;
        filter: invert(0.1);
      }
      60% { 
        transform: translate(3px, -2px);
        text-shadow: 
          -5px 3px 0 #ff0040,
          5px -3px 0 #00ffff,
          0 0 80px #daa520;
        filter: brightness(2.5);
      }
      70% { 
        transform: translate(-2px, 3px) skew(0.8deg);
        text-shadow: 
          7px 0 0 #ff0040,
          -7px 0 0 #00ffff;
        filter: contrast(1.8);
      }
      80% { 
        transform: translate(4px, 0) skew(-0.8deg);
        text-shadow: 
          -4px -2px 0 #ff0040,
          4px 2px 0 #00ffff,
          0 0 100px #daa520;
        filter: brightness(0.5);
      }
      90% { 
        transform: translate(-3px, -2px);
        text-shadow: 
          3px 0 0 #ff0040,
          -3px 0 0 #00ffff;
        filter: brightness(3);
      }
    }

    .flash-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #daa520;
      opacity: 0;
      pointer-events: none;
      z-index: 10002;
    }

    .flash-overlay.flash {
      animation: flashBang 0.15s ease-out;
    }

    @keyframes flashBang {
      0% { opacity: 0.9; }
      100% { opacity: 0; }
    }

    /* Hub chaos overlay for flashing assets during circle activations */
    .hub-chaos-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 10000;
      overflow: hidden;
    }

    .hub-chaos-char {
      position: absolute;
      font-family: 'Halfomania', 'Courier New', monospace;
      pointer-events: none;
      animation: hubChaosFlash 0.2s ease-out forwards;
    }

    @keyframes hubChaosFlash {
      0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
      30% { opacity: var(--max-opacity, 0.8); transform: scale(1.1) rotate(5deg); }
      100% { opacity: 0; transform: scale(0.9) rotate(0deg); }
    }

    .noise-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      pointer-events: none;
      z-index: 10001;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
      mix-blend-mode: overlay;
    }

    .noise-overlay.active {
      animation: noiseFlicker 0.05s infinite;
    }

    @keyframes noiseFlicker {
      0%, 100% { opacity: 0.15; transform: translate(0, 0); }
      25% { opacity: 0.2; transform: translate(-1%, 1%); }
      50% { opacity: 0.1; transform: translate(1%, -1%); }
      75% { opacity: 0.25; transform: translate(-0.5%, -0.5%); }
    }

    .cursor {
      width: 12px; 
      height: 12px;
      background: #ffffff;
      border-radius: 50%;
      position: fixed;
      pointer-events: none;
      z-index: 9999999;
      will-change: transform;
      /* animation removed for performance */
      opacity: 0;
      transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                  height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                  box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .cursor.active {
      opacity: 1;
    }
    
    .cursor.hover {
      width: 16px;
      height: 16px;
      box-shadow: 0 0 20px rgba(255, 255, 255, 1),
                  0 0 40px rgba(255, 255, 255, 0.8),
                  0 0 60px rgba(255, 255, 255, 0.5);
    }
    
    @keyframes cursorPulse {
      0%, 100% {
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6),
                    0 0 16px rgba(255, 255, 255, 0.4),
                    0 0 24px rgba(255, 255, 255, 0.2);
      }
      50% {
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.9),
                    0 0 24px rgba(255, 255, 255, 0.6),
                    0 0 36px rgba(255, 255, 255, 0.4);
      }
    }
    
    .cursor-follower {
      width: 40px; 
      height: 40px;
      border: 2px solid var(--harvest-gold);
      border-radius: 50%;
      position: fixed;
      pointer-events: none;
      z-index: 9999998;
      will-change: transform;
      background: transparent;
      box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
      opacity: 0;
      transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                  height 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                  box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .cursor-follower.active {
      opacity: 1;
    }
    
    .cursor-follower.hover { 
      width: 55px; 
      height: 55px; 
      box-shadow: 0 0 30px rgba(218, 165, 32, 0.7),
                  0 0 50px rgba(218, 165, 32, 0.4);
    }
    
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      padding: 2rem 3rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 100;
      opacity: 0;
      transition: opacity 0.8s ease 0.3s;
    }
    nav.visible { opacity: 1; }
    .logo { display: flex; align-items: center; }
    .logo-img { height: 24px; width: auto; opacity: 0.9; transition: opacity 0.3s ease; }
    .logo:hover .logo-img { opacity: 1; }
    .nav-links { display: flex; gap: 3rem; }
    .nav-link {
      color: var(--bone-subtle);
      text-decoration: none;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      font-weight: 300;
      position: relative;
      transition: color 0.3s ease;
    }
    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0;
      width: 0; height: 1px;
      background: var(--harvest-gold);
      transition: width 0.3s ease;
    }
    .nav-link:hover, .nav-link.active { color: var(--bone); }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
    main { 
      position: relative;
      opacity: 0;
      transition: opacity 0.8s ease 0.3s;
    }
    main.visible { opacity: 1; }
    .section {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 8rem 10vw;
      position: relative;
    }
    .hero { align-items: flex-start; }
    .hero-content { max-width: 900px; }
    h1 {
      font-size: clamp(3rem, 12vw, 10rem);
      font-weight: 300;
      line-height: 1.05;
      margin-bottom: 2rem;
      letter-spacing: 0.02em;
    }
    h1 .line { display: block; }
    h1 .text { display: block; }
    h1 .line:nth-child(2) .text { color: var(--harvest-gold); }
    .subtitle {
      font-size: 0.85rem;
      color: var(--bone-subtle);
      max-width: 400px;
      line-height: 2;
      font-weight: 300;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      opacity: 0;
      animation: fadeIn 1s ease 0.6s forwards;
    }
    @keyframes fadeIn { to { opacity: 1; } }
    .scroll-indicator {
      position: absolute;
      bottom: 4rem; left: 10vw;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
    .scroll-indicator span {
      width: 1px; height: 60px;
      background: linear-gradient(to bottom, var(--harvest-gold), transparent);
      /* animation removed for performance */
    }
    @keyframes scrollPulse {
      0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
      50% { opacity: 1; transform: scaleY(1); }
    }
    .section-title {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.25em;
      color: var(--bone-ghost);
      margin-bottom: 4rem;
      position: relative;
      padding-left: 3rem;
      font-weight: 300;
    }
    .section-title::before {
      content: '';
      position: absolute;
      left: 0; top: 50%;
      width: 2rem; height: 1px;
      background: var(--harvest-gold);
    }
    .projects { display: flex; flex-direction: column; gap: 8rem; }
    .project {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
      opacity: 0;
      transform: translateY(60px);
      transition: opacity 0.8s ease, transform 0.8s ease;
      position: relative;
    }
    .project.visible { opacity: 1; transform: translateY(0); }
    .project:nth-child(even) { direction: rtl; }
    .project:nth-child(even) > * { direction: ltr; }
    .project-image {
      aspect-ratio: 16/10;
      background: var(--bone-whisper);
      position: relative;
      overflow: hidden;
      transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .project-image::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--bone-ghost) 0%, transparent 50%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .project:hover .project-image::before { opacity: 1; }
    .project:hover .project-image { transform: scale(1.02); }
    .project-info { padding: 2rem 0; }
    .project-info h3 {
      font-size: clamp(1.5rem, 3vw, 2.5rem);
      font-weight: 300;
      margin-bottom: 1rem;
      letter-spacing: 0.05em;
      transition: color 0.3s ease;
    }
    .project:hover .project-info h3 { color: var(--harvest-gold); }
    .project-category {
      font-size: 0.65rem;
      color: var(--bone-ghost);
      text-transform: uppercase;
      letter-spacing: 0.2em;
      font-weight: 300;
    }
    .project::before {
      content: attr(data-index);
      position: absolute;
      font-size: 10rem;
      font-weight: 100;
      color: var(--bone-whisper);
      top: -3rem; right: 0;
      pointer-events: none;
      transition: color 0.3s ease;
      letter-spacing: -0.02em;
    }
    .project:hover::before { color: var(--bone-ghost); }
    .about-content { max-width: 600px; }
    .about-text {
      font-size: clamp(1.25rem, 2.5vw, 1.75rem);
      line-height: 2;
      color: var(--bone-subtle);
      margin-bottom: 4rem;
      font-weight: 300;
    }
    .skills { display: flex; gap: 2rem; flex-wrap: wrap; }
    .skill {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: var(--bone-ghost);
      padding: 0.75rem 1.5rem;
      border: 1px solid var(--bone-whisper);
      transition: all 0.3s ease;
      font-weight: 300;
    }
    .skill:hover { border-color: var(--harvest-gold); color: var(--harvest-gold); }
    .contact-content { display: flex; flex-direction: column; gap: 4rem; }
    .contact-link {
      font-size: clamp(1.8rem, 4vw, 3.5rem);
      color: var(--bone);
      text-decoration: none;
      position: relative;
      display: inline-block;
      transition: color 0.3s ease;
      font-weight: 300;
      letter-spacing: 0.05em;
    }
    .contact-link::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 100%; height: 1px;
      background: var(--harvest-gold);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .contact-link:hover { color: var(--harvest-gold); }
    .contact-link:hover::after { transform: scaleX(1); transform-origin: left; }
    .social-links { display: flex; gap: 2.5rem; }
    .social-link {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: var(--bone-ghost);
      text-decoration: none;
      position: relative;
      transition: color 0.3s ease;
      font-weight: 300;
    }
    .social-link:hover { color: var(--harvest-gold); }
    @media (max-width: 768px) {
      nav { padding: 1.5rem 2rem; }
      .nav-links { gap: 1.5rem; }
      .logo-img { height: 18px; }
      .section { padding: 6rem 2rem; }
      .project { grid-template-columns: 1fr; gap: 2rem; }
      .project:nth-child(even) { direction: ltr; }
      .project::before { font-size: 5rem; }
      .cursor, .cursor-follower { display: none; }
      body { cursor: auto; }
      .welcome-text { font-size: clamp(1.5rem, 5vw, 2.5rem); }
      .brain-icon { width: 80px; height: 80px; }
      .audio-hint { font-size: clamp(0.69rem, 2.3vw, 0.92rem); }
    }

