/* ============================================
   SAMPLE Page
   ============================================ */

.page-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.page-hero h1 .em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p {
  font-family: var(--ff-jp);
  font-size: 16px;
  line-height: 2;
  color: var(--fg-2);
  padding-bottom: 12px;
}

@media (max-width: 880px) {
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero { padding-top: 140px; padding-bottom: 50px; }
}

/* ── Filter chips ── */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.chip {
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-2);
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ── Gallery grid ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 120px;
}
.gallery .card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, border-color 0.5s ease;
}
.gallery .card:hover {
  transform: scale(1.02);
  border-color: var(--line-2);
}
.gallery .card .qr-img {
  width: 76%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  transition: transform 0.6s ease;
}
.gallery .card:hover .qr-img { transform: rotate(-1deg) scale(1.04); }

.gallery .card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}
.gallery .meta .name {
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.gallery .meta .tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* feature cards in larger size */
.gallery .card.large {
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: 2 / 1;
  flex-direction: row;
  gap: 24px;
  padding: 0 32px;
  justify-content: center;
}
.gallery .card.large .qr-img {
  width: auto;
  height: 86%;
  flex-shrink: 0;
}
.gallery .card.large .editorial-text {
  flex: 1;
  font-family: var(--ff-display);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery .card.large .editorial-text .et-title {
  font-size: 32px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.gallery .card.large .editorial-text .et-sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.gallery .card.large .editorial-text .et-jp {
  font-family: var(--ff-jp);
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.7;
  margin-top: 4px;
}

@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery .card.large { grid-column: span 2; aspect-ratio: 1.5 / 1; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .card.large {
    grid-column: span 1;
    aspect-ratio: auto;
    flex-direction: column;
    gap: 20px;
    padding: 28px 24px 64px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .gallery .card.large .qr-img {
    width: 78%;
    height: auto;
    max-width: 280px;
    align-self: center;
  }
  .gallery .card.large .editorial-text {
    text-align: center;
    align-items: center;
  }
  .gallery .card.large .editorial-text .et-title { font-size: 28px; }
}

/* ── Pattern showcase (10 types) ── */
.pattern-showcase {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.pattern-item {
  text-align: center;
}
.pattern-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.pattern-item:hover .pattern-thumb { border-color: var(--accent); }
.pattern-thumb svg { width: 100%; height: 100%; }
.pattern-name {
  font-family: var(--ff-display);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.pattern-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

@media (max-width: 880px) {
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
}
