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

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

header h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #111;
}

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

/* ── NAV ── */
nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 2rem 2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

nav a:hover { opacity: 0.45; }
nav a.active { border-bottom: 1px solid #111; padding-bottom: 2px; }

/* ── HOME GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 24px 80px;
}

.project {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.project:hover .project-img img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.project-img .placeholder {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}

.project-info {
  padding: 0.85rem 0 1.75rem;
}

.project-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.15rem;
}

.project-category {
  font-size: 0.875rem;
  font-weight: 400;
  color: #888;
}

/* ── PAGE WRAPPER ── */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
}

/* ── PROJECT PAGE ── */
.proj-back {
  display: inline-block;
  font-size: 0.875rem;
  color: #888;
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.15s;
}

.proj-back:hover { color: #111; }

.proj-type {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.75rem;
}

.proj-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.proj-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
  overflow: hidden;
  margin-bottom: 3rem;
}

.proj-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj-hero .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}

.proj-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: #444;
  max-width: 640px;
  margin-bottom: 3rem;
}

.proj-desc p + p { margin-top: 1.25rem; }

.spec-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid #e8e8e8;
  padding-top: 2rem;
  margin-bottom: 3rem;
}

.spec-item .spec-k {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.35rem;
}

.spec-item .spec-v {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111;
}

/* extra images grid on project page */
.proj-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 3rem;
}

.proj-images .img-slot {
  aspect-ratio: 4/3;
  background: #e8e8e8;
  overflow: hidden;
}

.proj-images .img-slot img {
  width: 100%; height: 100%; object-fit: cover;
}

.proj-images .img-slot .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #aaa;
}

/* ── ABOUT PAGE ── */
.about-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.about-wrap h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.about-wrap p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.25rem;
}

.about-wrap strong { color: #111; font-weight: 500; }

/* ── CONTACT PAGE ── */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.contact-wrap h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: #111;
  transition: opacity 0.15s;
}

.contact-item:first-child { border-top: 1px solid #e8e8e8; }
.contact-item:hover { opacity: 0.5; }

.contact-item span:first-child {
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-item span:last-child {
  font-size: 0.85rem;
  color: #888;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .proj-images { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  header h1 { font-size: 2.5rem; }
  nav { gap: 2rem; }
}
