/* Home page. Chrome lives in /css/site.css. */

.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.hero__blob--blue {
  width: min(46vw, 520px);
  height: min(46vw, 520px);
  background: rgba(49, 92, 140, 0.18);
  top: -10%;
  right: -8%;
}
.hero__blob--coral {
  width: min(38vw, 420px);
  height: min(38vw, 420px);
  background: rgba(189, 91, 72, 0.14);
  top: 30%;
  left: -10%;
}
.hero__blob--green {
  width: min(30vw, 340px);
  height: min(30vw, 340px);
  background: rgba(39, 96, 53, 0.12);
  bottom: -12%;
  right: 20%;
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#c8c5bf 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__intro { max-width: 44rem; }
.hero .eyebrow { display: inline-block; margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  letter-spacing: -0.04em;
  margin: 0 0 1.3rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-600);
  max-width: 40rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink-400);
}
.hero__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.hero__meta a:hover { color: var(--ink); }
.hero__meta svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--accent-coral);
}

.projects {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  background: var(--surface-100);
  border-top: 1px solid var(--surface-200);
  border-bottom: 1px solid var(--surface-200);
}
.projects__head { max-width: 42rem; margin-bottom: 2.5rem; }
.projects__head .eyebrow { display: inline-block; }
.projects__head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0;
}

.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--surface-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(26, 26, 26, 0.055);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-coral);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(26, 26, 26, 0.1);
}
.project-card__body {
  padding: 1.45rem 1.4rem 1.45rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.project-card__tag {
  width: fit-content;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-600);
  background: var(--surface);
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-pill);
  padding: 0.26rem 0.62rem;
}
.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.project-card h3 a { text-decoration: none; }
.project-card h3 a:hover { color: var(--accent-coral); }
.project-card p {
  margin: 0;
  color: var(--ink-400);
  font-size: 0.95rem;
  flex: 1;
}

.projects__more {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
}
.projects__more a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}
.projects__more a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

@media (max-width: 720px) {
  .hero {
    padding: clamp(3.25rem, 14vw, 5rem) 0 clamp(3rem, 12vw, 4.5rem);
  }
  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .hero__actions .btn-coral {
    grid-column: 1 / -1;
    width: 100%;
  }
  .hero__actions .btn-primary,
  .hero__actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .projects__head { margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card:hover,
  .btn:hover {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}
