:root {
  --bg: #0b0d10;
  --panel: rgba(255, 255, 255, 0.028);
  --glow: #6d5efc;
  --glow-2: #2ad4b8;
  --fg: #f4f5f7;
  --muted: #9aa1ad;
  --line: rgba(255, 255, 255, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* soft aurora, shared across every page */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(40rem 40rem at 28% 30%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 65%),
    radial-gradient(34rem 34rem at 72% 70%, color-mix(in srgb, var(--glow-2) 18%, transparent), transparent 62%);
  filter: blur(20px);
  z-index: 0;
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1%, 0) scale(1.08); }
}

/* ---------- nav ---------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}

.nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a:not(.brand) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav a:not(.brand):hover,
.nav a[aria-current="page"] { color: var(--fg); }

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--glow-2);
}

/* ---------- layout ---------- */
.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.center { text-align: center; display: grid; place-content: center; }

h1 {
  font-size: clamp(2.25rem, 7.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 600;
  background: linear-gradient(100deg, #ffffff 20%, #c9c4ff 55%, #9df0e2 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.lede { margin: 0; font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--muted); line-height: 1.65; }

.mark {
  display: inline-block;
  margin-bottom: 1.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  border-color: color-mix(in srgb, var(--glow-2) 55%, transparent);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

/* ---------- work cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--glow-2) 50%, transparent);
  transform: translateY(-3px);
}

/* CSS-drawn arena preview — no image asset needed */
.thumb {
  height: 10rem;
  position: relative;
  background: linear-gradient(180deg, #16191c, #08090b);
  overflow: hidden;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 229, 255, 0.14) 0 1px, transparent 1px 4px);
  opacity: 0.5;
}

.thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: 2px;
  height: 60%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(0, 229, 255, 0.85), transparent);
  box-shadow: 0 0 26px #00e5ff;
}

.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { margin: 0 0 0.45rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: rgba(154, 161, 173, 0.7);
}

footer a { color: var(--muted); }

a:focus-visible, .card:focus-visible {
  outline: 2px solid var(--glow-2);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .card:hover, .btn:hover { transform: none; }
}
