:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111111;
  --radius: 5px;
  --entrance-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --entrance-fade: 520ms;
  --entrance-move: 2400ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-shell {
  min-height: 100vh;
  --shell-pad-x: 140px;
  padding: 28px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem;
  padding-top: clamp(24vh, 32vh, 38vh);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 100%;
  margin: 0;
  align-items: flex-start;
  text-align: left;
}

.hero h1,
.lede {
  margin: 0;
  max-width: none;
  font-size: 4.2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
}

.hero h1 {
  text-wrap: balance;
  white-space: nowrap;
  animation:
    heroFade var(--entrance-fade) ease-out 400ms both,
    heroRise var(--entrance-move) var(--entrance-ease) 400ms both;
}

.lede {
  color: #777777;
  animation:
    heroFade var(--entrance-fade) ease-out 900ms both,
    heroRise var(--entrance-move) var(--entrance-ease) 900ms both;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 1rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: #f4f4f4;
  color: #111111;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
  animation:
    heroFade var(--entrance-fade) ease-out 1200ms both,
    heroRise var(--entrance-move) var(--entrance-ease) 1200ms both;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.hero-button-icon {
  font-size: 0.9em;
  line-height: 1;
}

.hero-button:hover {
  background: #ececec;
  color: #111111;
}

.hero-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
}

.hero-media img {
  object-position: center 50%;
  animation:
    heroFade var(--entrance-fade) ease-out 1700ms both,
    heroImageMove var(--entrance-move) var(--entrance-ease) 1700ms both;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.section-divider {
  display: block;
  width: calc(100% + (var(--shell-pad-x) * 2));
  height: 1px;
  background: #d6d6d6;
  margin: 10rem 0;
  margin-inline: calc(var(--shell-pad-x) * -1);
}

.projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7rem;
  margin-top: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.projects.is-visible {
  opacity: 1;
}

.site-footer {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05em;
  color: #111111;
  font-size: 2.9rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: none;
  text-decoration: none;
}

.footer-brand:hover {
  color: #111111;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1.5rem 2rem;
  margin-bottom: -0.35rem;
  color: #777777;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: right;
}

.footer-contact-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 10rem;
}

.footer-contact a,
.footer-contact p {
  margin: 0;
  color: #111111;
  text-decoration: none;
  padding: 0.35rem 0;
}

.footer-contact a {
  display: block;
}

.footer-contact a:hover {
  color: #777777;
}

.footer-contact p {
  align-self: flex-end;
}

.footer-copyright {
  flex: 0 0 100%;
  width: 100%;
  text-align: right;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-highlights {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-collage {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius);
}

.project-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #111111;
}

.project-copy h2,
.project-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
  font-weight: 500;
}

.project-copy h2 {
  color: #111111;
}

.project-copy p {
  color: #666666;
}

@keyframes heroFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroRise {
  from {
    transform: translate3d(0, 10px, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroImageMove {
  from {
    transform: translate3d(0, 4px, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero h1,
  .lede,
  .hero-media img,
  .hero-button {
    animation: none;
  }

  .projects {
    opacity: 1;
    transition: none;
  }

  .hero-button {
    transition: none;
  }

  .project-collage img {
    transition: none;
  }
}

.project-card:nth-child(1) .project-collage img {
  object-position: center 40%;
}

.project-card:nth-child(2) .project-collage img {
  object-position: center 48%;
}

.project-card:nth-child(3) .project-collage img {
  object-position: center 44%;
}

@media (max-width: 1440px) {
  .page-shell {
    --shell-pad-x: 64px;
    padding: 22px 64px;
  }

  .hero-copy {
    gap: 3rem;
  }

  .hero h1 {
    line-height: 1.05;
    font-size: 3.1rem;
  }

  .lede {
    font-size: 3.1rem;
    line-height: 1.05;
  }

  .hero-button {
    padding: 0.9rem 1.2rem;
    font-size: 0.98rem;
  }

  .hero {
    padding-top: clamp(20vh, 26vh, 32vh);
  }

  .section-divider {
    margin: 8rem 0;
  }

  .section-highlights {
    font-size: 2.35rem;
  }

  .projects-grid {
    gap: 6rem;
  }
}

@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    --shell-pad-x: 28px;
    padding: 16px 28px;
  }

  .hero {
    padding-top: clamp(18vh, 24vh, 30vh);
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .lede {
    font-size: 2.55rem;
    line-height: 1.05;
  }

  .section-divider {
    margin: 6rem 0;
  }

  .section-highlights {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 1rem;
  }

  .footer-brand {
    font-size: 2.25rem;
  }

  .footer-contact {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0;
  }

  .footer-contact-column {
    min-width: 0;
    align-items: flex-start;
  }

  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-shell {
    --shell-pad-x: 18px;
    padding: 14px 18px;
  }

  .hero {
    padding-top: clamp(16vh, 22vh, 28vh);
    gap: 4rem;
  }

  .hero-copy {
    gap: 2.25rem;
  }

  .hero h1,
  .lede {
    font-size: 2.2rem;
    line-height: 1.05;
  }

  .hero-button {
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }

  .footer-brand {
    font-size: 1.95rem;
  }
}
