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

:root {
  --bg: #faf9f7;
  --text: #1a1a18;
  --text-muted: #888880;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.07);
  --shadow-hover: rgba(0, 0, 0, 0.13);
  --accent: #c8b89a;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ── MAIN ── */
main {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
  padding-left: 48px;
  padding-right: 48px;
  max-width: 1440px;
  margin: 0 auto;
}

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

/* ── CARD ── */
.card {
  cursor: pointer;
  animation: fadeUp 0.7s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }
.card:nth-child(4) { animation-delay: 0.26s; }
.card:nth-child(5) { animation-delay: 0.33s; }
.card:nth-child(6) { animation-delay: 0.40s; }

.card-image {
  width: 100%;
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow:
    0 2px 6px var(--shadow),
    0 8px 24px var(--shadow);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
}

.card-image img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card:hover .card-image {
  transform: translateY(-6px);
  box-shadow:
    0 4px 12px var(--shadow-hover),
    0 20px 48px var(--shadow-hover);
}

.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  animation: shimmer 3s ease-in-out infinite;
}

.card-image::after {
  content: 'View';
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 24, 0.28);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.card:hover .card-image::after { opacity: 1; }

.card-body {
  padding: 12px 2px 0;
}

.card-title {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* ── FOOTER ── */
footer {
  margin-top: 80px;
  padding: 24px 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

footer p {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav, main, footer { padding-left: 24px; padding-right: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  nav { padding: 0 20px; }
  main { padding-left: 20px; padding-right: 20px; }
}
