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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Fraunces', serif;
  font-weight: 400;
  line-height: 1.65;
  transition: background var(--t-base), color var(--t-base);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.headline-reveal .line span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.headline-reveal.visible .line span { transform: none; }
.headline-reveal .line:nth-child(1) span { transition-delay: 0.1s; }
.headline-reveal .line:nth-child(2) span { transition-delay: 0.2s; }
.headline-reveal .line:nth-child(3) span { transition-delay: 0.3s; }
