/* Homepage-only sections and responsive behavior. Shared components live in styles.css. */

/* Hero */
.hero {
  min-height: calc(100vh - 82px);
  padding-top: clamp(65px, 10vh, 120px);
  padding-bottom: 28px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  align-items: center;
  gap: 4vw;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

h1 {
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: .99;
  margin: 0 0 28px;
  color: var(--brown);
}

.hero-description {
  max-width: 610px;
  color: #6D6660;
  font-size: 13px;
  line-height: 1.95;
  margin: 0 0 26px;
}

.specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.specialties span {
  background: var(--lilac);
  color: var(--brown);
  padding: 10px 13px;
  font-size: 9px;
  letter-spacing: .07em;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  min-height: 430px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.avatar {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: 78vh;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 20px rgba(46, 41, 38, .08));
}

.avatar-orbit {
  display: none;
}

.vertical-note {
  position: absolute;
  right: -22px;
  top: 42%;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: .18em;
  color: #99897C;
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 12%;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--brown);
}

.hero-bottomline {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  color: #9A8D82;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Homepage AI carousel and its centered presentation. */
#ai-editing .section-heading {
  justify-content: center;
  text-align: center;
}

#ai-editing .gallery-thumbnails {
  justify-content: center;
}

#ai-editing .gallery-footer {
  justify-content: center;
}

#ai-editing .single-gallery-stage {
  position: relative;
  width: 100%;
  height: clamp(320px, 58vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

#ai-editing .single-gallery-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.single-gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 1px solid rgba(111, 78, 55, .38);
  color: var(--brown);
  background: rgba(248, 247, 245, .94);
  font-size: 20px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.single-gallery-arrow:hover {
  background: var(--brown);
  color: #fff;
  transform: translateY(-50%) scale(1.04);
}

.single-gallery-arrow--prev {
  left: 16px;
}

.single-gallery-arrow--next {
  right: 16px;
}

/* UI/UX project, about quote, and their supporting visuals. */
.uiux-section {
  padding-top: 110px;
  padding-bottom: 120px;
}

.project-feature {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: var(--lilac);
  min-height: 540px;
  align-items: stretch;
}

.project-copy {
  padding: clamp(26px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.project-copy .eyebrow {
  margin-bottom: 23px;
}

h3 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.04;
  color: var(--brown);
  margin: 0 0 20px;
}

.project-copy>p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.9;
  color: #a5988f;
  margin: 0 0 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 25px;
}

.project-tags span {
  background: rgba(255, 255, 255, .72);
  color: var(--brown);
  font-size: 8px;
  letter-spacing: .07em;
  font-weight: 700;
  padding: 8px 9px;
}

.project-image {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #0D1425;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 34px);
}

.project-image img {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.project-image-note {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: #fff;
  background: rgba(20, 20, 20, .6);
  padding: 8px 10px;
  font-size: 8px;
  letter-spacing: .12em;
}

.statement {
  min-height: 55vh;
  padding-top: 105px;
  padding-bottom: 100px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--lilac);
  margin-top: 0;
}

.statement .eyebrow {
  margin-bottom: 25px;
}

blockquote {
  max-width: 1000px;
  margin: 0 auto 25px;
  font-size: clamp(32px, 5vw, 65px);
  line-height: 1.12;
  color: var(--brown);
}

.statement-credit {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #89786B;
}

/* Homepage responsive layout overrides. */
@media (max-width: 800px) {
  .hero {
    min-height: auto;
    padding-top: 70px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
    min-height: 260px;
    max-height: 360px;
    justify-content: center;
    padding-right: 0;
  }

  .avatar {
    max-height: 320px;
    width: auto;
    max-width: 80%;
  }

  .vertical-note {
    right: 2px;
  }

  .hero-bottomline {
    margin-top: 25px;
  }

  #ai-editing .single-gallery-stage {
    height: clamp(280px, 58vh, 500px);
  }

  .uiux-section {
    padding-top: 75px;
    padding-bottom: 80px;
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 0;
    padding: 16px;
  }

  .project-image img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 700px) {
  .single-gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .single-gallery-arrow--prev {
    left: 9px;
  }

  .single-gallery-arrow--next {
    right: 9px;
  }
}

@media (max-width: 440px) {
  #ai-editing .single-gallery-stage {
    height: clamp(260px, 56vh, 420px);
  }

  h1 {
    font-size: 45px;
  }

  .hero-description {
    font-size: 12px;
  }

  .specialties span {
    font-size: 8px;
  }

  .hero-actions {
    align-items: stretch;
  }
}
