/* Original site preserved. This file only refines the project showcase and footer. */
.projects .section-heading h2 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.featured-projects {
  grid-template-columns: 1fr;
  gap: 18px;
}

.featured-project {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, .08);
  border-radius: 22px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}

.featured-project > div {
  height: auto;
}

.featured-project:nth-child(even) {
  grid-template-columns: 1.1fr .9fr;
}

.featured-project:nth-child(even) .project-collage {
  order: 2;
}

.featured-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(36, 72, 105, .12);
}

.featured-project:active {
  transform: scale(.988);
}

.project-collage {
  position: relative;
  align-self: center;
  height: 300px;
  margin: 22px;
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
}

.project-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 38%);
}

.project-collage img {
  position: absolute;
  width: 58%;
  height: 82%;
  object-fit: cover;
  object-position: center 36%;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 15px;
  box-shadow: 0 18px 35px rgba(0, 25, 50, .18);
  filter: saturate(.88) contrast(1.04);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.project-collage img:nth-child(1) { left: 0; top: 8%; z-index: 3; transform: rotate(-4deg); }
.project-collage img:nth-child(2) { left: 24%; top: 2%; z-index: 2; transform: rotate(2deg); }
.project-collage img:nth-child(3) { right: -5%; top: 10%; z-index: 1; transform: rotate(7deg); }
.featured-project:hover .project-collage img:nth-child(1) { transform: rotate(-7deg) translateX(-4px); }
.featured-project:hover .project-collage img:nth-child(3) { transform: rotate(10deg) translateX(4px); }

.featured-project .project-copy {
  align-self: center;
  padding: 42px;
}

.featured-project .project-copy h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.featured-project .project-copy > p:not(.card-index) {
  max-width: 570px;
  margin: 15px 0 0;
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.68;
}

.featured-project .project-copy > span {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
}

/* Web frosted-glass approximation, kept within the original blue palette. */
.footer {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 46px 20px;
  overflow: hidden;
  background: radial-gradient(circle at 18% 0, rgba(0,113,227,.23), transparent 44%), #111318;
}

.footer::before {
  content: "";
  position: absolute;
  inset: -70% 48% 10% -18%;
  border-radius: 50%;
  background: rgba(104, 191, 255, .12);
  filter: blur(48px);
}

.footer-glass {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(640px, 100%);
  margin: auto;
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  color: rgba(255,255,255,.55);
  background: linear-gradient(120deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 22px 54px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}

.footer .footer-name {
  color: transparent;
  background: linear-gradient(90deg, #f5fbff, #89caff 55%, #d9f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 15px;
  font-weight: 750;
}

.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }

@supports (animation-timeline: view()) {
  .project-collage {
    animation: project-collage-drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes project-collage-drift {
    from { transform: translateY(14px) rotate(-.6deg); }
    to { transform: translateY(-14px) rotate(.6deg); }
  }
}

@media (max-width: 760px) {
  .projects .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .projects .section-heading h2 {
    font-size: 35px;
  }

  .featured-project,
  .featured-project:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .featured-project:nth-child(even) .project-collage {
    order: 0;
  }

  .project-collage {
    width: calc(100% - 32px);
    height: 205px !important;
    margin: 16px 16px 0;
  }

  .featured-project .project-copy {
    padding: 24px 22px 28px;
  }

  .featured-project .project-copy h3 {
    font-size: 26px;
  }

  .footer-glass {
    flex-direction: column;
    gap: 7px;
    padding: 23px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-collage { animation: none !important; }
  .featured-project, .project-collage img { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .footer-glass { background: #22262d; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
