:root {
  --page-bg: #f7f5f3;
  --title-fill: #000000;
  --body-fill: #000000a6;
  --card-bg: #fafafa;
  --card-border: #0000000d;
  --card-title: #000000e5;
  --card-radius: 24px;
  --card-padding: 16px;
  --oval-size: 640px;
  --oval-top: clamp(64px, 10vw, 140px);
  --oval-center-offset: calc(var(--oval-size) * 0.27);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgb(255 255 255 / 55%) 0 0.5px, transparent 0.75px),
    radial-gradient(circle at 80% 30%, rgb(255 255 255 / 42%) 0 0.5px, transparent 0.75px);
  background-size: 6px 6px, 7px 7px;
  color: var(--body-fill);
  font-family: "Geist", "Helvetica Neue", sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.ambient-ovals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-oval {
  position: absolute;
  top: var(--oval-top);
  width: var(--oval-size);
  height: var(--oval-size);
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: multiply;
  will-change: transform;
}

.ambient-oval-left {
  left: calc(50% - var(--oval-center-offset) - (var(--oval-size) / 2));
  background: #ffe6cc;
}

.ambient-oval-right {
  left: calc(50% + var(--oval-center-offset) - (var(--oval-size) / 2));
  background: #f7ecfe;
}

.under-construction {
  position: fixed;
  top: 0;
  right: 0;
  width: 195px;
  height: 113px;
  object-fit: contain;
  pointer-events: none;
  z-index: 10;
}

.home {
  width: min(calc(100% - 48px), 1200px);
  margin: 0 auto;
  padding: 160px 0 96px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.intro {
  width: 640px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.intro h1 {
  margin: 0 0 8px;
  color: var(--title-fill);
  font-family: "Newsreader", Georgia, serif;
  font-size: 96px;
  line-height: 96px;
  font-style: italic;
  font-weight: 350;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20, "wght" 350;
  letter-spacing: -0.02em;
  max-width: 100%;
}

.intro .summary {
  margin: 0;
  color: var(--body-fill);
  font-size: 20px;
  line-height: 32px;
  font-weight: 300;
  max-width: 640px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 558px);
  gap: 20px;
  justify-content: start;
  width: 100%;
  min-width: 0;
}

.project-card {
  text-decoration: none;
  color: inherit;
  height: 400px;
  display: block;
  width: 100%;
  min-width: 0;
}

.project-card-inner {
  height: 100%;
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow:
    0 0 0 0.5px var(--card-border),
    0 12px 24px 0 #0000000a,
    0 4px 8px 2px #0000000a,
    0 2px 4px -2px #00000005;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  transition:
    transform 300ms cubic-bezier(0.4, 1, 0.2, 1),
    box-shadow 300ms cubic-bezier(0.4, 1, 0.2, 1);
  will-change: transform;
}

.project-image {
  margin: 0;
  width: 100%;
  height: 304px;
  border-radius: calc(var(--card-radius) - var(--card-padding))
    calc(var(--card-radius) - var(--card-padding)) 0 0;
  overflow: hidden;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.project-footer {
  width: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.project-footer h2 {
  margin: 0;
  color: var(--card-title);
  font-family: "Newsreader", Georgia, serif;
  font-size: 32px;
  line-height: 40px;
  font-style: italic;
  font-weight: 425;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20, "wght" 425;
  flex: 1;
  min-width: 0;
  white-space: normal;
}

.cta {
  width: 106px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%);
  color: #ffffff;
  font-size: 20px;
  line-height: 32px;
  font-weight: 300;
  box-shadow:
    inset 0 0.5px 2px #000000,
    inset 0 -0.5px 2px #000000,
    inset 0 2px 8px #ffffff7b,
    inset 0 -2px 4px #ffffff52;
  flex-shrink: 0;
  transform-origin: center center;
  transition: transform 300ms cubic-bezier(0.4, 1, 0.2, 1);
}

.cta-label {
  display: inline-block;
}

.cta-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.project-card:focus-visible {
  outline: 2px solid #00000040;
  outline-offset: 3px;
}

@media (hover: hover) {
  .project-card:hover .project-card-inner,
  .project-card.reveal.is-visible:hover .project-card-inner {
    transform: translateY(-6px);
    box-shadow:
      0 0 0 1px var(--card-border),
      0 18px 30px 0 #00000012,
      0 8px 12px 2px #0000000f,
      0 3px 6px -2px #00000008;
  }

  .project-card:hover .cta,
  .project-card.reveal.is-visible:hover .cta {
    transform: scale(1.1);
  }
}

.project-card:active .project-card-inner,
.project-card.reveal.is-visible:active .project-card-inner {
  transform: translateY(-3px);
}

.project-card:active .cta,
.project-card.reveal.is-visible:active .cta {
  transform: scale(1.06);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  filter: blur(12px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 1400px) {
  .home {
    width: min(calc(100% - 48px), 1200px);
    padding-top: 120px;
  }

  .intro h1 {
    font-size: 78px;
    line-height: 78px;
  }
}

@media (max-width: 1280px) {
  .home {
    width: min(calc(100% - 32px), 960px);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .project-card {
    height: auto;
    min-height: 0;
  }

  .project-image {
    aspect-ratio: auto;
    height: auto;
  }

  .project-image img {
    height: auto;
  }
}

@media (max-width: 980px) {
  :root {
    --oval-size: 520px;
    --oval-top: 72px;
    --card-radius: 20px;
    --card-padding: 12px;
  }

  .home {
    width: min(calc(100% - 32px), 760px);
    padding-top: 96px;
    gap: 40px;
  }

  .intro {
    width: 100%;
  }

  .intro h1 {
    font-size: 60px;
    line-height: 60px;
  }

  .intro .summary {
    font-size: 18px;
    line-height: 30px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .project-card {
    height: auto;
    min-height: 0;
  }

  .project-image {
    aspect-ratio: auto;
    height: auto;
  }

  .project-image img {
    height: auto;
  }

  .project-footer h2 {
    font-size: 30px;
    line-height: 38px;
  }

}

@media (max-width: 640px) {
  :root {
    --oval-size: 380px;
    --oval-top: 64px;
  }

  .home {
    width: calc(100% - 24px);
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .intro h1 {
    font-size: 48px;
    line-height: 48px;
  }

  .intro .summary {
    font-size: 17px;
    line-height: 28px;
  }

}
