/* ═══════════ HOME: FLOATING GALLERY HERO ═══════════ */

.hero-gallery {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  max-width: none;
  padding: 0;
  overflow: visible;
}

/* --- floating artwork pieces --- */

.hero-float {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w, 150px);
  transform: rotate(var(--r, 0deg));
  z-index: 1;
  opacity: 0;
  will-change: transform;
}

.hero-float img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(45, 41, 38, 0.2);
  padding: 5px;
  background: var(--parchment-light);
  box-shadow: 4px 6px 20px rgba(43, 29, 20, 0.15);
  transition: box-shadow 0.4s, transform 0.4s;
}

.hero-float img:hover {
  box-shadow: 6px 10px 30px rgba(43, 29, 20, 0.25);
  transform: scale(1.05);
}

/* gentle float animation — each piece gets a different delay via nth-child */
@keyframes hero-drift {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: rotate(var(--r, 0deg)) translateY(-12px); }
}

.hero-float.is-visible {
  opacity: 1;
  animation: hero-drift 6s ease-in-out infinite;
}

.hero-float:nth-child(2).is-visible { animation-duration: 7s; animation-delay: 0.8s; }
.hero-float:nth-child(3).is-visible { animation-duration: 5.5s; animation-delay: 1.5s; }
.hero-float:nth-child(4).is-visible { animation-duration: 8s; animation-delay: 0.3s; }
.hero-float:nth-child(5).is-visible { animation-duration: 6.5s; animation-delay: 2s; }
.hero-float:nth-child(6).is-visible { animation-duration: 7.5s; animation-delay: 1s; }
.hero-float:nth-child(7).is-visible { animation-duration: 5s; animation-delay: 0.5s; }
.hero-float:nth-child(8).is-visible { animation-duration: 6s; animation-delay: 1.8s; }

/* --- center text block --- */

.hero-center {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: clamp(8rem, 22vh, 14rem) var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
}

.hero-gallery .hero-numeral {
  display: block;
  font-family: var(--serif-title);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0;
}

.hero-title {
  font-family: var(--serif-title);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 1.2rem;
  opacity: 0;
}

.hero-title-line {
  display: block;
}

.hero-gallery .hero-rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.4rem;
  transform: scaleX(0);
  transform-origin: center;
}

.hero-tagline {
  font-family: var(--serif-quote);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.12em;
  color: var(--sepia);
  margin-bottom: 2rem;
  opacity: 0;
}

.hero-gallery .hero-cta {
  opacity: 0;
  transform: translateY(16px);
}

/* text backdrop glow so text reads clearly over any image behind it */
.hero-center::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(420px, 70vh);
  background: radial-gradient(ellipse, rgba(232, 223, 200, 0.92) 0%, rgba(232, 223, 200, 0.6) 50%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

/* ═══════════ HOME: ABOUT PREVIEW ═══════════ */

.about-preview-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-preview-text p {
  max-width: 34rem;
  margin-bottom: 1.1rem;
}

/* ═══════════ HOME: SERVICES ═══════════ */

.home-services { margin-top: 0; }

/* ═══════════ HOME: DOT GRID DIVIDER ═══════════ */

.dot-grid-divider {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 4vh, 3.5rem) 0;
}

.dot-grid-divider .grid { --gap: 10px; display: flex; flex-direction: column; gap: var(--gap); }
.dot-grid-divider .row { display: flex; gap: var(--gap); }
.dot-grid-divider .cell {
  --size: 8px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  will-change: transform;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* ═══════════ HOME: COLLECTION PREVIEW ═══════════ */

.collection-item {
  border: 1px solid rgba(45, 41, 38, 0.18);
  background: var(--parchment-light);
  padding: clamp(0.5rem, 1vw, 0.8rem);
  overflow: hidden;
  transition: box-shadow 0.35s;
}

.collection-item:hover {
  box-shadow: 3px 5px 16px rgba(43, 29, 20, 0.12);
}

.collection-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-item:hover img {
  transform: scale(1.05);
}

.collection-item .plate-caption {
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

/* ═══════════ HOME: CONTACT STRIP ═══════════ */

.contact-strip {
  border-top: 1px solid rgba(45, 41, 38, 0.2);
  padding-top: 2rem;
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-strip h4 {
  font-family: var(--serif-title);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

.contact-strip p {
  font-size: 0.92rem;
  color: var(--sepia);
  line-height: 1.65;
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 860px) {
  .hero-gallery { min-height: var(--vh-fixed, 90vh); height: var(--vh-fixed, auto); overflow: hidden; }
  .hero-float { --w: 90px !important; }
  .hero-float:nth-child(1) { --x: 2% !important; --y: 6% !important; }
  .hero-float:nth-child(2) { --x: 68% !important; --y: 3% !important; }
  .hero-float:nth-child(3) { --x: 72% !important; --y: 70% !important; --w: 95px !important; }
  .hero-float:nth-child(4) { --x: 0% !important; --y: 68% !important; }
  .hero-float:nth-child(5) { --x: 60% !important; --y: 85% !important; --w: 80px !important; }
  .hero-float:nth-child(6) { --x: 15% !important; --y: 88% !important; --w: 75px !important; }
  .hero-float--hide-mobile { display: none; }
  .hero-title { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .hero-center { padding: clamp(6rem, 18vh, 10rem) var(--page-pad); min-height: var(--vh-fixed, 100vh); height: var(--vh-fixed, auto); }
  .hero-center::before {
    width: 85vw;
    height: 50vh;
  }
  .about-preview-grid { grid-template-columns: 1fr; }
  .about-preview-grid .plate-frame { max-width: 420px; margin: 0 auto; }
  .contact-strip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero-float { --w: 80px !important; }
  .hero-title { font-size: 2.2rem; }
  .hero-tagline { font-size: 1rem; }
}
