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

body {
  background: #0a0a08;
  color: #e8e4d4;
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: #f0c060;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
  mix-blend-mode: difference;
}

canvas#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.4;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}

.badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f0c060;
  border: 1px solid #f0c06055;
  padding: 6px 14px;
  margin-bottom: 48px;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeIn { to { opacity: 1; } }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.intro {
  font-size: 15px;
  color: #9e9a88;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  animation: fadeIn 0.8s 0.2s ease forwards;
  opacity: 0;
}

.headline {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(52px, 12vw, 108px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -4px;
  color: #e8e4d4;
  margin-bottom: 8px;
  animation: slideUp 0.9s 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.headline .accent {
  color: #f0c060;
  display: block;
}

.tagline {
  font-size: 13px;
  color: #6e6b5a;
  line-height: 1.9;
  margin-top: 32px;
  margin-bottom: 88px;
  max-width: 480px;
  animation: fadeIn 0.8s 0.6s ease forwards;
  opacity: 0;
}

.tagline em {
  color: #b0aa90;
  font-style: italic;
}

.etymology {
  font-size: 11px;
  color: #4a4840;
  font-style: italic;
  letter-spacing: 0.3px;
  margin-bottom: 56px;
  max-width: 480px;
  animation: fadeIn 0.8s 0.75s ease forwards;
  opacity: 0;
}

.section-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #4a4840;
  margin-bottom: 28px;
  animation: fadeIn 0.8s 0.8s ease forwards;
  opacity: 0;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: fadeIn 0.8s 1s ease forwards;
  opacity: 0;
}

@media (max-width: 520px) {
  .links-grid { grid-template-columns: 1fr; }
}

.link-card {
  border: 1px solid #2a2820;
  padding: 30px 26px 26px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.16,1,0.3,1);
  background: #0f0f0c;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}

.link-card:hover::before { transform: scaleX(1); }

.link-card:hover {
  border-color: #3a3830;
  transform: translateY(-4px);
}

.link-card .tag {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.link-card .name {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 3vw, 24px);
  color: #e8e4d4;
  margin-bottom: 12px;
  display: block;
}

.link-card .desc {
  font-size: 12px;
  color: #999788;
  line-height: 1.7;
}

.link-card .arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  font-family: 'Space Mono', monospace;
}

.link-card:hover .arrow { opacity: 1; transform: translate(3px, -3px); }

.card-tswira  { --accent: #60b0f0; }
.card-dirassa { --accent: #c060f0; }
.card-aymane  { --accent: #60f0a0; }
.card-coming  { --accent: #f06060; border-style: dashed; cursor: default; }

.footer-line {
  margin-top: 88px;
  border-top: 1px solid #1e1c18;
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  animation: fadeIn 0.8s 1.2s ease forwards;
  opacity: 0;
}

.footer-text {
  font-size: 11px;
  color: #3a3830;
  line-height: 2;
}

.big-fchkl {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 7vw, 64px);
  color: #1a1814;
  letter-spacing: -3px;
  user-select: none;
}

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