/**
 * Homepage-only redesign.
 * Editorial galleries, calm animations, no visual noise.
 * Scope: .page-home (body class on home.html)
 */

/* ─── HERO (editorial, full-bleed) ───────────────────────────────────────── */
.page-home .hero-container {
  min-height: 92vh;
  max-height: 920px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  border-bottom: none;
  box-shadow: none;
}

.page-home .hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  transform: none;
  text-align: left;
  padding: clamp(2.5rem, 6vw, 4.8rem) var(--ds-container-gutter) clamp(3rem, 8vw, 5.5rem);
  max-width: var(--ds-container-max);
  margin: 0 auto;
  width: 100%;
}

.page-home .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.35em;
  line-height: 1.08;
  animation: home-hero-title var(--ds-motion-reveal-duration) var(--ds-ease-out) 0.15s both;
}

.page-home .hero-subtitle {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  margin-bottom: 1.75rem;
  animation: home-hero-subtitle var(--ds-motion-reveal-duration) var(--ds-ease-out) 0.28s both;
}

.page-home .hero-cta {
  animation: home-hero-cta var(--ds-motion-reveal-duration) var(--ds-ease-out) 0.42s both;
}

.page-home .hero-intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.page-home .hero-cta-secondary {
  color: var(--ds-text-muted);
  border-color: rgba(255, 255, 255, 0.22);
}

.page-home .hero-cta-secondary:hover {
  color: var(--ds-text);
  border-color: var(--ds-border-strong);
}

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.page-home .hero-meta span {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.22);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .hero-overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(12, 12, 12, 0.15) 40%,
    rgba(12, 12, 12, 0.75) 100%
  ) !important;
}

.page-home .hero-image-wrapper img,
.page-home .hero-container .hero-image {
  object-fit: cover;
  object-position: center 30%;
}

@keyframes home-hero-title {
  from { opacity: 0; transform: translateY(var(--ds-motion-reveal-y)); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-hero-subtitle {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-hero-cta {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .page-home .hero-container {
    min-height: 85vh;
    align-items: flex-end;
  }
  .page-home .hero-content {
    text-align: center;
    padding: 2rem var(--ds-space-4) 3rem;
  }
  .page-home .hero-title {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }
  .page-home .hero-subtitle {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }
  .page-home .hero-meta {
    justify-content: center;
  }
  .page-home .hero-intro,
  .page-home .section-intro,
  .page-home .brand-story-copy p,
  .page-home .collection-card p,
  .page-home .service-panel p,
  .page-home .consultation-card p {
    font-size: 0.78rem;
  }
}

/* ─── BRAND SECTIONS ──────────────────────────────────────────────────────── */
.page-home .brand-story,
.page-home .collections-highlight,
.page-home .signature-services,
.page-home .consultation-cta {
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}

.page-home .brand-story {
  background:
    radial-gradient(circle at top left, rgba(255, 234, 49, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 100%),
    var(--ds-bg-soft);
}

.page-home .collections-highlight,
.page-home .consultation-cta {
  background: var(--ds-bg);
}

.page-home .signature-services {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 100%), var(--ds-bg-soft);
}

.page-home .brand-story .container,
.page-home .collections-highlight .container,
.page-home .signature-services .container,
.page-home .consultation-cta .container {
  max-width: 1320px;
  padding-left: var(--ds-container-gutter);
  padding-right: var(--ds-container-gutter);
}

.page-home .section-header {
  max-width: 50rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-home .section-header-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-home .section-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--ds-accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-home .section-header h2,
.page-home .consultation-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ds-text);
  margin: 0;
}

.page-home .brand-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.page-home .brand-story-copy p {
  margin: 0 0 1.35rem;
  color: var(--ds-text-muted);
  line-height: 1.9;
  font-size: 1rem;
}

.page-home .brand-story-stats {
  display: grid;
  gap: 1.2rem;
}

.page-home .story-stat,
.page-home .collection-card,
.page-home .service-panel,
.page-home .consultation-card {
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-sm);
}

.page-home .story-stat {
  padding: 1.5rem;
}

.page-home .story-stat strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ds-text);
  font-family: var(--ds-font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
}

.page-home .story-stat span {
  color: var(--ds-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.page-home .collections-grid,
.page-home .services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.page-home .collection-card,
.page-home .service-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.6rem;
  text-decoration: none;
  transition: transform var(--ds-duration-slow) var(--ds-ease-out),
    border-color var(--ds-duration-slow) var(--ds-ease-out),
    box-shadow var(--ds-duration-slow) var(--ds-ease-out);
}

.page-home .collection-card:hover,
.page-home .service-panel:hover,
.page-home .consultation-card:hover {
  transform: translateY(var(--ds-motion-hover-y));
  border-color: var(--ds-border-strong);
  box-shadow: var(--ds-shadow-md);
}

.page-home .collection-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ds-accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-home .collection-card h3,
.page-home .service-panel h3 {
  margin: 0 0 0.85rem;
  color: var(--ds-text);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.25;
}

.page-home .collection-card p,
.page-home .service-panel p,
.page-home .consultation-card p {
  margin: 0;
  color: var(--ds-text-muted);
  line-height: 1.75;
}

.page-home .service-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--ds-accent);
  background: rgba(255, 234, 49, 0.08);
  border: 1px solid rgba(255, 234, 49, 0.14);
  font-size: 1.1rem;
}

.page-home .consultation-card {
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 234, 49, 0.08), transparent 35%),
    rgba(255, 255, 255, 0.03);
}

.page-home .consultation-card p {
  max-width: 50rem;
  margin: 1.2rem auto 0;
}

.page-home .consultation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ─── PORTFOLIO (editorial gallery — one spread per row) ───────────────────── */
.page-home .gallery-showcase {
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
  background: var(--ds-bg);
  overflow: visible;
}

.page-home .gallery-showcase::before {
  display: none !important;
}

.page-home #targetSection,
.page-home .gallery-showcase .container {
  max-width: 1320px;
  padding-left: var(--ds-container-gutter);
  padding-right: var(--ds-container-gutter);
}

.page-home #portfolio-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.page-home #targetSection h2::after,
.page-home #targetSection::after {
  display: none !important;
}

.page-home .gallery-showcase .section-intro {
  font-size: var(--ds-text-base);
  line-height: 1.7;
  max-width: 34em;
  margin: 0 auto var(--ds-rhythm-section);
  text-align: center;
  color: var(--ds-text-muted);
}

.page-home .showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(4rem, 10vw, 8rem);
  padding-top: 0;
  border-top: none;
}

.page-home .showcase-row:last-child {
  margin-bottom: 0;
}

.page-home .showcase-row.reverse {
  direction: rtl;
}

.page-home .showcase-row.reverse > * {
  direction: ltr;
}

.page-home .showcase-row img {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 320px;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-sm) !important;
  transition: transform var(--ds-duration-reveal) var(--ds-ease-out);
}

.page-home .showcase-row:hover img {
  transform: scale(var(--ds-motion-hover-scale));
  box-shadow: var(--ds-shadow-md) !important;
}

.page-home .showcase-text {
  width: 100%;
  max-width: 100%;
  padding: 0 0.5rem;
}

.page-home .showcase-text .project-category {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  margin-bottom: 0.75rem;
}

.page-home .showcase-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ds-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.page-home .showcase-text p {
  font-size: var(--ds-text-sm);
  line-height: 1.75;
  color: var(--ds-text-muted);
  margin: 0;
}

/* Stagger: portfolio rows */
.page-home .gallery-showcase.reveal.revealed .showcase-row:nth-of-type(1) { transition-delay: 0.05s; }
.page-home .gallery-showcase.reveal.revealed .showcase-row:nth-of-type(2) { transition-delay: 0.15s; }
.page-home .gallery-showcase.reveal.revealed .showcase-row:nth-of-type(3) { transition-delay: 0.25s; }
.page-home .gallery-showcase.reveal.revealed .showcase-row:nth-of-type(4) { transition-delay: 0.35s; }

@media (max-width: 900px) {
  .page-home .brand-story-grid,
  .page-home .collections-grid,
  .page-home .services-grid {
    grid-template-columns: 1fr;
  }
  .page-home .showcase-row,
  .page-home .showcase-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }
  .page-home .showcase-row img {
    min-height: 280px;
    max-height: 360px;
  }
  .page-home .showcase-text {
    text-align: center;
    padding: 0;
  }
  .page-home .section-header h2,
  .page-home .consultation-card h2 {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
  }
}

/* ─── GALLERY (wall-style grid, calm) ─────────────────────────────────────── */
.page-home .image-gallery {
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
  background: var(--ds-bg-soft);
}

.page-home .image-gallery .container {
  max-width: 1200px;
  padding-left: var(--ds-container-gutter);
  padding-right: var(--ds-container-gutter);
}

.page-home #gallery-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.page-home .image-gallery .section-intro {
  font-size: var(--ds-text-base);
  line-height: 1.7;
  max-width: 34em;
  margin: 0 auto var(--ds-rhythm-section);
  text-align: center;
  color: var(--ds-text-muted);
}

.page-home .image-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 100%;
}

.page-home .image-gallery .gallery-item {
  overflow: hidden;
  border-radius: var(--ds-radius-lg);
  transition: transform var(--ds-duration-reveal) var(--ds-ease-out);
}

.page-home .image-gallery .gallery-item:hover {
  transform: translateY(var(--ds-motion-hover-y));
}

.page-home .image-gallery .gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: none !important;
  border-radius: var(--ds-radius-lg);
  box-shadow: none !important;
  transition: transform var(--ds-duration-reveal) var(--ds-ease-out);
}

.page-home .image-gallery .gallery-item:hover img {
  transform: scale(var(--ds-motion-hover-scale-img));
}

.page-home .image-gallery .image-caption {
  margin-top: 1rem;
  font-size: var(--ds-text-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ds-text-muted);
  line-height: 1.4;
}

@media (min-width: 700px) {
  .page-home .image-gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 699px) {
  .page-home .image-gallery .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .page-home .image-gallery .gallery-item img {
    aspect-ratio: 3 / 2;
  }
}

/* ─── BANNER (minimal strip, no noise) ────────────────────────────────────── */
.page-home .gallery-banner {
  padding: clamp(4rem, 10vw, 6rem) var(--ds-container-gutter);
  background: var(--ds-bg) !important;
  border-top: 1px solid var(--ds-border);
  border-bottom: none;
  box-shadow: none !important;
}

.page-home .gallery-banner::before {
  display: none !important;
}

.page-home .gallery-banner-content {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.page-home .gallery-banner h2 {
  font-size: var(--ds-text-xl);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ds-text);
  margin-bottom: 0.6rem;
}

.page-home .gallery-banner p {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.page-home .gallery-banner-btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-title,
  .page-home .hero-subtitle,
  .page-home .hero-cta {
    animation: none;
  }
  .page-home .showcase-row img,
  .page-home .image-gallery .gallery-item,
  .page-home .image-gallery .gallery-item img {
    transition: none;
  }
}
