@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --canvas: #f8f8f6;
  --paper: rgba(255, 255, 253, 0.86);
  --ink: #202023;
  --muted: #6f7075;
  --line: rgba(32, 32, 35, 0.11);
  --grid: rgba(32, 32, 35, 0.055);
  --pink: #ff2e88;
  --purple: #7c3aed;
  --cyan: #06b9cc;
  --orange: #ff7a00;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.1;
  pointer-events: none;
}

.ambient-one {
  top: -20rem;
  right: -9rem;
  background: var(--purple);
}

.ambient-two {
  bottom: -28rem;
  left: -14rem;
  background: var(--cyan);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--cyan);
  transform: translateY(-2px);
}

.header-note,
footer p {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(6rem, 11vw, 9rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--cyan);
}

h1 {
  max-width: 920px;
  margin: 1.15rem 0 0;
  font-size: clamp(4.5rem, 13.5vw, 10.2rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.intro {
  max-width: 570px;
  margin: 2.6rem 0 0 auto;
  color: #494a4f;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.hero-rule {
  position: relative;
  height: 1px;
  margin-top: 5rem;
  background: var(--line);
}

.hero-rule span {
  position: absolute;
  top: -2px;
  left: 0;
  width: 29%;
  height: 5px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
}

.projects {
  padding-bottom: clamp(6rem, 12vw, 10rem);
}

.section-heading {
  margin-bottom: 2.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  position: relative;
  display: flex;
  min-height: 410px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(8px);
  transition:
    color 250ms ease,
    background-color 250ms ease;
}

.project-card::before {
  position: absolute;
  inset: auto -10% -60% auto;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  background: var(--card-accent);
  content: "";
  filter: blur(78px);
  opacity: 0;
  transition:
    opacity 350ms ease,
    transform 500ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  color: #f6f7f8;
  background: #171b22;
  outline: none;
}

.project-card:hover::before,
.project-card:focus-visible::before {
  opacity: 0.34;
  transform: translate(-25%, -25%);
}

.card-zazen {
  --card-accent: var(--pink);
}
.card-realtor {
  --card-accent: var(--purple);
}
.card-photo {
  --card-accent: var(--orange);
}
.card-date {
  --card-accent: var(--cyan);
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.project-number,
.project-type,
.card-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-number,
.project-type {
  color: var(--muted);
}

.arrow {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.1rem;
  transition:
    transform 250ms ease,
    background-color 250ms ease,
    color 250ms ease;
}

.project-card:hover .arrow,
.project-card:focus-visible .arrow {
  color: var(--ink);
  background: #f6f7f8;
  transform: rotate(45deg);
}

.card-body {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin-top: auto;
  padding: 5rem 0 2.5rem;
}

.card-body h3 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.card-body > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  transition: color 250ms ease;
}

.project-card:hover .project-number,
.project-card:hover .project-type,
.project-card:hover .card-body > p:last-child,
.project-card:focus-visible .project-number,
.project-card:focus-visible .project-type,
.project-card:focus-visible .card-body > p:last-child {
  color: #afb4bc;
}

.card-link {
  position: relative;
  z-index: 1;
  width: max-content;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
}

.contact {
  padding-bottom: clamp(6rem, 12vw, 10rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(4rem, 8vw, 6rem);
}

.contact-title {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 3.25rem);
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.contact-title a {
  display: inline-block;
  padding-bottom: 0.3rem;
  background-image: linear-gradient(
    90deg,
    var(--purple),
    var(--pink),
    var(--orange)
  );
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
  transition: background-size 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-title a:hover,
.contact-title a:focus-visible {
  background-size: 100% 100%;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .hero > *,
  .section-heading,
  .contact-title,
  .project-card {
    opacity: 0;
    animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero > :nth-child(2) {
    animation-delay: 80ms;
  }
  .hero > :nth-child(3) {
    animation-delay: 160ms;
  }
  .hero > :nth-child(4) {
    animation-delay: 240ms;
  }
  .section-heading {
    animation-delay: 300ms;
  }
  .project-card:nth-child(1) {
    animation-delay: 360ms;
  }
  .project-card:nth-child(2) {
    animation-delay: 420ms;
  }
  .project-card:nth-child(3) {
    animation-delay: 480ms;
  }
  .project-card:nth-child(4) {
    animation-delay: 540ms;
  }
  .contact .section-heading {
    animation-delay: 600ms;
  }
  .contact-title {
    animation-delay: 660ms;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .header-note {
    display: none;
  }

  .hero {
    padding-top: 7rem;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .intro {
    margin-left: 0;
  }

  .hero-rule {
    margin-top: 4rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

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

  .project-card {
    min-height: 370px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
}
