:root {
  --bg: #f5f1ea;
  --surface: #fffaf3;
  --surface-strong: #ffffff;
  --text: #17130f;
  --muted: #6e6258;
  --line: rgba(23, 19, 15, 0.1);
  --shadow: 0 24px 70px rgba(54, 38, 24, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(246, 196, 130, 0.5), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(125, 154, 125, 0.35), transparent 30rem),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 19, 15, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 19, 15, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  max-width: 760px;
  margin-bottom: 44px;
}

.eyebrow,
.project-type {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 14px;
  font-size: clamp(3rem, 10vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.intro {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 490px;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 250, 243, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(20px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(23, 19, 15, 0.22);
  box-shadow: var(--shadow);
  outline: none;
}

.preview-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 10px);
  background: var(--surface-strong);
}

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

.status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #3d2600;
  background: #ffd978;
  border: 1px solid rgba(61, 38, 0, 0.18);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(61, 38, 0, 0.14);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 12px 22px 24px;
}

h2 {
  margin: 9px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.open-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.open-link::after {
  content: "↗";
  transition: transform 180ms ease;
}

.project-card:hover .open-link::after,
.project-card:focus-visible .open-link::after {
  transform: translate(3px, -3px);
}

.early {
  background: linear-gradient(180deg, rgba(255, 248, 226, 0.9), rgba(255, 250, 243, 0.78));
}

@media (max-width: 940px) {
  .projects {
    grid-template-columns: 1fr;
  }

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

  .preview-wrap {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
    padding: 52px 0;
  }

  .hero {
    margin-bottom: 28px;
  }

  .preview-wrap {
    margin: 10px;
    border-radius: 20px;
  }

  .card-content {
    padding: 10px 18px 20px;
  }
}
