body { background: #f4f1ea; color: #121216; font-family: 'Space Grotesk', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(16px, 4vw, 48px);
  mix-blend-mode: difference; color: #fff;
  font: 500 14px ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em;
}
.logo { font: 700 20px 'Space Grotesk', system-ui, sans-serif; text-transform: none; letter-spacing: 0; }

/* Full-screen panel that wipes across between pages. Parked below the screen. */
.curtain {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: #ff4d2e; color: #121216;
  font: 700 clamp(40px, 8vw, 96px) 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.04em;
  transform: translateY(100%);
  pointer-events: none;
}

/* ---- Home ---- */
.home { padding: clamp(96px, 14vw, 160px) clamp(16px, 4vw, 48px) 64px; }
.home h1 { margin: 0 0 clamp(32px, 6vw, 64px); font: 700 clamp(40px, 7vw, 96px)/0.95 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.045em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; }
.card__media { grid-column: 1 / -1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-weight: 500; font-size: 20px; }
.card__type { font: 500 12px ui-monospace, monospace; color: #8b8a94; text-transform: uppercase; letter-spacing: 0.08em; align-self: center; }

/* ---- Project ---- */
.hero { height: 72vh; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.project__body { max-width: 820px; padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 48px) 96px; }
.project__meta { margin: 0 0 12px; font: 500 12px ui-monospace, monospace; color: #8b8a94; text-transform: uppercase; letter-spacing: 0.08em; }
.project h1 { margin: 0 0 24px; font: 700 clamp(48px, 9vw, 120px)/0.9 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.05em; }
.project__text { margin: 0 0 48px; font-size: clamp(18px, 2vw, 22px); color: #3a3940; }
.project__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid #d6d1c6; font-weight: 500; }
.project__nav a:hover { text-decoration: underline; }

/* The flying image used by the expand transition. */
.flyer { position: fixed; z-index: 25; object-fit: cover; border-radius: 6px; pointer-events: none; }
