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

  :root {
    --navy: #0d1b2e;
    --navy-mid: #122240;
    --text: #e8e4d8;
    --text-dim: #8a9bb5;
    --accent: #c8d8f0;
    --transition: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  html, body {
    height: 100%;
    background: var(--navy);
    color: var(--text);
    font-family: 'EB Garamond', Georgia, serif;
    overflow: hidden;
  }

  /* Background canvas for galaxy animation */
  #bg {
    position: fixed;
    inset: 0;
    width: 70%; height: 60%
    object-fit: cover;
    transform: translate(20%, 35%);
    /*    object-position: center;
    width: 100%; height: 100%;
        transition: opacity var(--transition);*/
  }

  .page {
    position: relative;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 4rem);
    z-index: 1;
  }

  /* TOP SECTION */
  .top {
    max-width: 480px;
  }

  h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
    color: var(--text);
  }

  .tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--text-dim);
    line-height: 1.5;
  }

  /* Cycling underlined spans */
  .cycle-wrap {
    display: inline;
    position: relative;
  }

  .cycle-text {
    display: inline-block;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    cursor: pointer;
    transition: opacity 300ms ease, transform 300ms ease;
  }

  .cycle-text.fade-out {
    opacity: 0;
    transform: translateY(-4px);
  }

  .cycle-text.fade-in {
    opacity: 0;
    transform: translateY(4px);
  }

  /* BOTTOM SECTION */
  .bottom {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  nav a {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text);
    text-decoration: none;
    width: fit-content;
    transition: color 200ms;
  }

  nav a:hover { color: var(--accent); }

  .logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.6rem;
  }

  .logo-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    transition: color 200ms;
  }

  .logo-link:hover { color: var(--accent); }

  .logo-icon {
    width: 18px; height: 18px;
    fill: currentColor;
    flex-shrink: 0;
  }

  /* Mobile tweaks */
  @media (max-width: 480px) {
    html, body { overflow: auto; }
    .page { height: auto; min-height: 100dvh; }
    #bg { position: fixed; }
  }