/* Homepage layout — matches FARGOST mockup */

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--obsidian);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.home-hero__slide.is-active {
  opacity: 1;
}

.home-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.home-hero__slide.is-active img {
  transform: scale(1);
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.45) 48%, rgba(17, 17, 17, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 17, 17, 0.55) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.home-hero__shimmer {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.home-hero.is-warming .home-hero__shimmer {
  opacity: 1;
  visibility: visible;
}

.home-hero__shimmer-bar {
  position: absolute;
  top: -28%;
  height: 156%;
  width: 5.5rem;
  left: 0;
  transform: translateX(-140%) skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 12%,
    rgba(255, 255, 255, 0.06) 34%,
    rgba(152, 11, 27, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 66%,
    rgba(255, 255, 255, 0) 88%,
    transparent 100%
  );
  box-shadow: 0 0 40px 12px rgba(255, 255, 255, 0.04);
}

.home-hero.is-warming .home-hero__shimmer-bar {
  animation: home-hero-shimmer 0.85s ease-in-out 2 both;
}

@keyframes home-hero-shimmer {
  0% {
    transform: translateX(-140%) skewX(-18deg);
  }
  100% {
    transform: translateX(calc(100vw + 6rem)) skewX(-18deg);
  }
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 6.5rem;
}

@media (min-width: 768px) {
  .home-hero__content {
    padding: 0 5rem 7.5rem;
  }
}

.home-hero__rule {
  width: 48px;
  height: 2px;
  background: var(--burgundy);
  margin-bottom: 1.25rem;
}

.home-hero__kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.85);
  margin-bottom: 1rem;
}

.home-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.08;
  color: var(--white);
  max-width: 10ch;
  margin-bottom: 1rem;
}

.home-hero__sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.72);
  margin-bottom: 2rem;
}

.home-hero__meta {
  position: absolute;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  color: rgba(244, 241, 235, 0.8);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .home-hero__meta {
    right: 5rem;
    bottom: 3rem;
  }
}

.home-hero__meta-name {
  font-weight: 500;
  color: var(--white);
}

.home-hero__pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-hero__pager button {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-hero__pager button:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Services */
.home-services {
  background: var(--ivory);
  color: var(--obsidian);
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .home-services {
    padding: 7rem 5rem;
  }
}

.home-services__head {
  max-width: 40rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.home-services__head .fg-rule {
  width: 40px;
  height: 2px;
  background: var(--burgundy);
  margin: 0 auto 1.5rem;
}

.home-services__head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.home-services__head p {
  color: #5c574f;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.home-services__groups {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 3.25rem;
}

.home-services__group-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.home-services__items {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 640px) {
  .home-services__items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .home-services__items {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.home-service {
  padding-top: 0.25rem;
}

.home-service__icon {
  width: 28px;
  height: 28px;
  color: var(--steel);
  margin-bottom: 0.85rem;
}

.home-service__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.home-service h3,
.home-service h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.home-service p {
  font-size: 13px;
  line-height: 1.65;
  color: #6a655c;
}

/* Featured projects */
.home-projects {
  background: var(--obsidian);
  color: var(--ivory);
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .home-projects {
    padding: 6.5rem 5rem;
  }
}

/* For sale — graphite secondary dark block (design system), not a twin of Featured */
.home-projects--sale {
  background: var(--graphite);
  padding-top: 4.25rem;
  border-top: 1px solid rgba(187, 169, 138, 0.22);
  box-shadow: inset 0 1px 0 rgba(152, 11, 27, 0.35);
}

@media (min-width: 768px) {
  .home-projects--sale {
    padding-top: 5.25rem;
  }
}

.home-projects--sale .home-project__frame {
  background: var(--obsidian);
}

.home-projects__head {
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.home-projects__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.85rem;
}

.home-projects__label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--burgundy);
}

.home-projects--sale .home-projects__label::before {
  background: var(--champagne);
}

.home-projects__head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 500;
}

.home-projects__rail {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem 1.5rem;
}

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

@media (min-width: 1100px) {
  .home-projects__rail {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-project {
  display: block;
  color: inherit;
}

.home-project__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--graphite);
  margin-bottom: 0.95rem;
}

.home-project__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.home-project:hover .home-project__frame img {
  transform: scale(1.05);
}

.home-project__top {
  margin: 0 0 0.35rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
}

.home-project__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.home-project__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.2em;
}

.home-project__foot--arrow-only {
  justify-content: flex-end;
}

.home-project__desc {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--steel);
}

.home-project__arrow {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--steel);
  transition: transform 0.25s ease, color 0.25s ease;
}

.home-project:hover .home-project__arrow {
  transform: translateX(4px);
  color: var(--champagne);
}

/* About */
.home-about {
  background: var(--ivory);
  color: var(--obsidian);
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .home-about {
    padding: 7rem 5rem;
  }
}

.home-about__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .home-about__grid {
    grid-template-columns: 0.9fr 1.1fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.home-about__visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--cream);
}

.home-about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.home-about__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.75));
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
}

.home-about__copy .fg-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
}

.home-about__copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.home-about__copy p {
  color: #5c574f;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.home-about__values {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.5rem;
}

.home-about__value {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  padding-top: 1rem;
}

.home-about__value strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.home-about__value span {
  font-size: 12px;
  color: #6a655c;
  letter-spacing: 0.02em;
}

.home-about__mark {
  margin-top: 2rem;
}

.home-about__mark img {
  height: 48px;
  width: auto;
  opacity: 0.9;
}

/* CTA — right edge of photo (#1E0503→#39050B→#610A14 top→bottom) continues to the right */
.home-cta {
  --cta-edge: linear-gradient(180deg, #1e0503 0%, #39050b 50%, #610a14 100%);
  background: var(--cta-edge);
  color: var(--white);
  display: grid;
  min-height: 280px;
}

@media (min-width: 900px) {
  .home-cta {
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.25fr) minmax(160px, 0.65fr);
    min-height: 320px;
  }
}

.home-cta__visual {
  display: none;
  overflow: hidden;
  position: relative;
  background: #1e0503;
}

@media (min-width: 900px) {
  .home-cta__visual {
    display: block;
  }
}

.home-cta__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}

/* Soft seam only: same top→bottom strip fades in at the photo’s right edge, then body continues it */
.home-cta__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cta-edge);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 62%, rgba(0, 0, 0, 0.55) 84%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 62%, rgba(0, 0, 0, 0.55) 84%, #000 100%);
  pointer-events: none;
}

.home-cta__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  gap: 1.25rem;
  background: var(--cta-edge);
}

@media (min-width: 768px) {
  .home-cta__body {
    padding: 3.5rem 3rem;
  }
}

.home-cta__seal {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cta-edge);
}

@media (min-width: 900px) {
  .home-cta__seal {
    display: flex;
  }
}

.home-cta__seal-ring {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
}

.home-cta__seal-ring img {
  height: 78px;
  width: auto;
  max-width: 150px;
  margin-bottom: 0.45rem;
  object-fit: contain;
}

.home-cta__seal-ring p {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.45;
}

/* Reveal motion */
.fg-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fg-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide img {
    transform: none !important;
    transition: none !important;
  }

  .fg-reveal {
    opacity: 1;
    transform: none;
  }

  .home-hero__shimmer,
  .home-hero.is-warming .home-hero__shimmer {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .home-hero.is-warming .home-hero__shimmer-bar {
    animation: none !important;
  }
}
