/* ═══════════════════════════════════════════════
   projects.css — NSSG-style portrait grid
═══════════════════════════════════════════════ */

.projects-section {
  padding: 0 var(--space-lg) var(--space-2xl);
  background: var(--washi);
}

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 3rem;
}

.projects-heading {
  font-family: var(--ff-serif-jp);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 200;
  letter-spacing: 0.12em;
  color: var(--lila-deep);
}

.all-link {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--lila-mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: gap 0.2s;
}
.all-link::after { content: '→'; }
.all-link:hover  { gap: 1rem; }

/* ── Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Card ── */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Featured: full width */
.project-card.featured {
  grid-column: 1 / -1;
}

/* ── Thumbnail ── */
.project-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;   /* portrait */
  overflow: hidden;
  position: relative;
  margin-bottom: 0.9rem;
}
.project-card.featured .project-thumb {
  aspect-ratio: 16 / 7;   /* landscape for featured */
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform: scale(1);
  transition: transform 0.7s var(--ease-out);
}
.project-card:hover .project-thumb-inner {
  transform: scale(1.04);
}

/* Placeholder gradients */
.thumb-swallow-base { background: linear-gradient(170deg, #2a2035 0%, #4a3862 40%, #7a60a0 70%, #b8a0cc 100%); }
.thumb-izu          { background: linear-gradient(155deg, #1a2820 0%, #2c4035 35%, #5a8068 65%, #98c0a8 100%); }
.thumb-ureshino     { background: linear-gradient(160deg, #221818 0%, #3a2820 35%, #6a4838 65%, #c0906a 100%); }
.thumb-academy      { background: linear-gradient(165deg, #1c1830 0%, #2e2848 35%, #6058a0 65%, #a8a0d8 100%); }
.thumb-nomad        { background: linear-gradient(150deg, #182022 0%, #28383c 35%, #508080 65%, #90c0c0 100%); }
.thumb-partners     { background: linear-gradient(158deg, #201818 0%, #382028 35%, #785060 65%, #c09090 100%); }

/* Decorative ring */
.thumb-deco {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%; height: 55%;
  border: 0.5px solid rgba(248, 246, 242, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

/* Caption overlay */
.thumb-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 60%);
}
.thumb-region {
  font-family: var(--ff-serif-en);
  font-size: 0.6rem;
  font-style: italic;
  letter-spacing: 0.25em;
  color: rgba(248, 246, 242, 0.5);
}

/* ── Card meta ── */
.project-tag {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--lila-soft);
  margin-bottom: 0.3rem;
}
.project-title {
  font-family: var(--ff-serif-jp);
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--sumi);
  line-height: 1.7;
}
