/* ==========================================================================
   آثار هنرمندان — Intro Board gallery. Dark cinematic hero + a scroll-
   revealing masonry of artwork cards. Uses only the theme's existing
   tokens (--accent, --logo-ink, --ink, --dark-text, --content-max,
   --header-margin) and font (IRANSansWebFaNum) — no new palette. ---- */

.artworks-page {
  margin: 0;
  background: #0b0b0c;
  color: var(--dark-text);
  font-family: "IRANSansWebFaNum", Tahoma, sans-serif;
}

.artworks-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 18px var(--header-margin);
  pointer-events: none;
}
.artworks-topbar a {
  pointer-events: auto;
}
.artworks-topbar img {
  height: 34px;
  width: auto;
  opacity: 0.92;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.artworks-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--header-margin);
  position: relative;
  overflow: hidden;
}
.artworks-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(3, 81, 94, 0.22), transparent 65%);
  pointer-events: none;
}
.artworks-hero-eyebrow {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
  opacity: 0;
  animation: artworksFadeUp 1s ease forwards 0.15s;
}
.artworks-hero-title {
  position: relative;
  font-size: clamp(34px, 6vw, 74px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #fdfaf3;
  opacity: 0;
  animation: artworksFadeUp 1.1s ease forwards 0.35s;
}
.artworks-hero-desc {
  position: relative;
  max-width: 640px;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.9;
  color: var(--dark-text);
  opacity: 0;
  animation: artworksFadeUp 1.1s ease forwards 0.55s;
}
.artworks-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(241, 230, 207, 0.6);
  opacity: 0;
  animation: artworksFadeUp 1s ease forwards 1s;
}
.artworks-hero-scroll svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  animation: artworksBounce 1.8s ease-in-out infinite;
}

@keyframes artworksFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes artworksBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.artworks-gallery {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 40px var(--header-margin) 120px;
  column-count: 3;
  column-gap: 28px;
}

.artwork-card {
  break-inside: avoid;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.artwork-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.artwork-card-images {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 4px;
  overflow: hidden;
}
.artwork-card-images img {
  display: block;
  width: 100%;
  height: auto;
}

.artwork-card-caption {
  padding: 16px 4px 0;
}
.artwork-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fdfaf3;
  margin: 0 0 6px;
  line-height: 1.5;
}
.artwork-card-artist {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}
.artwork-card-meta {
  font-size: 12px;
  color: rgba(241, 230, 207, 0.55);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 1023px) {
  .artworks-gallery { column-count: 2; column-gap: 20px; }
}
@media (max-width: 640px) {
  .artworks-gallery { column-count: 1; padding-top: 20px; }
  .artwork-card { margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .artworks-hero-eyebrow, .artworks-hero-title, .artworks-hero-desc, .artworks-hero-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .artworks-hero-scroll svg { animation: none !important; }
  .artwork-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
