:root {
  --scanline-alpha: 0.06;
}

body {
  overflow-x: hidden;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 998;
  opacity: 0.4;
}

/* ── LAYOUT ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER / HERO ── */
header {
  padding: 72px 0 0;
  position: relative;
}

.site-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.4s ease both;
}

.site-tag::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  animation: fadeIn 0.5s ease 0.1s both;
}

.hero-name .wtf {
  color: var(--accent2);
  display: inline-block;
}

.hero-name .domain {
  display: block;
  font-size: 0.48em;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.hero-bio {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  font-style: italic;
  animation: fadeIn 0.5s ease 0.2s both;
}

.hero-bio strong {
  color: var(--text);
  font-style: normal;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeIn 0.5s ease 0.3s both;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: none;
}

.btn-primary {
  background: var(--accent);
  color: #080b0f;
  font-weight: 600;
}

.btn-primary:hover {
  background: #00ffb3;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0,255,157,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--dim);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── TERMINAL TICKER ── */
.ticker {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.5s ease 0.4s both;
}

.ticker-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: scroll var(--ticker-duration, 28s) linear infinite;
  will-change: transform;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--ticker-loop-width, 50%))); }
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 32px;
  flex-shrink: 0;
}

.ticker-item span { color: var(--accent); margin-right: 8px; }

.ticker-item a {
  color: var(--muted);
  text-decoration: none;
  cursor: none;
  transition: color 0.2s;
}

.ticker-item a:hover {
  color: var(--accent);
}

/* ── POSTS SECTION ── */
.section {
  padding: 72px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Featured post */
.post-featured {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  background: var(--surface);
  margin-bottom: 16px;
  text-decoration: none;
  display: block;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  cursor: none;
  animation: fadeIn 0.5s ease 0.5s both;
}

.post-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,157,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.post-featured:hover {
  border-color: rgba(0,255,157,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,157,0.1);
}

.post-featured:hover::before { opacity: 1; }

.post-featured-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,255,157,0.1);
  border: 1px solid rgba(0,255,157,0.2);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.post-featured-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-featured-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  display: flex;
  gap: 16px;
  align-items: center;
}

.post-meta .tag {
  color: var(--accent3);
  background: rgba(255,214,10,0.08);
  border: 1px solid rgba(255,214,10,0.15);
  padding: 2px 8px;
  border-radius: 3px;
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
  animation: fadeIn 0.4s ease both;
}

.post-item:nth-child(1) { animation-delay: 0.55s; }
.post-item:nth-child(2) { animation-delay: 0.6s; }
.post-item:nth-child(3) { animation-delay: 0.65s; }
.post-item:nth-child(4) { animation-delay: 0.7s; }
.post-item:nth-child(5) { animation-delay: 0.75s; }
.post-item:nth-child(6) { animation-delay: 0.8s; }

.post-item:hover .post-item-title { color: var(--accent); }
.post-item:hover { padding-left: 8px; }

.post-item-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.post-item-title {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: color 0.2s;
  line-height: 1.4;
}

.post-item-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.post-item--soon {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ── PROJECTS / LINKS ── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  cursor: none;
  animation: fadeIn 0.5s ease 0.6s both;
}

.link-card:hover {
  border-color: var(--dim);
  background: var(--surface2);
  transform: translateY(-2px);
}

.link-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.link-info-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.link-info-desc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
}

/* Special "featured project" card */
.link-card.featured-project {
  border-color: rgba(0,255,157,0.2);
  background: rgba(0,255,157,0.04);
  grid-column: 1 / -1;
}

.link-card.featured-project:hover {
  border-color: rgba(0,255,157,0.4);
  box-shadow: 0 0 24px rgba(0,255,157,0.08);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-sig {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.footer-sig span { color: var(--accent2); }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  cursor: none;
}

.footer-links a:hover { color: var(--accent); }

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

/* ── NEOFETCH ── */
.nf-card {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s;
  animation: fadeIn 0.5s ease 0.35s both;
}

.nf-card:hover { border-color: rgba(0,255,157,0.2); }

.nf-inner {
  display: flex;
  gap: 32px;
  padding: 24px 28px;
  font-family: var(--font-mono);
  overflow-x: auto;
}

.nf-ascii {
  color: var(--accent);
  opacity: 0.6;
  margin: 0;
  flex-shrink: 0;
  font-size: 0.52rem;
  line-height: 1.45;
  user-select: none;
}

.nf-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.65rem;
  line-height: 1.5;
  padding-top: 1px;
}

.nf-head    { font-size: 0.8rem; margin-bottom: 1px; }
.nf-user    { color: var(--accent); font-weight: 600; }
.nf-at      { color: var(--dim); }
.nf-host    { color: var(--accent); font-weight: 600; }
.nf-divider { color: var(--dim); margin-bottom: 2px; }
.nf-line    { color: var(--muted); }
.nf-key     { color: var(--accent3); }
.nf-colon   { color: var(--dim); }

.nf-swatches { display: flex; gap: 5px; margin-top: 10px; }
.nf-swatch   { width: 13px; height: 13px; border-radius: 2px; }
.nf-swatch:nth-child(1) { background: var(--accent); }
.nf-swatch:nth-child(2) { background: var(--accent2); }
.nf-swatch:nth-child(3) { background: var(--accent3); }
.nf-swatch:nth-child(4) { background: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  header { padding: 48px 0 0; }
  .hero-name { font-size: 2.8rem; }
  .post-item-tag { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
  .nf-ascii { display: none; }
  .nf-inner { padding: 16px 20px; }
}

