
  .kn-hero {
    position: relative; isolation: isolate; overflow: hidden;
    transition: opacity 0.22s ease;
    min-height: 100vh; min-height: 100svh;
    background: #d9cfa8; color: #16211b;
  }
  .kn-js .kn-hero:not(.kn-ready) { opacity: 0; visibility: hidden; }
  .kn-js .kn-hero.kn-ready { visibility: visible; }
  .kn-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .kn-land { object-fit: cover; object-position: 50% 50%; z-index: 0; }
  .kn-cloth { z-index: 1; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
  .kn-grabbing .kn-cloth { cursor: grabbing; }
  .kn-flies { z-index: 2; pointer-events: none; }
  .kn-copy { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 20px; }
  .kn-gl .kn-copy {   /* the cloth carries the words visually; keep them here for screen readers and search */
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; transform: none;
  }
  .kn-copy p:first-child { margin: 0 0 12px; font: 500 14px/1.6 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.3em; text-transform: uppercase; color: #2f3b33; }
  .kn-copy .kn-display-name { margin: 0; font: 400 clamp(56px, 9vw, 140px)/1 "Instrument Serif", Georgia, serif; }
  .kn-copy p:last-child { margin: 12px 0 0; font: italic 400 clamp(22px, 2.6vw, 40px)/1.2 "Instrument Serif", Georgia, serif; color: #1f4a36; }
  .kn-cta {
    position: absolute; z-index: 3; left: 50%; top: 68%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
    padding: 16px 30px; border-radius: 999px; background: var(--kn-cta-bg, #1f4a36); color: var(--kn-cta-fg, #f6f1e7); text-decoration: none;
    font: 500 clamp(16px, 1.25vw, 20px)/1 Manrope, system-ui, sans-serif;
    box-shadow: 0 12px 30px rgba(10, 30, 40, 0.3); transition: filter 0.2s ease, transform 0.2s ease;
  }
  .kn-gl .kn-cta { transform: none; }
  .kn-cta:hover { filter: brightness(1.08); }
  .kn-cta svg { width: 1em; height: 1em; }
  .kn-hint {
    position: absolute; z-index: 3; left: 50%; bottom: clamp(16px, 2vw, 32px); transform: translateX(-50%);
    margin: 0; padding: 10px 16px; border-radius: 999px; white-space: nowrap;
    background: rgba(246, 241, 231, 0.88); color: #2f3b33; font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.08em;
    opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
  }
  .kn-hint.is-on { opacity: 1; }
  .kn-pause {
    position: absolute; z-index: 3; left: clamp(16px, 2vw, 32px); bottom: clamp(16px, 2vw, 32px);
    min-height: 44px; padding: 0 18px 0 14px; display: inline-flex; align-items: center; gap: 10px;
    border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: rgba(250, 246, 236, 0.88); color: #16211b; cursor: pointer;
    font: 500 15px/1 Manrope, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(40, 50, 30, 0.18);
  }
  .kn-pause svg { width: 18px; height: 18px; }
  .kn-pause .kn-ic-play, .kn-hero.is-paused .kn-pause .kn-ic-pause { display: none; }
  .kn-hero.is-paused .kn-pause .kn-ic-play { display: block; }
  .kn-cta:focus-visible, .kn-pause:focus-visible { outline: 3px solid #16211b; outline-offset: 3px; }
  /* overlay mode: the hero covers the homepage until "Explore" is clicked, then fades away */
  .kn-hero.kn-overlay { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100svh; min-height: 0; z-index: 2147483000; }
  .kn-overlay .kn-cloth { touch-action: none; }
  .kn-hero.kn-gone { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
  .kn-leaving .kn-cta, .kn-leaving .kn-pause, .kn-leaving .kn-hint { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
  .kn-ascii-hold .kn-cloth { opacity: 0; pointer-events: none; }
  .kn-gl.kn-ascii-hold .kn-copy {
    position: absolute; width: auto; height: auto; padding: 0 20px; overflow: visible;
    clip: auto; white-space: normal; transform: translateY(-50%);
  }
  .kn-gl.kn-ascii-hold .kn-copy {
    display: flex; flex-direction: column; align-items: center;
  }
  .kn-gl.kn-ascii-hold .kn-copy .kn-cta {
    position: static !important; left: auto !important; top: auto !important;
    transform: none !important; margin-top: 28px;
    opacity: 1; pointer-events: auto;
  }
  .kn-gl.kn-ascii-hold .kn-copy > p:nth-of-type(3) {
    margin: 12px 0 0; font: italic 400 clamp(22px, 2.6vw, 40px)/1.2 "Instrument Serif", Georgia, serif; color: #1f4a36;
  }
  html.kn-locked, html.kn-locked body { overflow: hidden; }
  [data-kn-focus]:focus { outline: none; }
  .kn-nogl .kn-cloth, .kn-nogl .kn-flies, .kn-nogl .kn-hint, .kn-nogl .kn-pause { display: none; }
  @media (max-width: 700px) { .kn-hint { bottom: 84px; } }
  @media (prefers-reduced-motion: reduce) { .kn-cta, .kn-hint { transition: none; } }


  /* Simplified intro: show the animated ASCII landscape directly, without the draggable cloth. */
  .kn-ascii-only .kn-cloth,
  .kn-ascii-only .kn-hint { display: none !important; }

  .kn-gl.kn-ascii-only .kn-copy {
    position: absolute; width: auto; height: auto; left: 0; right: 0; top: 50%;
    padding: 0 20px; overflow: visible; clip: auto; white-space: normal;
    transform: translateY(-50%); text-align: center;
    display: flex; flex-direction: column; align-items: center;
  }

  .kn-gl.kn-ascii-only .kn-cta {
    left: 50% !important; top: 68% !important; transform: translateX(-50%) !important;
  }

  .kn-ascii-only .kn-pause {
    z-index: 4;
  }

  .kn-ascii-only.kn-leaving .kn-pause,
  .kn-ascii-only.kn-leaving .kn-cta { opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
