@layer base {
  nav a {
    padding: 0.4rem 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    background: rgba(212, 168, 83, 0.05);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 100px;
    opacity: 0.7;
    transition:
      opacity 0.3s,
      color 0.3s;
  }
  nav a:hover {
    text-decoration: none;
    border-color: rgba(212, 168, 83, 0.35);
    opacity: 1;
  }

  /* SCROLL HINT */
  .scroll-hint {
    position: absolute;
    inset-block-end: 2.5rem;
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    inline-size: fit-content;
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 1.2s 1.8s forwards;
  }
  .scroll-hint-text {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--gold-dim);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0.4;
  }
  .scroll-hint-chevron {
    inline-size: 18px;
    block-size: 18px;
    border-block-end: 1px solid var(--gold-dim);
    border-inline-end: 1px solid var(--gold-dim);
    opacity: 0.3;
    transform: rotate(45deg);
    animation: chevronBounce 2.4s ease-in-out infinite;
  }
  @keyframes chevronBounce {
    0%,
    100% {
      transform: rotate(45deg) translateY(0);
      opacity: 0.3;
    }
    50% {
      transform: rotate(45deg) translateY(5px);
      opacity: 0.6;
    }
  }

  /* SUBTITLE */
  .hero-subtitle {
    margin-block-end: 1.2rem;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text);
    letter-spacing: 0.06em;
    opacity: 0;
    animation: fadeUp 1s 0.75s forwards;
  }

  /* FOOTER */
  .footer-section {
    padding: 4rem 2rem;
    text-align: center;
  }
  .footer-credit-line {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--gold-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }
  .footer-credit-link {
    color: var(--gold-dim);
    text-decoration: none;
    border-block-end: 1px solid rgba(154, 122, 61, 0.35);
    transition:
      border-color 0.3s,
      color 0.3s;
  }
  .footer-home-line {
    margin-block-start: 0.5rem;
    font-size: 0.85rem;
  }
  .footer-home-link {
    color: rgba(196, 200, 212, 0.5);
    text-decoration: none;
    transition: color 0.3s;
  }

  /* RESPONSIVE */
  @media (max-width: 600px) {
    body {
      font-size: 16px;
    }
    .hero {
      min-block-size: auto;
      padding: 6rem 0 4rem;
    }
    .hero-content {
      padding: 1.5rem;
    }
    .hero h1 {
      margin-block-end: 1rem;
      font-size: 2rem;
    }
    .hero-sub {
      font-size: 1rem;
    }
    .hero-label {
      margin-block-end: 1rem;
      font-size: 0.6rem;
    }
    .hero-subtitle {
      margin-block-end: 0.8rem;
      font-size: 0.72rem;
    }
    .scroll-hint {
      position: relative;
      inset-block-end: auto;
      inset-inline-start: auto;
      inset-inline-end: auto;
      margin: 2rem auto 0;
    }
    section {
      padding: 3rem 1.2rem;
    }
    .case-study {
      padding: 1.5rem;
    }
    .crossbar-block {
      padding: 2rem 1.5rem;
    }
    .protocol {
      padding: 2rem 1.5rem;
    }
    .crossbar-endpoints {
      flex-direction: column;
      gap: 1rem;
    }
    .canvas-section canvas {
      block-size: 250px;
    }
    .canvas-desc {
      padding: 0 1rem;
      font-size: 0.82rem;
    }
    .protocol-step {
      flex-direction: column;
      gap: 0.75rem;
    }
    nav {
      padding: 1rem 1.2rem;
    }
    .explore-btn {
      padding: 0.45rem 1rem;
      font-size: 0.62rem;
    }
  }
}
