/* Lower homepage sections share the established Corsica / amber design. */
.home-about,
.home-works,
.home-reviews {
  padding: clamp(64px, 7vw, 112px) 0;
  color: #191b18;
  background: #fff;
  scroll-margin-top: 32px;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  align-items: end;
  gap: clamp(32px, 6vw, 100px);
  margin-bottom: clamp(32px, 4vw, 60px);
}

.home-eyebrow,
.work-stages__heading .home-eyebrow {
  margin: 0 0 22px;
  color: #766238;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-section-heading h2,
.home-reviews h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.home-section-heading h2 > span,
.home-reviews h2 > span { color: #77766d; }

.home-section-intro {
  max-width: 460px;
  margin: 0;
  color: #686962;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}

.home-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(36px, 6vw, 96px);
}

.home-about__layout--text-only { grid-template-columns: minmax(0, 800px); }
.home-about__photo {
  position: relative;
  min-height: 550px;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #e3e2d8;
}
.home-about__photo > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-about__photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 64px 28px 26px;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 22, 15, .8));
}
.home-about__photo figcaption > span { font-size: 13px; }
.home-about__photo figcaption a { font-size: 17px; }
.home-about__content { padding: 10px 0; }
.home-about__lead {
  margin: 0 0 18px;
  font-size: clamp(23px, 2.3vw, 34px);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.home-about__text {
  margin: 0;
  color: #686962;
  font-size: 16px;
  line-height: 1.6;
}
.home-about__principles { margin: 30px 0; }
.home-about__principles > div {
  padding: 19px 0;
  border-top: 1px solid #deded6;
}
.home-about__principles dt { margin-bottom: 7px; font-size: 19px; font-weight: 500; }
.home-about__principles dd { margin: 0; color: #686962; font-size: 15px; line-height: 1.5; }
.home-arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 7px 0;
  border-bottom: 1px solid #bca364;
  color: #25261e;
  font-size: 16px;
  line-height: 1.35;
}
.home-arrow-link > span:last-child { font-size: 25px; color: #a16c00; }
.home-arrow-link:hover { color: #926100; border-color: #926100; }
.home-arrow-link:focus-visible,
.home-work:focus-visible,
.home-about a:focus-visible { outline: 3px solid #b57c00; outline-offset: 5px; }

.home-works { background: #f5f4ef; }
.home-works__intro .home-arrow-link { margin-top: 20px; }
.home-count {
  display: grid;
  min-width: 27px;
  height: 27px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid #cfcbbd;
  border-radius: 50%;
  font-size: 12px;
}
.home-works__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 38px 28px; }
.home-work { display: block; min-width: 0; grid-column: span 5; }
.home-work:nth-child(4n + 1),
.home-work:nth-child(4n + 4) { grid-column: span 7; }
/* An incomplete row fills the available width, without orphaned gaps. */
.home-work:last-child:nth-child(odd) { grid-column: 1 / -1; }
.home-work__image { position: relative; height: clamp(290px, 30vw, 450px); overflow: hidden; border-radius: 3px; background: #e0dfd5; }
.home-work__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.home-work:hover .home-work__image img { transform: scale(1.025); }
.home-work__open {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #1b1d15;
  background: #fff;
  font-size: 26px;
  transition: background .2s;
}
.home-work:hover .home-work__open { background: var(--accent); }
.home-work__caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; padding-top: 18px; }
.home-work__caption h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.025em; }
.home-work__caption > span { color: #6d6e66; font-size: 14px; }

.home-reviews__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.home-reviews__intro > .home-section-intro { margin-top: 28px; }
.home-reviews__intro > .home-arrow-link { margin-top: 22px; }
.home-reviews__note { display: flex; align-items: start; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #deded6; }
.home-reviews__mark { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border: 1px solid #deded6; border-radius: 50%; color: #d4332a; font-size: 24px; }
.home-reviews__note p { margin: 0; max-width: 330px; color: #686962; font-size: 14px; line-height: 1.5; }
.home-reviews__widget { min-width: 0; max-width: 760px; padding: 12px; border: 1px solid #deded6; border-radius: 20px; background: #fff; }
.home-reviews__widget iframe { display: block; width: 100%; height: 620px; border: 0; border-radius: 12px; }
.home-reviews__widget > p { margin: 14px 10px 8px; color: #686962; font-size: 12px; line-height: 1.5; }
.home-reviews__widget > p a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .home-section-heading { grid-template-columns: 1fr; gap: 24px; }
  .home-section-intro { max-width: 600px; }
  .home-about__layout { gap: 32px; }
  .home-about__photo { min-height: 540px; }
  .home-about__photo figcaption { align-items: start; flex-direction: column; gap: 8px; padding: 64px 20px 20px; }
  .home-reviews__layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; }
}
@media (max-width: 700px) {
  .home-about__layout,
  .home-reviews__layout { grid-template-columns: minmax(0, 1fr); }
  .home-about__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .home-about__content { padding: 0; }
  .home-work,
  .home-work:nth-child(4n + 1),
  .home-work:nth-child(4n + 4) { grid-column: 1 / -1; }
  .home-work__image { height: auto; aspect-ratio: 4 / 3; }
  .home-work__caption { padding-top: 14px; }
  .home-works__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .home-reviews__note { margin-top: 30px; }
  .home-reviews__widget { padding: 4px; border-radius: 14px; }
  .home-reviews__widget iframe { height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-work__image img { transition: none; }
}
