:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: rgba(17, 17, 17, 0.66);
  --line: rgba(17, 17, 17, 0.1);
  --soft: rgba(17, 17, 17, 0.035);
  --max-width: 1440px;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--fg);
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.018), transparent 10rem),
    var(--bg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  animation: page-enter 240ms ease-out both;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 2vw, 2rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
}

.site-nav__link,
.site-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 160ms ease,
    border-color 160ms ease;
}

.site-nav__link:hover,
.site-nav__icon:hover,
.site-brand:hover {
  background: var(--soft);
  border-color: var(--line);
  transform: translateY(-1px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.35rem 0.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 160ms ease,
    border-color 160ms ease;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
  font-weight: 500;
}

.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem);
}

.hero,
.section,
.project-detail {
  padding-bottom: clamp(1.5rem, 2vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 2vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.hero--compact {
  align-items: start;
}

.hero__copy {
  display: grid;
  gap: 1rem;
  max-width: 62rem;
}

.hero__aside {
  display: grid;
  align-content: start;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.96;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
  font-weight: 500;
}

h3 {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.15;
  font-weight: 500;
}

.lead {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.detail-copy {
  max-width: 42rem;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid currentColor;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.text-link:hover {
  transform: translateY(-1px);
}

.fact-list {
  display: grid;
  gap: 0.75rem;
  min-width: 14rem;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.fact dt {
  color: var(--muted);
}

.fact dd {
  margin: 0;
  text-align: right;
}

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

.project-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-card__link {
  display: grid;
  height: 100%;
}

.project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f7f7f7;
}

.project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card__link:hover .project-card__media img {
  transform: scale(1.03) translateY(-1%);
}

.project-card__body {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.project-card__meta,
.project-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-card__body p {
  color: var(--muted);
  max-width: 36ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.04));
  color: rgba(17, 17, 17, 0.22);
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: 0.08em;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: 2rem;
}

.project-detail__content {
  display: grid;
  gap: 1.25rem;
}

.project-detail__header {
  display: grid;
  gap: 1rem;
}

.project-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.project-detail__figure {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.project-detail__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #f7f7f7;
}

.project-detail__figure figcaption {
  color: var(--muted);
  font-size: 0.84rem;
}

.project-detail__aside {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  top: 6rem;
}

.project-detail__empty {
  padding: 1rem;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.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;
}

[data-reveal] {
  animation: rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--index, 0) * 70ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

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

  .project-detail__aside {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
