:root {
  --bg: #0a0a09;
  --fg: #ececE7;
  --muted: #8a8a84;
  --line: #2c2c29;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* subtle film-grain overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 8vh, 5rem) clamp(1.25rem, 6vw, 3rem);
  gap: clamp(1rem, 2.5vh, 1.5rem);
}

.logo {
  width: clamp(150px, 26vw, 230px);
  height: auto;
  display: block;
  animation: rise 900ms ease-out both;
  filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  transition: filter 600ms ease;
}

.logo:hover {
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.16));
}

.rule {
  width: 40px;
  height: 1px;
  margin: 0.25rem 0;
  border: none;
  background: var(--line);
  animation: rise 900ms 140ms ease-out both;
}

.bio {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  color: var(--fg);
  animation: rise 900ms 200ms ease-out both;
}

.lineart {
  width: clamp(44px, 7vw, 64px);
  height: auto;
  display: block;
  animation: rise 900ms 260ms ease-out both;
}

.contact {
  margin-top: clamp(0.5rem, 2vh, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: rise 900ms 320ms ease-out both;
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.contact-link {
  color: var(--fg);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color 200ms ease, border-color 200ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #fff;
  border-color: var(--fg);
}

.footer {
  flex-shrink: 0;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .rule,
  .bio,
  .lineart,
  .contact {
    animation: none;
  }
}
