html { 
  background: url("../images/background-image.jpg") no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #222222;
  --muted: #6d6d6d;
  --border: #e7e5df;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', sans-serif;
    font-weight: 300;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.page {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: 4.5rem 0 2.75rem;
}

.intro {
  text-align: center;
  margin-bottom: 4rem;
}

.intro h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2.1rem, 3.4vw, 2.95rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.intro p {
  margin: 0.12rem 0;
  font-size: clamp(0.95rem, 1.2vw, 1.18rem);
  color: var(--muted);
  font-weight: 400;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.45rem;
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.card:focus-visible {
  outline: 2px solid #b8b8b8;
  outline-offset: 3px;
}

.card-image {
  aspect-ratio: 16 / 10;
  background: #dddddd;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.45rem 1.5rem 1.55rem;
}

.card h2 {
  margin: 0 0 0.28rem;
  font-size: clamp(1.1rem, 1.4vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.footer-icons {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.footer-icons a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-icons svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-icons a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .page {
    width: min(calc(100% - 2rem), var(--max-width));
    padding-top: 3rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .intro {
    margin-bottom: 3rem;
  }

  footer {
    margin-top: 4rem;
  }
}