    html,
    body {
      min-height: 100%;
      /* Light Mode: Soft radial gradient for depth */
      background: radial-gradient(circle at top, #ffffff 0%, #f7f7f7 40%, #eeeeee 100%);
      background-color: #fff;
      overflow-x: hidden;
      font-family: var(--font-sans);
      touch-action: manipulation;
      color: #444; /* Darker text for readability */
    }

    /* --- CONSOLE SIMULATOR STYLES --- */
    .console-wrapper {
      position: absolute;
      top: 5vh;
      width: 100%;
      display: flex;
      justify-content: center;
      z-index: 40;
      pointer-events: none; 
      transition: opacity 1s ease; /* For graceful exit */
    }

    #console-simulation {
      width: 90%;
      max-width: 600px;
      font-family: var(--font-mono);
      font-size: clamp(10px, 1.5vw, 13px);
      line-height: 1.6;
      color: rgba(0, 0, 0, 0.7);
      text-align: left;
    }

    .console-line {
      display: block;
      min-height: 1.5em;
      margin-bottom: 4px;
    }

    .prompt-prefix {

      font-weight: 600;
      color: #000;
      margin-right: 8px;
    }

    .cursor {
      display: inline-block;
      width: 6px;
      height: 1.2em;
      background-color: rgba(0, 0, 0, 0.4);
      margin-left: 4px;
      vertical-align: middle;
      animation: blink 1s step-end infinite;
    }

    .llm-response {
      color: rgba(0, 0, 0, 0.4);
      display: block;
      padding-left: 15px;
      margin-bottom: 15px;
      border-left: 1px solid rgba(0, 0, 0, 0.1);
    }

    @keyframes blink {
      from, to { opacity: 1; }
      50% { opacity: 0; }
    }
    /* --- END CONSOLE STYLES --- */

    .hero {
      position: relative;
      width: 100%;
      min-height: 100vh;
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: clamp(24px, 6svh, 64px) 20px calc(112px + env(safe-area-inset-bottom));
    }

    .viz-wrapper {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      z-index: 5;
    }

    canvas {
      width: clamp(260px, min(82vw, 58svh), 760px);
      height: clamp(260px, min(82vw, 58svh), 760px);
      aspect-ratio: 1;
      display: block;
    }

    .center-label {
      border: 0;
      background: transparent;
      position: absolute;
      z-index: 20;
      font-size: clamp(10px, 2vw, 14px);
      font-weight: 300;
      letter-spacing: 0.12em;
      color: rgba(0, 0, 0, 0.4);
      text-transform: uppercase;
      cursor: pointer;
      padding: 20px;
      transition: color 0.5s, text-shadow 0.5s;
    }

    .center-label:hover {
      color: rgba(0, 0, 0, 1);
      text-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    }

    .footer-content {
      position: absolute;
      right: 20px;
      bottom: calc(32px + env(safe-area-inset-bottom));
      left: 20px;
      z-index: 30;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      text-align: center;
      padding: 0;
    }

    .loom-link {
      color: rgba(0, 0, 0, 0.5);
      text-decoration: none;
      font-size: clamp(10px, 2.5vw, 11px);
      font-weight: 400;
      letter-spacing: clamp(0.18em, 0.9vw, 0.35em);
      cursor: pointer;
      transition: 0.4s;
    }

    .loom-link:hover {
      color: #000;
      letter-spacing: 0.45em;
      transform: translateY(-1px);
    }

    .brand-tagline {
      color: rgba(0, 0, 0, 0.4);
      font-size: clamp(8px, 2.2vw, 9px);
      font-weight: 400;
      letter-spacing: clamp(0.06em, 0.3vw, 0.12em);
      font-style: italic;
      max-width: 320px;
      line-height: 1.5;
      pointer-events: none;
    }

    .brand-tagline a {
      pointer-events: auto;
      color: rgba(0, 0, 0, 0.6);
      text-decoration: none;
      transition: 0.4s;
    }

    .brand-tagline a:hover {
      color: #000;
      letter-spacing: 0.15em;
    }

    @media (max-width: 520px) {
      .hero {
        justify-content: center;
        padding-bottom: calc(130px + env(safe-area-inset-bottom));
      }

      canvas {
        width: min(72vw, 40svh);
        height: min(72vw, 40svh);
        min-width: 232px;
        min-height: 232px;
      }

      .center-label {
        padding: 14px;
        font-size: 11px;
      }

      .footer-content {
        bottom: calc(28px + env(safe-area-inset-bottom));
        gap: 12px;
      }

      .brand-tagline {
        max-width: min(320px, 86vw);
      }
    }

    #infoPopup {
      opacity: 0;
      visibility: hidden;
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(25px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      transition: 0.6s;
    }

    #infoPopup.active {
      opacity: 1;
      visibility: visible;
    }

    .popup-content {
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.05);
      padding: clamp(30px, 5vw, 60px);
      max-width: 850px;
      width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      touch-action: pan-y;
      -webkit-overflow-scrolling: touch;
      position: relative;
      transform: scale(0.98);
      transition: 0.6s;
      box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    }

    #infoPopup.active .popup-content {
      transform: scale(1);
    }

    .close-btn {
      border: 0;
      position: sticky;
      float: right;
      top: -10px;
      color: rgba(0, 0, 0, 0.3);
      cursor: pointer;
      font-size: 10px;
      letter-spacing: 0.2em;
      z-index: 110;
      padding: 10px;
      background: #fff;
    }

    .popup-content h1.main-title,
    .popup-content h2.main-title {
      font-family: var(--font-serif);
      font-size: 32px;
      color: #000;
      text-align: center;
      margin-bottom: 5px;
    }

    .popup-content .subtitle {
      display: block;
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.3em;
      color: rgba(0, 0, 0, 0.5);
      text-align: center;
      margin-bottom: 40px;
    }

    .popup-content h3 {
      font-family: var(--font-serif);
      font-style: italic;
      color: #000;
      margin: 40px 0 15px;
      font-size: 18px;
      border-left: 1px solid rgba(0, 0, 0, 0.1);
      padding-left: 15px;
    }

    .popup-content p {
      margin-bottom: 1.5em;
      line-height: 1.8;
      font-size: 14px;
      font-weight: 400;
    }

    .popup-content strong {
      color: #000;
      font-weight: 600;
    }

    .popup-content ul {
      margin-bottom: 30px;
      list-style: none;
    }

    .popup-content li {
      margin-bottom: 18px;
      font-size: 13px;
      padding-left: 25px;
      position: relative;
    }

    .popup-content li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 10px;
      width: 10px;
      height: 1px;
      background: rgba(0, 0, 0, 0.2);
    }

    .accent-section {
      margin-top: 50px;
      padding-top: 30px;
      border-top: 1px dashed rgba(0, 0, 0, 0.1);
      scroll-margin-top: 20px;
    }

    .demo-link {
      display: block;
      color: #555;
      text-decoration: none;
      font-size: 13px;
      margin-bottom: 20px;
      padding: 15px;
      border: 1px solid rgba(0, 0, 0, 0.05);
      background: rgba(0, 0, 0, 0.01);
      transition: 0.3s;
    }

    .demo-link:hover {
      background: rgba(0, 0, 0, 0.03);
      border-color: rgba(0, 0, 0, 0.1);
      color: #000;
    }

    .demo-link strong {
      color: #000;
      text-transform: uppercase;
      font-size: 11px;
      letter-spacing: 0.1em;
      display: block;
      margin-bottom: 4px;
    }

    .section-subtitle {
      margin-bottom: 20px;
    }

    .loom-outro {
      margin-top: 50px;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      padding-top: 30px;
      font-style: italic;
      color: rgba(0, 0, 0, 0.4);
      font-size: 13px;
    }

    .jump-link {
      display: block;
      text-align: center;
      margin-top: -30px;
      margin-bottom: 40px;
      color: rgba(0, 0, 0, 0.4);
      text-decoration: none;
      font-size: 10px;
      letter-spacing: 0.1em;
      transition: 0.3s;
    }

    .jump-link:hover {
      color: #000;
    }

    #videoModal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(255, 255, 255, 0.98);
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    #videoModal.active {
      display: flex;
    }

    .video-container {
      width: 95vw;
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      aspect-ratio: 16/9;
      background: #fff;
      box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
    }

    .transcript-wrapper {
      width: 100%;
      height: 100%;
      overflow-y: auto;
      padding: 40px;
      background: #fafafa;
      -webkit-overflow-scrolling: touch;
    }

    .transcript-wrapper strong {
      background: rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.1);
      color: #000;
      padding: 2px 6px;
      border-radius: 2px;
      font-size: 11px;
      text-transform: uppercase;
      font-weight: 600;
      font-family: monospace;
      letter-spacing: 0.05em;
      display: inline-block;
      margin-right: 4px;
    }

    @media (max-aspect-ratio: 1/1) {
      .video-container {
        width: 100vw;
        height: auto;
      }
    }

    #videoModal iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .player-frame {
      width: 100%;
      height: 100%;
    }

    .video-close {
      border: 0;
      background: transparent;
      position: absolute;
      top: -50px;
      right: 0;
      color: rgba(0, 0, 0, 0.4);
      cursor: pointer;
      font-size: 11px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      transition: color 0.3s;
    }

    .video-close:hover {
      color: #000;
    }

    #manifestoTemplate,
    #loomTemplate {
      display: none;
    }

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

  .console-wrapper {
    display: none;
  }
}
