/* HOME — Hero */
.home-hero {
  position: relative;
  background: var(--color-warm-bg);
  padding-top: clamp(110px, 14vh, 160px);
  padding-bottom: clamp(60px, 8vw, 100px);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-line-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-line-light) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 70%);
  pointer-events: none;
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}

.home-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-hero__project-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  opacity: 0.5;
}

.home-hero__heading {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--color-primary);
  margin: 0;
}

.home-hero__heading-line {
  display: block;
  overflow: hidden;
}

.home-hero__lead {
  max-width: 50ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--color-primary);
  opacity: 0.78;
}

.home-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  margin-top: 8px;
  border-top: 1px solid var(--color-line);
  max-width: 520px;
}

.home-hero__meta-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  opacity: 0.5;
  margin-bottom: 6px;
}

.home-hero__meta-value {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.home-hero__media {
  position: relative;
}

.home-hero__media-card {
  position: absolute;
  bottom: -28px;
  inset-inline-start: -28px;
  background: var(--color-warm-bg);
  border: 1px solid var(--color-line);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius-md);
  min-width: 220px;
  box-shadow: 0 18px 40px -28px rgba(16, 19, 16, 0.45);
}

.home-hero__media-card-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  opacity: 0.55;
  font-weight: 600;
}

.home-hero__media-card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.home-hero__media-card-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.4;
  margin-top: 4px;
}

.home-hero__scroll {
  position: absolute;
  bottom: 28px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  opacity: 0.55;
}

.home-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-primary);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.4); }
}

/* HOME — Intro */
.home-intro {
  background: var(--color-warm-bg);
}

.home-intro__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.home-intro__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-intro__heading {
  font-size: var(--fs-section);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.home-intro__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 28px;
}

.home-intro__text {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-primary);
  opacity: 0.82;
}

.home-intro__divider {
  margin-top: clamp(60px, 8vw, 110px);
  height: 1px;
  background: var(--color-line);
}

/* HOME — Services */
.home-services {
  background: var(--color-warm-white);
  position: relative;
}

.home-services__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 80px);
}

.home-services__heading {
  max-width: 16ch;
}

.home-services__note {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  align-self: end;
  padding-bottom: 6px;
}

/* HOME — Projects */
.home-projects {
  background: var(--color-warm-bg);
}

.home-projects__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.home-projects__heading {
  max-width: 18ch;
}

.home-projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.home-projects__item--wide {
  grid-column: span 7;
}

.home-projects__item--tall {
  grid-column: span 5;
  margin-top: clamp(40px, 6vw, 96px);
}

.home-projects__item--offset {
  grid-column: span 7;
  margin-inline-start: 0;
}

.home-projects__item--medium {
  grid-column: span 5;
  margin-top: -20px;
}

/* HOME — Stats */
.home-stats {
  background: var(--color-primary);
  color: var(--color-warm-bg);
  padding-block: clamp(64px, 8vw, 120px);
}

.home-stats .section-label,
.home-stats__label {
  color: var(--color-warm-bg);
  opacity: 0.7;
}

.home-stats .section-label__dot {
  background: var(--color-warm-bg);
}

.home-stats__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(247, 247, 243, 0.18);
}

.home-stats__item {
  padding: 32px 24px 0 0;
  border-inline-end: 1px solid rgba(247, 247, 243, 0.18);
}

.home-stats__item:last-child {
  border-inline-end: 0;
}

.home-stats__item .counter__num,
.home-stats__item .counter__suffix {
  color: var(--color-warm-bg);
}

.home-stats__label-sm {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.78;
  font-weight: 500;
}

/* HOME — Process */
.home-process {
  background: var(--color-warm-bg);
}

.home-process__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.home-process__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.home-process__heading {
  max-width: 14ch;
}

.home-process__note {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}

.home-process__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-process__stage {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-line);
}

.home-process__stage:first-child {
  border-top: 1px solid var(--color-line);
}

.home-process__stage-num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 0.55;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.home-process__stage-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.home-process__stage-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-primary);
  opacity: 0.78;
  max-width: 52ch;
}

/* HOME — About preview */
.home-about-preview {
  background: var(--color-warm-white);
}

.home-about-preview__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.home-about-preview__media .img-reveal {
  border-radius: var(--radius-xl);
}

.home-about-preview__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-about-preview__heading {
  max-width: 18ch;
}

.home-about-preview__text {
  font-size: var(--fs-lead);
  line-height: 1.65;
  opacity: 0.82;
  max-width: 48ch;
}

/* HOME — Final CTA */
.home-final {
  background: var(--color-primary);
  color: var(--color-warm-bg);
  padding-block: clamp(80px, 10vw, 160px);
}

.home-final__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
  text-align: start;
  position: relative;
}

.home-final__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 0.65;
  font-weight: 600;
}

.home-final__heading {
  font-size: clamp(36px, 5.5vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--color-warm-bg);
  margin: 0;
  max-width: 22ch;
}

.home-final__text {
  font-size: var(--fs-lead);
  line-height: 1.6;
  opacity: 0.82;
  max-width: 52ch;
  color: var(--color-warm-bg);
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .home-hero__grid,
  .home-intro__grid,
  .home-process__grid,
  .home-about-preview__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__media {
    margin-top: 24px;
  }

  .home-hero__media-card {
    inset-inline-start: 16px;
  }

  .home-services__head,
  .home-projects__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-projects__grid {
    grid-template-columns: 1fr;
  }

  .home-projects__item--wide,
  .home-projects__item--tall,
  .home-projects__item--offset,
  .home-projects__item--medium {
    grid-column: 1 / -1;
    margin: 0;
  }

  .home-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-stats__item {
    border-inline-end: 1px solid rgba(247, 247, 243, 0.18);
  }

  .home-stats__item:nth-child(2n) {
    border-inline-end: 0;
  }

  .home-stats__item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(247, 247, 243, 0.18);
    padding-bottom: 32px;
  }

  .home-process__head {
    position: static;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 110px;
    min-height: auto;
  }
  .home-hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .home-hero__meta > div:nth-child(3) {
    grid-column: 1 / -1;
  }
  .home-stats__grid {
    grid-template-columns: 1fr;
  }
  .home-stats__item {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(247, 247, 243, 0.18);
  }
  .home-stats__item:last-child {
    border-bottom: 0;
  }
  .home-process__stage {
    grid-template-columns: 50px 1fr;
    gap: 16px;
  }
}