/* Homepage hero: soft color fields + frosted panel so blur is visible */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 10vw, 6.5rem) var(--space-8);
  border-bottom: 1px solid rgba(213, 218, 226, 0.7);
  background: linear-gradient(180deg, #eef2f6 0%, var(--bg) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.hero::before {
  width: min(52vw, 34rem);
  height: min(52vw, 34rem);
  top: -12%;
  right: -6%;
  background: rgba(17, 99, 247, 0.35);
}

.hero::after {
  width: min(42vw, 26rem);
  height: min(42vw, 26rem);
  bottom: -18%;
  left: -4%;
  background: rgba(23, 35, 49, 0.2);
}

.hero__glass {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--glass);
  backdrop-filter: saturate(1.25) blur(var(--blur-glass));
  -webkit-backdrop-filter: saturate(1.25) blur(var(--blur-glass));
  box-shadow: var(--shadow-soft);
}

.hero__identity {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-5);
}

.hero__identity span {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.hero__title {
  max-width: 14ch;
  margin-bottom: var(--space-5);
}

.hero__title .line {
  display: block;
}

.hero__title .line--accent {
  color: var(--accent);
}

.hero__lede {
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

#experience {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#experience::before {
  content: "";
  position: absolute;
  inset: 10% auto auto 55%;
  width: min(40vw, 22rem);
  height: min(40vw, 22rem);
  z-index: -1;
  border-radius: 50%;
  background: rgba(17, 99, 247, 0.16);
  filter: blur(36px);
  pointer-events: none;
}

.project-feature__body {
  padding: var(--space-5);
  border: 1px solid rgba(213, 218, 226, 0.75);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
}

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  max-width: 40rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.work-featured {
  margin-bottom: var(--space-7);
}

.work-list-wrap {
  margin-top: var(--space-7);
}

.work-list-wrap > h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-weight: 600;
}

/* Project detail */

.project-hero {
  padding-block: var(--space-7) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.project-cover {
  position: relative;
  display: block;
  width: 100%;
  margin-top: var(--space-6);
  padding: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}

.project-cover:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.detail-section {
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--border);
}

.detail-section h2 {
  margin-bottom: var(--space-4);
}

.detail-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 800px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.back-link:hover {
  color: var(--text);
}

.detail-section h2 .fa-solid,
.detail-section h2 .fa-brands,
.project-hero h2 .fa-solid {
  margin-right: 0.45rem;
  color: var(--accent);
}

.back-link i {
  margin-right: 0.35rem;
}

.experience-note {
  margin-top: var(--space-6);
}

.prose-list {
  color: var(--text-muted);
}

.prose-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Mobile refinements */

@media (max-width: 599px) {
  .section {
    padding-block: var(--space-7);
  }

  .hero {
    padding-block: 3rem var(--space-7);
  }

  .project-feature {
    padding-block: var(--space-5);
  }

  .cred-strip {
    flex-direction: column;
    gap: var(--space-2);
  }

  .cred-strip li + li {
    padding-left: 0;
  }

  .cred-strip li + li::before {
    display: none;
  }
}
