:root {
  --bg:           #030712;
  --text:         #FFFFFF;
  --accent:       #01f6d9;
  --border:       #111828;

  /* derived */
  --text-mute:    rgba(255, 255, 255, 0.55);
  --text-dim:     rgba(255, 255, 255, 0.32);
  --text-faint:   rgba(255, 255, 255, 0.18);
  --accent-soft:  rgba(1, 246, 217, 0.10);

  --display: 'Kode Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --body:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* atmospheric layer — very subtle radial lift at the top */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(1, 246, 217, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* a thin cyan accent line at the very top of the page — like an editor's active-tab strip */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* top strip — small breadcrumb back to timw.co */
header.strip {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.strip-mark {
  color: var(--text);
  font-weight: 500;
}
.strip-mark .slash {
  color: var(--accent);
  margin: 0 0.05em;
}
.strip-back {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.15s ease;
}
.strip-back:hover { color: var(--accent); }
.strip-back .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.strip-back:hover .arrow { transform: translateX(-3px); }

/* hero */
.hero {
  padding: 88px 0 72px;
}
.hero-eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 28px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--text-dim);
}

h1.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(72px, 14vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 36px 0;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0;
}
h1.wordmark .slash {
  color: var(--accent);
  margin-left: -0.05em;
}
h1.wordmark .cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.7em;
  background: var(--accent);
  margin-left: 0.18em;
  align-self: center;
  animation: blink 1.1s steps(2, jump-none) infinite;
  box-shadow: 0 0 12px var(--accent-soft);
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero-deck {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 540px;
  margin: 0;
  font-weight: 300;
}
.hero-deck strong {
  color: var(--text);
  font-weight: 500;
}

/* section heading above the list */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 0 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.section-head-label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.section-head-count {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.section-head-count .num {
  color: var(--text);
}

/* project list */
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.project {
  border-bottom: 1px solid var(--border);
}
.project a {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 32px 0 36px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project a::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px var(--accent-soft);
}
.project a:hover {
  padding-left: 16px;
}
.project a:hover::before {
  height: 60%;
}

.project-num {
  font-family: var(--display);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.project a:hover .project-num {
  color: var(--accent);
}

.project-body {
  min-width: 0;
}
.project-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.project a:hover .project-name {
  color: var(--accent);
}
.project-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0 0 12px 0;
  font-weight: 300;
  max-width: 520px;
}
.project-meta {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.project-meta .dot {
  color: var(--text-faint);
  margin: 0 8px;
}
.project-meta .status-active {
  color: var(--accent);
}

.project-arrow {
  font-family: var(--display);
  font-size: 22px;
  color: var(--text-faint);
  align-self: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease;
}
.project a:hover .project-arrow {
  color: var(--accent);
  transform: translateX(6px);
}

/* footer */
footer {
  padding: 96px 0 64px;
  border-top: 1px solid transparent;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: baseline;
}
.footer-text {
  font-size: 14px;
  color: var(--text-mute);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
  font-weight: 300;
}
.footer-text a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
  padding-bottom: 1px;
}
.footer-text a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-meta {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* page-load reveal */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.28s; }
.reveal-4 { animation-delay: 0.42s; }
.reveal-5 { animation-delay: 0.55s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* responsive */
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .project a {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 24px 0 26px;
  }
  .project-arrow {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    margin-top: 8px;
  }
  .project-name { font-size: 22px; }
  .project a:hover { padding-left: 0; }
  .project a::before { display: none; }
  .footer-row { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  h1.wordmark .cursor { animation: none; }
  .project a, .project a::before, .project-arrow, .project-num, .project-name { transition: none; }
}