/* Homepage refresh. Other portfolio pages retain their existing styles. */
.home {
  --clr-bg: #fafaf9;
  --clr-surface: #f0f1f7;
  --clr-text: #34343d;
  --clr-text-muted: #5d6070;
  --clr-border: #dedfea;
  background: var(--clr-bg);
  position: relative;
  isolation: isolate;
}

/* Center the navigation links inside a light pill. */
.home .nav {
  inset: 24px auto auto 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  justify-content: center;
  gap: 32px;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.home .nav.scrolled {
  border-color: var(--clr-border);
  background: rgba(255, 255, 255, .92);
}
/* Frame the flower tightly while preserving the supplied image file. */
.home .hero__logo {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0 auto 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.home .hero__logo img {
  position: absolute;
  width: 34px;
  height: auto;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.home .nav__links { gap: 28px; }
.home .nav__links a { color: var(--clr-text); font-size: 13px; }
.home .nav__toggle { display: none; }
.home .home__contact {
  position: absolute;
  top: 42px;
  right: 24px;
  z-index: 101;
  align-items: center;
  gap: 20px;
}
@media (max-width: 900px) {
  .home .home__contact { top: 86px; right: 24px; gap: 16px; }
}


/* The hero mesh fades smoothly into the neutral project background. */
.home .hero {
  min-height: 72svh;
  padding: 120px 24px 80px;
  cursor: auto;
}
.home::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0 0 auto;
  height: 120svh;
  background:
    radial-gradient(ellipse 32% 35% at 75% 30%, rgba(98, 203, 249, .83), transparent 100%),
    radial-gradient(ellipse 27% 32% at 57% 43%, rgba(164, 220, 255, .65), transparent 100%),
    radial-gradient(ellipse 32% 31% at 20% 54%, rgba(201, 158, 248, .68), transparent 100%),
    radial-gradient(ellipse 29% 25% at 43% 66%, rgba(225, 188, 254, .57), transparent 100%);
  filter: blur(30px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.home .hero .container { text-align: center; }
.home .hero__tagline-wrap { max-width: 1000px; margin-inline: auto; text-align: center; }
.home .hero__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.home .hero__headline {
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.08;
  min-height: 0;
  margin-bottom: 28px;
  text-wrap: balance;
}
.home .hero__tagline {
  display: inline-block;
  font-size: .6em;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.3;
  margin-top: 12px;
}
.home .hero__sub { font-weight: 400; line-height: 1.8; }
.home .hero__location { display: block; margin-top: 4px; }

.home .section { padding-block: 96px; }
.home #work { padding-top: 0; scroll-margin-top: 100px; }
.home .section__header { text-align: center; margin-bottom: 56px; }
.home .label { text-transform: uppercase; letter-spacing: .13em; }
.home .section__header h2 { font-weight: 500; letter-spacing: -.045em; }
.home .projects { gap: 64px 36px; }
.home .project__image-wrap { border-radius: 16px; }
.home .project__meta { padding-top: 8px; }
.home .project__tags { gap: 8px; }
.home .project__tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(100deg, #8b35c4 0%, #7046c6 35%, #3569c0 65%, #087da5 100%);
  position: relative;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7046c6;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.5;
}
.home .project__tags .tag::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(100deg, #8b35c4 0%, #7046c6 35%, #3569c0 65%, #087da5 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.home .project__tags .tag + .tag::before { content: none; }

.home .project__title { font-weight: 500; font-size: 25px; letter-spacing: -.035em; }
.home .project__desc { font-weight: 400; }
.home #testimonials { background: transparent; }
/* One wide quote above two smaller cards, following the bento reference. */
.home .testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home .testimonial {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 44px);
  gap: 32px;
  border: 1px solid #dcdde5;
  border-radius: 24px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 4px 18px rgba(36, 38, 50, .05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.home .testimonial:first-child { grid-column: 1 / -1; }
.home .testimonial:last-child { border: 1px solid #dcdde5; }
.home .testimonial__quote {
  max-width: 850px;
  font-weight: 400;
  line-height: 1.7;
}
.home .testimonial__callout {
  color: #52518b;
  background: linear-gradient(100deg, #8b35c4 0%, #7046c6 35%, #3569c0 65%, #087da5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}
.home .testimonial:first-child .testimonial__callout {
  font-size: clamp(26px, 3.4vw, 40px);
}
.home .testimonial__author { margin-top: auto; padding-left: 0; }

.home .callout-star { background: none; -webkit-text-fill-color: currentColor; color: #6961a5; }
.home .footer { background: transparent; border-top: 0; }
.home .footer__inner {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 20px;
}
.home .footer__links { flex-wrap: wrap; justify-content: center; }

@media (max-width: 640px) {
  .home .nav { top: 16px; width: max-content; gap: 20px; padding: 8px 20px; }
  .home .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .home .nav__links a { padding: 10px 0; border: 0; font-size: 12px; }
  .home .hero { min-height: 72svh; padding: 110px 4px 48px; }
  .home::before { filter: blur(24px); }
  .home .hero__headline { font-size: clamp(40px, 10vw, 60px); }
  .home .hero__name { font-size: 12px; margin-bottom: 24px; }
  .home .hero__sub { font-size: 14px; }
  .home .section { padding-block: 64px; }
  .home .projects { gap: 40px; }
  .home .testimonials { grid-template-columns: 1fr; }
  .home .testimonial { border-radius: 20px; gap: 24px; }
  .home .footer__inner { flex-direction: column; gap: 20px; text-align: center; }
  .home .footer__inner > p { position: static !important; transform: none !important; }
  .home .footer__links { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .home .reveal { opacity: 1; transform: none; transition: none; }
  .home .project__link, .home .wilds-tile-video { transition: none; }
}

@keyframes home-flower-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home .hero__logo:hover img { animation: home-flower-spin 2s linear infinite; }
}

@media (max-width: 900px) {
  .home .home__contact .footer__link { font-size: 0; gap: 0; }
  .home .home__contact .footer__link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .home .home__contact .footer__link svg { width: 16px; height: 16px; flex-shrink: 0; }
}

/* Compact single-row homepage header on phones and small viewports only. */
@media (max-width: 640px) {
  .home .nav {
    top: 16px;
    left: 16px;
    right: auto;
    transform: none;
    width: max-content;
    max-width: calc(100% - 96px);
    height: 48px;
    padding: 8px 16px;
  }
  .home .nav__links { gap: 16px; }
  .home .home__contact {
    top: 16px;
    right: 16px;
    height: 48px;
    gap: 14px;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .home .nav__links a { padding: 4px 0 6px; line-height: 18px; }
  .home .nav__links a::after { bottom: 0; width: 3px; height: 3px; }
}
