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

    :root {
      --pad-x: 8vw;
      --base-size: clamp(50px, 7vw, 104px);
    }

    html, body {
      width: 100%;
      min-height: 100%;
      background: #000;
      color: #fff;
      font-family: Arial, Helvetica, sans-serif;
      overflow-x: hidden;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      height: 250vh;
      background: #000;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .hero {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding-left: var(--pad-x);
      padding-right: 24px;
      pointer-events: none;
    }

    .stack {
      max-width: 1600px;
    }

    .typing-line {
      min-height: 1em;
      white-space: nowrap;
      line-height: 0.9;
      letter-spacing: -0.045em;
      color: #fff;
      font-weight: 400;
    }

    /* overlap tikai top rindām */
    .line-2,
    .line-3,
    .line-4,
    .line-5,
    .line-6 {
      margin-top: -0.17em;
    }

    .line-1 { font-size: var(--base-size); }
    .line-2 { font-size: calc(var(--base-size) - 2px); }
    .line-3 { font-size: calc(var(--base-size) - 4px); }
    .line-4 { font-size: calc(var(--base-size) - 6px); }
    .line-5 { font-size: calc(var(--base-size) - 8px); }
    .line-6 { font-size: calc(var(--base-size) - 10px); }

    .gap-large {
      height: 44px;
      min-height: 44px;
    }

    .line-7 {
      font-size: clamp(28px, 2.8vw, 42px);
      line-height: 1.04;
      letter-spacing: -0.03em;
      font-style: italic;
      color: #fff;
    }

    .social-gap {
      height: 25px;
      min-height: 0px;
    }

    .line-8 {
      font-size: clamp(17px, 1.35vw, 22px);
      line-height: 1.15;
      letter-spacing: -0.01em;
      color: #fff;
      pointer-events: auto;
    }

    .line-5 a,
    .line-6 a,
    .line-8 a {
      pointer-events: auto;
      color: #fff;
      transition: opacity 0.18s ease;
    }

    .line-5 a:hover,
    .line-6 a:hover,
    .line-8 a:hover {
      opacity: 0.72;
    }

    .cursor {
      display: inline-block;
      width: 0.08em;
      height: 0.92em;
      background: #fff;
      margin-left: 0.08em;
      vertical-align: -0.08em;
      opacity: 1;
    }

    .cursor.is-off {
      opacity: 0;
    }

    .scroll-indicator {
      position: fixed;
      bottom: 28px;
      left: 8vw;
      font-size: 12px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      opacity: 0.65;
      color: #fff;
      pointer-events: none;
    }

    @media (max-width: 980px) {
    body {
      height: 250vh;
    }

      :root {
        --base-size: clamp(38px, 8vw, 72px);
      }

      .typing-line {
        white-space: normal;
        line-height: 0.95;
      }

      .line-2,
      .line-3,
      .line-4,
      .line-5,
      .line-6 {
        margin-top: -0.15em;
      }

      .gap-large {
        height: 34px;
        min-height: 34px;
      }

      .line-6 {
        white-space: nowrap;
        font-size: calc(var(--base-size) - 10px);
      }

      .line-7 {
        font-size: clamp(22px, 4.2vw, 32px);
      }

      .social-gap {
        height: 38px;
        min-height: 38px;
      }

      .line-8 {
        font-size: clamp(15px, 2.8vw, 19px);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }
    }

/* Glyph pull effect */
#glyph-pull-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: visible;
  }

  #glyph-pull-overlay .glyph-pull-char {
    position: fixed;
    display: inline-block;
    margin: 0;
    padding: 0;
    white-space: pre;
    transform-origin: 50% 55%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .hero.glyph-pull-source-hidden .typing-line {
    visibility: hidden;
  }
