/* ============================================
   HOME 2 — WesBos-inspired, bold identity
   ============================================ */

/* HERO — dark, split layout */
.h2-hero-full {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -2rem;
  background: #1a1a2e;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 80vh;
  overflow: hidden;
}

.h2-hero-text {
  padding: 6rem 4rem 6rem 8vw;
  max-width: 640px;
  justify-self: end;
}

.h2-hero-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: #f0f0f0;
  letter-spacing: -0.03em;
}

.h2-highlight {
  color: var(--color-orange);
}

.h2-hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: rgba(240,240,240,0.75);
  margin: 0 0 1rem;
}

.h2-hero-detail {
  font-size: 0.85rem;
  color: rgba(240,240,240,0.4);
  font-family: 'IBM Plex Mono', monospace;
  margin: 0 0 2.5rem;
}

.h2-hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.h2-hero-links a {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.3);
  color: #f0f0f0;
  transition: all 0.2s ease;
}

.h2-hero-links a:first-child {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: white;
}

.h2-hero-links a:first-child:hover {
  background: #d66a47;
  border-color: #d66a47;
}

.h2-hero-links a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

/* pixel art — decorative right side */
.h2-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.h2-hero-art img {
  width: clamp(300px, 30vw, 500px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 60px rgba(239, 125, 87, 0.2));
}

/* SECTIONS */
.h2-section:first-of-type {
  border-top: none;
}

.h2-section {
  padding: 3rem 0;
  border-top: 2px solid var(--color-subtle);
}

.h2-section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-orange);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  margin: 0 0 2rem;
}

/* POSTS */
.h2-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.h2-post-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-subtle);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.h2-post-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.h2-post-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-subtle);
}

.h2-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h2-nerd-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-family: 'IBM Plex Mono', monospace;
}

.h2-post-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.h2-post-body h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--color-headers);
}

.h2-post-card:hover h3 {
  color: var(--color-orange);
}

.h2-post-body p {
  font-size: 0.85rem;
  color: var(--color-dim);
  line-height: 1.4;
  margin: 0 0 auto;
}

.h2-post-body time {
  font-size: 0.75rem;
  color: var(--color-dimmer);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 0.75rem;
}

.h2-all-link {
  display: block;
  text-align: right;
  color: var(--color-orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.h2-all-link:hover {
  text-decoration: underline;
}

/* SERVICES */
.h2-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.h2-service {
  padding: 1.5rem;
  border-left: 3px solid var(--color-orange);
}

.h2-service h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--color-headers);
}

.h2-service p {
  font-size: 0.9rem;
  color: var(--color-dim);
  line-height: 1.5;
  margin: 0;
}

/* ABOUT */
.h2-about {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.h2-about p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-foreground);
  margin: 0 0 1rem;
}

/* CLIENTS */
.h2-clients {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.h2-clients:hover {
  opacity: 1;
}

.h2-clients img {
  height: 30px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.h2-clients a:hover img {
  filter: grayscale(0%);
}

/* STATS */
.h2-stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
}

.h2-stat {
  text-align: center;
}

.h2-stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
}

.h2-stat-label {
  font-size: 0.8rem;
  color: var(--color-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'IBM Plex Mono', monospace;
}

/* CONTACT */
.h2-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.h2-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-foreground);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.h2-contact-item:hover {
  color: var(--color-orange);
}

.h2-contact-item i {
  width: 18px;
  height: 18px;
  color: var(--color-orange);
}

.h2-piva {
  font-size: 0.8rem;
  color: var(--color-dimmer);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 1rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .h2-hero-full {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .h2-hero-text {
    padding: 5rem 1.5rem 2rem;
    max-width: none;
    justify-self: center;
  }

  .h2-hero-art {
    padding: 0 2rem 3rem;
  }

  .h2-hero-art img {
    width: 250px;
  }

  .h2-hero-links {
    justify-content: center;
  }

  .h2-hero-sub {
    max-width: none;
  }

  .h2-hero-links {
    justify-content: center;
  }

  .h2-posts {
    grid-template-columns: 1fr;
  }

  .h2-services {
    grid-template-columns: 1fr;
  }

  .h2-stats {
    gap: 2rem;
  }

  .h2-stat-num {
    font-size: 2rem;
  }

  .h2-contact {
    flex-direction: column;
    gap: 1rem;
  }

  .h2-clients {
    gap: 1.5rem;
    justify-content: center;
  }
}
