: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;
}

.hero-links {
  margin-top: 18px;
  animation: fadeIn 0.5s ease 0.35s 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(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0,255,157,0.35);
  text-underline-offset: 0.18em;
  cursor: none;
  transition: color 0.2s;
}

.ticker-item a:hover,
.ticker-item a:focus-visible {
  color: var(--accent);
  text-decoration-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 { transform: translateX(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);
}

/* Stagger link cards within each grid */
.link-card:nth-child(1) { animation-delay: 0.60s; }
.link-card:nth-child(2) { animation-delay: 0.66s; }
.link-card:nth-child(3) { animation-delay: 0.72s; }
.link-card:nth-child(4) { animation-delay: 0.78s; }
.link-card:nth-child(5) { animation-delay: 0.84s; }

/* 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);
}

/* ── LINKS GROUPS ── */
.links-group {
  margin-bottom: 28px;
}

.links-group-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Apps card accent (pink) */
.link-card--apps.featured-project {
  border-color: rgba(255, 77, 109, 0.2);
  background: rgba(255, 77, 109, 0.03);
}

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

/* ── 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;
  flex-wrap: wrap;
  row-gap: 8px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0,255,157,0.3);
  text-underline-offset: 0.2em;
  letter-spacing: 0.06em;
  transition: color 0.2s, text-decoration-color 0.2s;
  cursor: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

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

/* ── SEE ALL LINK ── */
.post-see-all {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(0,255,157,0.3);
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-color 0.2s;
  cursor: none;
}

.post-see-all:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ── NEOFETCH ── */
.nf-card {
  margin-top: 0;
  margin-bottom: 40px;
  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 {
  padding: 24px 28px;
  font-family: var(--font-mono);
}

.visitor-inner {
  display: grid;
  gap: 10px;
  font-size: 0.65rem;
  line-height: 1.5;
}

.visitor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.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; }

.visitor-refresh-btn {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  cursor: none;
  transition: border-color 0.2s, color 0.2s;
}

.visitor-refresh-btn:hover {
  color: var(--text);
  border-color: rgba(0,255,157,0.3);
}

.visitor-desc {
  margin: 0;
  color: var(--dim);
  font-size: 0.62rem;
}

.visitor-lines {
  display: grid;
  gap: 4px;
}

.visitor-line {
  display: grid;
  grid-template-columns: minmax(88px, 124px) minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px;
  color: var(--muted);
}

.visitor-key {
  color: var(--accent3);
  flex-shrink: 0;
}

.visitor-line .nf-colon {
  display: none;
}

.visitor-line span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#visitor-user-agent {
  font-size: 0.6rem;
  line-height: 1.35;
  max-width: 62%;
}

/* ── 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; }
  .hero-links { gap: 10px 14px; }
  .nf-inner { padding: 16px 20px; }
  .visitor-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .visitor-line span:last-child { text-align: left; max-width: 100%; }
  #visitor-user-agent { max-width: 100%; }
}
