
      @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap");

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

      :root {
        --black: #0a0a0a;
        --white: #f0ede8;
        --accent: #c8a96e;
        --muted: #3a3a3a;
        --dim: #1c1c1c;
        --tag-bg: #1e1e1e;
        --tag-border: #2e2e2e;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        background-color: var(--black);
        color: var(--white);
        font-family: "Inter", sans-serif;
        font-weight: 300;
        line-height: 1.6;
        min-height: 100vh;
        overflow-x: hidden;
      }

      /* NAV */
      nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 80px;
        padding: 22px 40px;
        background: transparent;
      }

      nav a {
        font-family: "Inter", sans-serif;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0.02em;
        color: var(--white);
        text-decoration: none;
        opacity: 0.85;
        transition: opacity 0.2s;
      }

      nav a:hover {
        opacity: 1;
      }

      nav .nav-center {
        text-align: center;
        line-height: 1.2;
      }

      nav .nav-center span {
        display: block;
        font-size: 13px;
      }

      /* HERO */
      .hero {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 120px 40px 80px;
        position: relative;
      }

      .system-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--tag-bg);
        border: 1px solid var(--tag-border);
        border-radius: 20px;
        padding: 4px 12px;
        font-family: "Space Mono", monospace;
        font-size: 9px;
        letter-spacing: 0.08em;
        color: #888;
        margin-bottom: 28px;
      }

      .system-tag::before {
        content: "";
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--accent);
        animation: pulse 2s infinite;
      }

      @keyframes pulse {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.3;
        }
      }

      .hero h1 {
        font-family: "Inter", sans-serif;
        font-size: clamp(36px, 6vw, 68px);
        font-weight: 300;
        letter-spacing: -0.02em;
        line-height: 1.1;
        margin-bottom: 4px;
      }

      .hero h1 .accent {
        color: var(--accent);
        font-weight: 300;
      }

      .hero-sub {
        font-family: "Space Mono", monospace;
        font-size: 11px;
        color: #555;
        letter-spacing: 0.1em;
        margin-top: 16px;
        margin-bottom: 60px;
      }

      /* SCROLL CARD (reference-inspired bottom card) */
      .init-card {
        width: 100%;
        max-width: 480px;
        background: #141414;
        border: 1px solid #222;
        border-radius: 16px;
        padding: 28px 32px;
        text-align: left;
        margin-top: 20px;
      }

     .flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 960px;
}

@media (max-width: 900px) {
  .flex {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .flex {
    grid-template-columns: 1fr;
  }
}
      .init-card .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
        font-family: "Space Mono", monospace;
        font-size: 10px;
        color: #555;
        letter-spacing: 0.05em;
      }

      .init-card .card-header .status {
        color: var(--accent);
      }

      .init-text {
        font-size: 13px;
        color: #888;
        line-height: 1.7;
        margin-bottom: 20px;
      }

      .init-btn {
        display: inline-block;
        font-family: "Space Mono", monospace;
        font-size: 10px;
        letter-spacing: 0.08em;
        color: var(--black);
        background: var(--accent);
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        transition: opacity 0.2s;
        text-transform: uppercase;
      }

      .init-btn:hover {
        opacity: 0.85;
      }

      /* SECTIONS */
      .section {
        padding: 100px 40px;
        max-width: 900px;
        margin: 0 auto;
      }

      .section-label {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        letter-spacing: 0.15em;
        color: #444;
        text-transform: uppercase;
        margin-bottom: 48px;
        display: flex;
        align-items: center;
        gap: 16px;
      }

      .section-label::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #1e1e1e;
      }

      .section-title {
        font-size: clamp(22px, 3.5vw, 36px);
        font-weight: 300;
        letter-spacing: -0.02em;
        margin-bottom: 60px;
        line-height: 1.2;
      }

      .section-title .highlight {
        color: var(--accent);
      }

      /* AFFIRMATION GRID */
      .affirmation-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        margin-bottom: 60px;
      }

      @media (max-width: 600px) {
        .affirmation-grid {
          grid-template-columns: 1fr;
        }
      }

      .aff-card {
        background: #0f0f0f;
        border: 1px solid #1a1a1a;
        padding: 32px 28px;
        position: relative;
        transition:
          border-color 0.3s,
          background 0.3s;
        cursor: default;
      }

      .aff-card:hover {
        background: #131313;
        border-color: #2a2a2a;
      }

      .aff-card.featured {
        grid-column: span 2;
      }

      @media (max-width: 600px) {
        .aff-card.featured {
          grid-column: span 1;
        }
      }

      .aff-number {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        color: #333;
        letter-spacing: 0.1em;
        margin-bottom: 20px;
      }

      .aff-text {
        font-size: 14px;
        font-weight: 300;
        line-height: 1.65;
        color: #c0bbb4;
      }

      .aff-text strong {
        color: var(--white);
        font-weight: 500;
      }

      .aff-card.featured .aff-text {
        font-size: clamp(16px, 2vw, 20px);
        color: var(--white);
      }

      .aff-tag {
        position: absolute;
        top: 16px;
        right: 16px;
        font-family: "Space Mono", monospace;
        font-size: 8px;
        color: #333;
        letter-spacing: 0.08em;
        background: #0a0a0a;
        border: 1px solid #1e1e1e;
        padding: 3px 8px;
        border-radius: 4px;
      }

      /* DIVIDER */
      .divider {
        width: 100%;
        height: 1px;
        background: #141414;
        margin: 0;
      }

      /* TYPEWRITER SECTION */
      .typewriter-section {
        padding: 100px 40px;
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
      }

      .typewriter-wrapper {
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .typewriter-text {
        font-size: clamp(18px, 3vw, 32px);
        font-weight: 300;
        letter-spacing: -0.01em;
        color: var(--white);
        border-right: 2px solid var(--accent);
        padding-right: 4px;
        white-space: nowrap;
        overflow: hidden;
        animation: blink 0.75s step-end infinite;
      }

      @keyframes blink {
        from,
        to {
          border-color: transparent;
        }
        50% {
          border-color: var(--accent);
        }
      }

      /* LEGACY SECTION */
      .legacy-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
      }

      .legacy-item {
        display: flex;
        align-items: flex-start;
        gap: 28px;
        padding: 28px 0;
        border-bottom: 1px solid #141414;
        transition: opacity 0.2s;
      }

      .legacy-item:hover {
        opacity: 0.8;
      }

      .legacy-index {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        color: #333;
        min-width: 32px;
        padding-top: 4px;
      }

      .legacy-body {
        flex: 1;
      }

      .legacy-body p {
        font-size: 15px;
        font-weight: 300;
        color: #aaa8a2;
        line-height: 1.65;
      }

      .legacy-body p strong {
        color: var(--white);
        font-weight: 400;
      }

      .legacy-cat {
        font-family: "Space Mono", monospace;
        font-size: 8px;
        color: var(--accent);
        letter-spacing: 0.1em;
        margin-bottom: 8px;
        text-transform: uppercase;
      }

      /* FOOTER */
      footer {
        padding: 80px 40px;
        max-width: 900px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
      }

      .commit-tag {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        letter-spacing: 0.15em;
        color: #333;
        text-transform: uppercase;
      }

      .commit-title {
        font-size: clamp(24px, 4vw, 42px);
        font-weight: 300;
        letter-spacing: -0.02em;
        line-height: 1.2;
      }

      .commit-sub {
        font-family: "Space Mono", monospace;
        font-size: 10px;
        color: #444;
        letter-spacing: 0.08em;
        max-width: 360px;
        line-height: 1.8;
      }

      .commit-line {
        width: 1px;
        height: 60px;
        background: linear-gradient(to bottom, #333, transparent);
        margin: 10px auto;
      }

      .footer-sys {
        font-family: "Space Mono", monospace;
        font-size: 8px;
        color: #2a2a2a;
        letter-spacing: 0.1em;
      }

      /* VOICEOVER PLAYER */
      .vo-bar {
        position: fixed;
        bottom: 28px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 200;
        display: flex;
        align-items: center;
        gap: 16px;
        background: #111;
        border: 1px solid #222;
        border-radius: 40px;
        padding: 10px 20px 10px 14px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
        min-width: 320px;
        backdrop-filter: blur(12px);
      }

      .vo-play-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--accent);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition:
          opacity 0.2s,
          transform 0.2s;
      }

      .vo-play-btn:hover {
        opacity: 0.85;
        transform: scale(1.05);
      }

      .vo-play-btn svg {
        width: 14px;
        height: 14px;
        fill: #0a0a0a;
        margin-left: 2px;
      }
      .vo-play-btn.playing svg {
        margin-left: 0;
      }

      .vo-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
      }

      .vo-label {
        font-family: "Space Mono", monospace;
        font-size: 8px;
        color: #555;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      .vo-phrase {
        font-size: 11px;
        font-weight: 300;
        color: #aaa;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
      }

      .vo-progress-wrap {
        width: 100%;
        height: 2px;
        background: #222;
        border-radius: 2px;
        overflow: hidden;
        cursor: pointer;
      }

      .vo-progress-bar {
        height: 100%;
        width: 0%;
        background: var(--accent);
        border-radius: 2px;
        transition: width 0.1s linear;
      }

      .vo-mute-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        opacity: 0.4;
        transition: opacity 0.2s;
        flex-shrink: 0;
      }

      .vo-mute-btn:hover {
        opacity: 0.8;
      }
      .vo-mute-btn svg {
        width: 14px;
        height: 14px;
        fill: var(--white);
        display: block;
      }

      /* CANVAS WATER BACKGROUND */
      #waterCanvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
        opacity: 0.18;
      }

      nav,
      .hero,
      .section,
      .typewriter-section,
      .legacy-list,
      footer,
      .vo-bar,
      .divider {
        position: relative;
        z-index: 1;
      }

      /* GLITCH */
      .glitch {
        position: relative;
      }

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

      .glitch::before {
        color: var(--accent);
        animation: glitch1 4s infinite;
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
      }

      .glitch::after {
        color: #555;
        animation: glitch2 4s infinite;
        clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
      }

      @keyframes glitch1 {
        0%,
        90%,
        100% {
          transform: translate(0);
          opacity: 0;
        }
        92% {
          transform: translate(-2px, 0);
          opacity: 0.6;
        }
        94% {
          transform: translate(2px, 0);
          opacity: 0.6;
        }
        96% {
          transform: translate(0);
          opacity: 0;
        }
      }

      @keyframes glitch2 {
        0%,
        88%,
        100% {
          transform: translate(0);
          opacity: 0;
        }
        90% {
          transform: translate(2px, 0);
          opacity: 0.4;
        }
        92% {
          transform: translate(-2px, 0);
          opacity: 0.4;
        }
        94% {
          transform: translate(0);
          opacity: 0;
        }
      }

      /* MINDSET BUILDER */
      .builder-section {
        padding: 100px 40px;
        max-width: 900px;
        margin: 0 auto;
      }

      .builder-card {
        background: #0f0f0f;
        border: 1px solid #1e1e1e;
        border-radius: 16px;
        padding: 40px;
      }

      .topic-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 32px;
      }

      .topic-pill {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 7px 14px;
        border-radius: 20px;
        border: 1px solid #2a2a2a;
        background: #141414;
        color: #666;
        cursor: pointer;
        transition: all 0.2s;
        user-select: none;
      }

      .topic-pill:hover {
        border-color: var(--accent);
        color: var(--accent);
      }
      .topic-pill.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #0a0a0a;
      }

      .builder-input-wrap {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
      }

      .builder-label {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        letter-spacing: 0.12em;
        color: #444;
        text-transform: uppercase;
      }

      .builder-input {
        background: #0a0a0a;
        border: 1px solid #222;
        border-radius: 8px;
        padding: 14px 18px;
        font-family: "Inter", sans-serif;
        font-size: 13px;
        font-weight: 300;
        color: var(--white);
        outline: none;
        transition: border-color 0.2s;
        resize: none;
        width: 100%;
        line-height: 1.6;
      }

      .builder-input::placeholder {
        color: #333;
      }
      .builder-input:focus {
        border-color: #3a3a3a;
      }

      .builder-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
      }

      .builder-generate-btn {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 11px 22px;
        border-radius: 6px;
        border: none;
        background: var(--accent);
        color: #0a0a0a;
        cursor: pointer;
        transition: opacity 0.2s;
      }

      .builder-generate-btn:hover {
        opacity: 0.85;
      }
      .builder-generate-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
      }

      .builder-clear-btn {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 11px 18px;
        border-radius: 6px;
        border: 1px solid #2a2a2a;
        background: transparent;
        color: #555;
        cursor: pointer;
        transition: all 0.2s;
      }

      .builder-clear-btn:hover {
        border-color: #444;
        color: #888;
      }

      .builder-status {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        color: #444;
        letter-spacing: 0.06em;
        margin-left: auto;
      }

      .builder-output {
        margin-top: 36px;
        display: flex;
        flex-direction: column;
        gap: 2px;
      }

      .built-aff {
        background: #0a0a0a;
        border: 1px solid #181818;
        border-radius: 8px;
        padding: 22px 24px;
        display: flex;
        align-items: flex-start;
        gap: 20px;
        opacity: 0;
        transform: translateY(10px);
        animation: affIn 0.5s forwards;
        transition: border-color 0.2s;
        cursor: default;
      }

      .built-aff:hover {
        border-color: #252525;
      }

      @keyframes affIn {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .built-aff-index {
        font-family: "Space Mono", monospace;
        font-size: 9px;
        color: #2e2e2e;
        min-width: 28px;
        padding-top: 2px;
      }

      .built-aff-text {
        flex: 1;
        font-size: 13px;
        font-weight: 300;
        color: #b0aba4;
        line-height: 1.7;
      }

      .built-aff-text strong {
        color: var(--white);
        font-weight: 500;
      }

      .built-aff-topic {
        font-family: "Space Mono", monospace;
        font-size: 8px;
        color: var(--accent);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding-top: 2px;
        min-width: 52px;
        text-align: right;
      }

      .built-aff-actions {
        display: flex;
        gap: 8px;
        margin-top: 6px;
      }

      .aff-action-btn {
        font-family: "Space Mono", monospace;
        font-size: 8px;
        letter-spacing: 0.06em;
        padding: 4px 10px;
        border-radius: 4px;
        border: 1px solid #1e1e1e;
        background: transparent;
        color: #444;
        cursor: pointer;
        transition: all 0.2s;
      }

      .aff-action-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
      }
      .aff-action-btn.speak-btn.speaking {
        border-color: var(--accent);
        color: var(--accent);
      }

      .builder-empty {
        text-align: center;
        padding: 48px 0 20px;
        font-family: "Space Mono", monospace;
        font-size: 10px;
        color: #2a2a2a;
        letter-spacing: 0.1em;
      }

      /* FADE IN */
      .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition:
          opacity 0.8s ease,
          transform 0.8s ease;
      }

      .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
      }