/* ============================================================
   The Wood Atelier — shared stylesheet
   Identity: dark walnut #241510, cream #ece3d6, gold #b08d57
   Playfair Display (headings) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   No shadows.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #241510;
  color: #ece3d6;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #b08d57; color: #241510; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- NAV ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(22px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(36, 21, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(236, 227, 214, 0.1);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(20px, 3.4vw, 27px);
  letter-spacing: 0.5px;
  color: #ece3d6;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a { color: rgba(236, 227, 214, 0.62); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #b08d57; }

/* ---------- HERO (home) ---------- */
header {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px) clamp(22px, 5vw, 72px) clamp(40px, 5vw, 64px);
}
.hero-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b08d57;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(52px, 10vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 34px 0 0;
  color: #f3ece0;
  max-width: 14ch;
}
.hero-title em { font-style: italic; color: #b08d57; }
.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 96px);
}
.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(236, 227, 214, 0.72);
  max-width: 44ch;
  margin: 0;
}
.hero-scroll {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 227, 214, 0.4);
}

/* ---------- FEATURED FULL-BLEED BAND ---------- */
.featured { position: relative; }
.featured-img {
  width: 100%;
  height: clamp(340px, 72vh, 760px);
  background-size: cover;
  background-position: center;
  background-color: #2d1c14;
}
.featured-caption {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  bottom: clamp(22px, 4vw, 48px);
  background: rgba(36, 21, 16, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 22px 28px;
  max-width: min(440px, 82vw);
  border-left: 2px solid #b08d57;
}
.featured-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b08d57;
}
.featured-caption p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.25;
  margin: 12px 0 0;
  color: #f3ece0;
}

/* ---------- WORKS / MASONRY GRID ---------- */
#works {
  padding: clamp(72px, 9vw, 128px) clamp(22px, 5vw, 72px);
}
.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1360px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  border-bottom: 1px solid rgba(236, 227, 214, 0.16);
  padding-bottom: 22px;
}
.works-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  margin: 0;
  color: #f3ece0;
}
.works-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 227, 214, 0.5);
  white-space: nowrap;
}
.masonry {
  max-width: 1360px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 14px;
}
.tile {
  display: block;
  break-inside: avoid;
  margin-bottom: 26px;
}
.tile-img {
  width: 100%;
  height: auto;
  background: #2d1c14;
  transition: filter 0.3s ease;
}
.tile:hover .tile-img { filter: brightness(1.08); }
.tile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
}
.tile-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.08;
  color: #f3ece0;
  transition: color 0.2s;
}
.tile:hover .tile-title { color: #b08d57; }
.tile-cap {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(236, 227, 214, 0.5);
}

/* ---------- PROJECT PAGE ---------- */
.project {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(40px, 6vw, 88px) clamp(22px, 5vw, 72px) clamp(48px, 6vw, 96px);
  max-width: 1400px;
  margin: 0 auto;
}
.project-hero-img {
  width: 100%;
  height: auto;
  background: #2d1c14;
}
.project-text {
  position: sticky;
  top: 96px;
  padding-top: clamp(0px, 2vw, 24px);
}
.project-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b08d57;
}
.project-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 20px 0 0;
  color: #f3ece0;
}
.project-cap {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 227, 214, 0.6);
  margin: 22px 0 0;
}
.project-rule {
  width: 44px;
  height: 1px;
  background: #b08d57;
  margin: 30px 0;
}
.project-story {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(236, 227, 214, 0.74);
  margin: 0;
  max-width: 46ch;
}
.project-story a {
  color: #b08d57;
  border-bottom: 1px solid rgba(176, 141, 87, 0.45);
  transition: border-color 0.2s;
}
.project-story a:hover { border-color: #b08d57; }

/* detail row — n1..n4 = number of images */
.detail-row {
  padding: 0 clamp(22px, 5vw, 72px) clamp(56px, 8vw, 120px);
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
}
.detail-row.n1 { grid-template-columns: 1fr; }
.detail-row.n2 { grid-template-columns: repeat(2, 1fr); }
.detail-row.n3 { grid-template-columns: repeat(3, 1fr); }
.detail-row.n4 { grid-template-columns: repeat(2, 1fr); }
.detail-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  background: #2d1c14;
}
.detail-row.n1 img { aspect-ratio: auto; height: auto; }

/* prev / next */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(236, 227, 214, 0.14);
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pager a { color: rgba(236, 227, 214, 0.62); transition: color 0.2s; }
.pager a:hover { color: #b08d57; }
.pager .all-works { color: rgba(236, 227, 214, 0.4); }
.pager .pager-side { flex: 1; }
.pager .pager-side.next { text-align: right; }
.pager .pager-side.center { text-align: center; flex: none; }
.pager .pager-lbl { display: block; font-size: 9.5px; color: rgba(236,227,214,0.35); margin-bottom: 5px; }

/* ---------- ABOUT ---------- */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(72px, 12vw, 180px) clamp(22px, 5vw, 72px);
}
.about-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b08d57;
}
.about h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 26px 0 0;
  color: #f3ece0;
}
.about h1 em { font-style: italic; color: #b08d57; }
.about-body {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(236, 227, 214, 0.72);
  margin: 36px 0 0;
}
.about-body p { margin: 0 0 26px; }
.about-body p:last-child { margin: 0; }
.about-sig {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: #b08d57;
  margin: 34px 0 0;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid rgba(236, 227, 214, 0.1);
  padding: 44px clamp(22px, 4vw, 56px);
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 227, 214, 0.4);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
  .project {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-text { position: static; top: auto; }
  .detail-row.n3, .detail-row.n4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  header { min-height: auto; padding: 48px 20px 40px; }
  .hero-title { font-size: clamp(44px, 14vw, 72px); }
  .hero-desc { font-size: 15px; }
  .hero-scroll { display: none; }
  .featured-caption { left: 16px; right: 16px; bottom: 16px; max-width: none; padding: 16px 18px; }
  .featured-caption p { font-size: 19px; }

  #works { padding: 56px 20px; }
  .works-count { display: none; }
  .masonry { column-count: 1; }

  .project { padding: 32px 20px 40px; }
  .project-title { font-size: clamp(36px, 11vw, 56px); }
  .project-story { font-size: 16px; }
  .detail-row { padding: 0 20px 48px; }
  .detail-row.n2, .detail-row.n3, .detail-row.n4 { grid-template-columns: 1fr; }

  .pager { flex-direction: row; font-size: 10px; gap: 10px; padding: 24px 20px; }
  .pager .pager-side.center { display: none; }

  .about { padding: 64px 20px; }
  .about-body { font-size: 16px; }

  footer { padding: 32px 20px; }
}
