
:root {
  --bg: #000;
  --ink: #d9e7ff;
  --muted: #8aa0b7;
  --accent: #3be3ff;
  --accent-2: #ff365f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: .2px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, .03),
    rgba(255, 255, 255, .03) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 18px 0 8px;
  background: radial-gradient(800px 400px at 20% -10%, #0f1923 0%, #000 55%) no-repeat;
  padding: 20px;
  border-radius: var(--radius);
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent-2), var(--accent) 45%, #1e2935 60%, var(--accent-2));
  box-shadow: inset 0 0 0 3px #0b1117, 0 0 40px rgba(59, 227, 255, .25);
  position: relative;
  isolation: isolate;
}

.logo::after {
  content: "K";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #00131a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .15);
}

h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: .8px;
}

.sub { color: var(--muted); margin-top: 4px; }

section { margin: 28px 0; }
section h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 12px;
}

.card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.glitch::before { transform: translate(1px, 0); color: var(--accent); }
.glitch::after { transform: translate(-1px, 0); color: var(--accent-2); }

.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-top: 6px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  background: rgba(59, 227, 255, 0.05);
  font-size: 12px;
}

.btn:hover, .btn:focus {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 12px var(--accent);
}

footer {
  margin: 26px 0 60px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: radial-gradient(800px 400px at 20% 120%, #0f1923 0%, #000 55%) no-repeat;
  padding: 20px;
  border-radius: var(--radius);
}

.sig { opacity: .8; }

.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(59, 227, 255, .7),
    rgba(255, 54, 95, .4)
  );
  opacity: .6;
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
  transition: transform .35s ease, opacity .35s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(59, 227, 255, .8);
}

.timeline-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.thumb img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  display: block;
}

.date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 4px;
}

.title {
  font-size: 14px;
  margin: 0 0 4px;
}

.title a {
  color: var(--ink);
  text-decoration: none;
}

.title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.sort-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
}

.sort-label {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-size: 10px;
}

.sort-btn {
  border-radius: 999px;
  border: 1px solid rgba(59, 227, 255, .7);
  background: rgba(12, 20, 32, .9);
  color: var(--muted);
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 10px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.sort-btn:hover,
.sort-btn:focus-visible {
  outline: none;
  color: var(--ink);
  box-shadow: 0 0 10px rgba(59, 227, 255, .6);
  transform: translateY(-1px);
}

.sort-btn.active {
  background: radial-gradient(circle at 0 0, rgba(59, 227, 255, .4), transparent 55%);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(59, 227, 255, .7);
}

.timeline.sort-out .timeline-item {
  opacity: 0;
  transform: translateY(10px);
}

.timeline.sort-in .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .timeline-card {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 4px;
  }
  .timeline-item::before {
    left: -4px;
  }
  .logo { width: 48px; height: 48px; }
  footer { flex-direction: column; align-items: flex-start; }
  .sort-controls {
    flex-wrap: wrap;
  }
}