/* ============================================================
   HOME PAGE — Chiara Daniele
   ============================================================ */

/* ---- HERO ------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  /* Gradient fallback shown while image loads or if missing */
  background: linear-gradient(160deg, #1d1b17 0%, #0c0b09 45%, #131108 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #0e0e0c4d 0%,
    rgba(14, 14, 12, 0.15) 35%,
    rgba(14, 14, 12, 0.50) 75%,
    rgba(14, 14, 12, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 9vw, 9.5rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 28px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  color: var(--text);
  opacity: 0.68;
  line-height: 1.7;
}

/* Scroll indicator — in flow con hero-content */
.hero-scroll {
  margin-top: 44px;
}

.scroll-arrow {
  display: block;
  stroke: rgba(226, 221, 213, 0.65);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.chevron-1 {
  animation: chevronDrop 2.4s ease-in-out infinite;
}

.chevron-2 {
  animation: chevronDrop 2.4s ease-in-out infinite 0.38s;
}

@keyframes chevronDrop {
  0%   { opacity: 0; transform: translateY(-6px); }
  25%  { opacity: 1; transform: translateY(0); }
  65%  { opacity: 0.5; transform: translateY(6px); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---- SELECTED WORKS --------------------------------------- */

.selected-works {
  padding: 128px var(--side-pad) 96px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Two-column masonry, images at natural proportions — no cropping */
.works-grid {
  columns: 2;
  column-gap: 10px;
  margin-bottom: 72px;
}

.work-card {
  break-inside: avoid;
  margin-bottom: 10px;
}

.work-card:last-child {
  margin-bottom: 0;
}

.work-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(145deg, #1c1a16 0%, #111009 100%);
}

.work-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay with title on hover */
.work-info {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 8, 0.58);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-img {
  transform: scale(1.04);
}

.work-card:hover .work-info {
  opacity: 1;
}

.work-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
}

.work-meta {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.works-cta {
  text-align: center;
}

/* ---- BIOGRAPHY -------------------------------------------- */

.bio-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px var(--side-pad);
}

.bio-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 88px;
  align-items: center;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  /* Placeholder gradient when image is missing */
  background: linear-gradient(160deg, #1c1a16 0%, #0e0d0b 100%);
}

.bio-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.bio-text {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

/* ---- AVAILABLE WORKS TEASER ------------------------------- */

.available-teaser {
  padding: 80px var(--side-pad);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.available-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

/* ============================================================
   HOME RESPONSIVE
   ============================================================ */


@media (max-width: 960px) {
  .hero {
    height: 84vh;
  }

  .selected-works {
    padding-top: 88px;
    padding-bottom: 64px;
  }

  .works-grid {
    columns: 1;
    column-gap: 0;
  }

  .work-card {
    margin-bottom: 8px;
  }

  .bio-section {
    padding: 80px var(--side-pad);
  }

  .bio-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .bio-photo {
    aspect-ratio: 1 / 1;
    max-width: 100%;
    object-position: center center;
  }

  .available-teaser {
    padding: 64px var(--side-pad);
  }
}

@media (max-width: 1100px) {
  .hero {
    height: auto;
    min-height: unset;
    display: block;
  }

  .hero-image-wrap {
    position: relative;
    inset: auto;
  }

  .hero-img {
    height: auto;
    object-fit: initial;
    object-position: initial;
  }

  .hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 0.06em;
  }

  .selected-works {
    padding-top: 72px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .works-grid {
    margin-bottom: 48px;
  }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .hero {
    height: 85vh;
  }
}
