@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #000;
  --grey: #c9c9c9;
  --grey-dim: #7a7a7a;
  --grey-faint: #454545;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); height: 100%; }
body {
  font-family: 'Space Mono', monospace;
  color: var(--grey);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealText {
  from { opacity: 0; color: #000; }
  to   { opacity: 1; color: var(--grey); }
}

.site-header {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 100;
}
.site-header a {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--grey);
  text-decoration: none;
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards;
  animation-delay: .2s;
}
.site-header .big { font-size: 1.35em; }

.login-link {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 100;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-dim);
  text-decoration: none;
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards;
  animation-delay: .3s;
  transition: color .3s ease, letter-spacing .3s ease;
}
.login-link:hover { color: var(--grey); letter-spacing: 0.24em; }

.page-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  position: relative;
  z-index: 10;
}

.page-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.03em;
  color: #000;
  opacity: 0;
  animation: revealText 1.6s var(--ease) forwards;
  animation-delay: .4s;
}
.page-title .big { font-size: 1.3em; }

.page-sub {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--grey-dim);
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1s;
  max-width: 480px;
}

.back-link {
  margin-top: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-faint);
  text-decoration: none;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.3s;
  transition: color .3s ease;
}
.back-link:hover { color: var(--grey); }

.footer {
  position: fixed;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--grey-faint);
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 1.2s;
  z-index: 10;
}

/* Contact form */
.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: .9s;
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid var(--grey-faint);
  color: var(--grey);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color .3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--grey); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  background: var(--grey);
  color: #000;
  border: none;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  padding: 14px;
  cursor: pointer;
  transition: background .3s ease;
}
.contact-form button:hover { background: #fff; }

.form-message {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.form-message.success { color: var(--grey); }
.form-message.error { color: #b06a6a; }

.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--grey-dim);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: .5s;
}
.breadcrumb a { color: var(--grey-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--grey); }

.file-list {
  width: 100%;
  max-width: 480px;
  margin-top: 1rem;
  text-align: left;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: .7s;
}
.file-list ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.file-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--grey);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.file-list a:hover {
  border-color: var(--grey-faint);
  color: #fff;
  background: rgba(255,255,255,0.03);
}
.file-list .icon { opacity: .6; font-size: 0.9em; }

.empty-state {
  color: var(--grey-faint);
  font-size: 0.85rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: .7s;
}

@media (max-width: 640px) {
  .site-header { top: 20px; left: 20px; }
  .login-link { top: 20px; right: 20px; font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .3s !important; animation-delay: 0s !important; }
}
