/* === HOME: BRUTALIST TERMINAL === */
/* For builders. Dark. Dense. Unapologetic. */

body.home-section {
  --home-accent: var(--green);
  --home-bg: #0a0a0a;
  --home-surface: #111111;
  --home-text: #e8e8e8;
  --home-muted: #888888;
  --home-dim: #333333;
  font-family: var(--font-mono);
  background: var(--home-bg);
  color: var(--home-text);
}

/* Override base colors for dark mode homepage */
body.home-section main {
  background: var(--home-bg);
}

body.home-section .container {
  max-width: 1200px;
}

/* Scanline overlay */
body.home-section::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* Noise texture */
body.home-section::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 999;
}

/* === HERO: MASSIVE STATEMENT === */
.hero {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(2rem, 6vw, 4rem);
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--home-dim);
}

.hero-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  border: 2px solid var(--home-accent);
  background: #fafafa;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--home-text);
  text-transform: uppercase;
}

.hero-name span {
  display: block;
}

.hero-name .first,
.hero-name .last {
  color: var(--home-accent);
}

.hero-name .middle {
  color: var(--home-text);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--home-text);
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0;
}

.hero-tagline .cmd-prompt {
  color: var(--home-accent);
  margin-right: 0.5em;
}

/* Claude's response */
.hero-response {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--home-muted);
  max-width: 520px;
  margin: 0;
  padding-left: 1.5em;
  border-left: 2px solid var(--home-dim);
}

.hero-statement strong {
  color: var(--home-text);
  font-weight: 500;
}

/* === MANIFEST: WHAT I'M SHIPPING === */
.manifest {
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--home-dim);
}

.manifest-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.manifest-pulse {
  width: 8px;
  height: 8px;
  background: var(--home-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--home-accent);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.manifest-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--home-muted);
}

/* Project cards - matching Building page layout */
.manifest-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--home-dim);
  background: var(--home-surface);
}

.manifest .project-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--home-dim);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  position: relative;
}

.manifest .project-card:last-child {
  border-bottom: none;
}

.manifest .project-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.manifest a.project-card,
.manifest a.project-card:hover,
.manifest a.project-card:focus,
.manifest a.project-card:active {
  text-decoration: none;
}

.manifest .project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.15s ease;
}

.manifest .project-card:hover::before {
  background: var(--home-accent);
}

.manifest .project-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.manifest .project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.manifest .project-header h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--home-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.manifest .project-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.manifest .project-status.live {
  color: var(--home-accent);
}

.manifest .project-status.live::before {
  content: '● ';
}

.manifest .project-status.building {
  color: #f59e0b;
}

.manifest .project-status.building::before {
  content: '◑';
  display: inline-block;
  margin-right: 0.25em;
  animation: building-pulse 1.5s ease-in-out infinite;
}

@keyframes building-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.manifest .project-content p {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--home-muted);
  line-height: 1.5;
  margin: 0;
}

.manifest .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 0.5rem;
}

.manifest .project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--home-muted);
  white-space: nowrap;
  text-transform: lowercase;
}

.manifest .project-tags span::before {
  content: '#';
  color: var(--home-muted);
}

/* === BIO STRIP === */
.bio-strip {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--home-dim);
}

.bio-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.bio-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--home-muted);
}

.bio-text strong {
  color: var(--home-text);
  font-weight: 500;
}

.bio-text p {
  margin: 0 0 1rem;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.bio-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.bio-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--home-dim);
  color: var(--home-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bio-link:first-child {
  border-top: 1px solid var(--home-dim);
}

.bio-link:hover {
  color: var(--home-accent);
  text-decoration: none;
}

a.bio-link,
a.bio-link:hover,
a.bio-link:focus,
a.bio-link:active {
  text-decoration: none;
}

.bio-link span:last-child {
  color: var(--home-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.bio-link:hover span:last-child {
  color: var(--home-accent);
  transform: translateX(4px);
}

/* === CTA BLOCK === */
.cta-block {
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  z-index: 1;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* X/Twitter button - uses standard cta-btn pattern */
.cta-x {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--home-text);
  color: var(--home-bg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  transition: all 0.15s ease;
}

.cta-x:hover {
  background: var(--home-accent);
  color: var(--home-bg);
  text-decoration: none;
}

a.cta-x,
a.cta-x:hover,
a.cta-x:focus,
a.cta-x:active {
  text-decoration: none;
}

.cta-x svg {
  flex-shrink: 0;
}

.cta-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--home-muted);
}

.cta-note::before {
  content: '// ';
  color: var(--home-muted);
}

/* === ANIMATIONS === */
.hero-identity {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-tagline {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.25s;
  opacity: 0;
}

.hero-response {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.35s;
  opacity: 0;
}

.manifest {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.bio-strip {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.cta-block {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

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

/* Project cards stagger */
.manifest .project-card {
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}

.manifest .project-card:nth-child(1) { animation-delay: 0.5s; }
.manifest .project-card:nth-child(2) { animation-delay: 0.6s; }
.manifest .project-card:nth-child(3) { animation-delay: 0.7s; }
.manifest .project-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .bio-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .manifest .project-tags {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-identity {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-avatar {
    width: 80px;
    height: 80px;
  }

  .hero-name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

