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

:root {
  --bg: #0a0a0a;
  --fg: #f0ece4;
  --accent: #1a7a3c;
  --accent-bright: #25b357;
  --accent-dim: #0f4a24;
  --muted: #333;
  --muted-text: #666;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.07);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  z-index: 1;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem 10vw;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-bright);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 179, 87, 0.7); }
  50%       { box-shadow: 0 0 0 6px rgba(37, 179, 87, 0); }
}

.big {
  font-family: 'Syne', sans-serif;
  font-size: clamp(4rem, 13vw, 11rem);
  font-weight: 800;
  line-height: 0.85;
  color: var(--fg);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.big .dot { color: var(--accent-bright); }

.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 2rem 0 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.55s;
}

/* ── Grid ── */
.site-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.6rem;
  width: 100%;
  max-width: min(1100px, 90vw);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.7s;
}

.site-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(4px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.site-link:hover {
  border-color: var(--accent-dim);
  background: rgba(26, 122, 60, 0.09);
}

.site-link:hover .sl-arrow {
  color: var(--accent-bright);
  opacity: 1;
}

.sl-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  width: 2rem;
  text-align: center;
}

.sl-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.sl-label {
  font-size: 0.82rem;
  color: var(--fg);
  font-weight: 700;
}

.sl-sub {
  font-size: 0.62rem;
  color: var(--muted-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sl-arrow {
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  transition: color 0.2s, opacity 0.2s;
}

.corner {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

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

@media (max-width: 600px) {
  .container { padding: 4rem 6vw; }
  .site-links { grid-template-columns: 1fr; }
}
